public interface ProcessLaunchHandler extends EventHandler
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMasterRequestId(org.apache.camel.Message request)
Return the masterRequestId to be used for launching the process.
|
com.centurylink.mdw.model.workflow.Process |
getProcess(org.apache.camel.Message request)
Return the process definition to be launched.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProcessParameters(org.apache.camel.Message request)
Return the name/value pairs for the input variables used in launching the process.
|
java.lang.String |
getRequestVariable() |
java.lang.String |
getResponseVariable()
Only relevant for service processes.
|
java.lang.Object |
invoke(java.lang.Long processId,
java.lang.Long owningDocId,
java.lang.String masterRequestId,
org.apache.camel.Message request,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Launch the process.
|
getPackage, getRequestDocumentType, getResponse, initializeRequestDocument, setPackagecom.centurylink.mdw.model.workflow.Process getProcess(org.apache.camel.Message request)
throws MdwCamelException
request - message whose body is the object representation of the request (default is String)MdwCamelExceptionjava.lang.String getMasterRequestId(org.apache.camel.Message request)
request - message whose body is the object representation of the request (default is String)java.util.Map<java.lang.String,java.lang.Object> getProcessParameters(org.apache.camel.Message request)
request - message whose body is the object representation of the request (default is String)java.lang.String getRequestVariable()
java.lang.String getResponseVariable()
java.lang.Object invoke(java.lang.Long processId,
java.lang.Long owningDocId,
java.lang.String masterRequestId,
org.apache.camel.Message request,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws java.lang.Exception
processId - owningDocId - masterRequestId - request - parameters - java.lang.Exception