org.alfresco.bm.eventprocessor.http
Class StartWorkflowCallback

java.lang.Object
  extended by org.alfresco.bm.eventprocessor.http.StartWorkflowCallback
All Implemented Interfaces:
org.alfresco.bm.http.AuthenticatedHttpEventProcessor.HttpRequestCallback<String>

public class StartWorkflowCallback
extends Object
implements org.alfresco.bm.http.AuthenticatedHttpEventProcessor.HttpRequestCallback<String>

Callback that extract worklfow instance id from start-workflow response. Throws exception if the ID cannot be extracted.

Author:
Frederik Heremans

Constructor Summary
StartWorkflowCallback()
           
 
Method Summary
 String onCallSuccess(org.apache.commons.httpclient.HttpMethod method)
           
 boolean onError(org.apache.commons.httpclient.HttpMethod method, Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartWorkflowCallback

public StartWorkflowCallback()
Method Detail

onCallSuccess

public String onCallSuccess(org.apache.commons.httpclient.HttpMethod method)
Specified by:
onCallSuccess in interface org.alfresco.bm.http.AuthenticatedHttpEventProcessor.HttpRequestCallback<String>

onError

public boolean onError(org.apache.commons.httpclient.HttpMethod method,
                       Throwable t)
Specified by:
onError in interface org.alfresco.bm.http.AuthenticatedHttpEventProcessor.HttpRequestCallback<String>


Copyright © 2012. All Rights Reserved.