public class DefaultProcessLaunchHandler extends com.centurylink.mdw.listener.ExternalEventHandlerBase implements ProcessLaunchHandler
| Constructor and Description |
|---|
DefaultProcessLaunchHandler() |
| 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 |
getRequestDocumentType(org.apache.camel.Message request)
Return the request document object type.
|
java.lang.String |
getRequestVariable() |
java.lang.String |
getResponse(int code,
java.lang.String message)
Build the response based on the the message content.
|
java.lang.String |
getResponseVariable()
Only relevant for service processes.
|
java.lang.String |
handleEventMessage(java.lang.String message,
java.lang.Object messageObj,
java.util.Map<java.lang.String,java.lang.String> metaInfo)
This is for non-Camel style event handlers.
|
java.lang.Object |
initializeRequestDocument(org.apache.camel.Message request)
Parse the request message body and return its object representation.
|
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.
|
createDocument, createResponseMessage, getJaxbTranslator, getPackage, getProcessDefinition, getProcessId, getResource, invokeServiceProcess, invokeServiceProcess, invokeServiceProcess, invokeServiceProcess, launchProcess, launchProcess, marshalJaxb, notifyProcesses, placeHolderTranslation, setPackage, translateParameters, unmarshalJaxb, updateDocumentContentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPackage, setPackagepublic java.lang.String getMasterRequestId(org.apache.camel.Message request)
ProcessLaunchHandlergetMasterRequestId in interface ProcessLaunchHandlerrequest - message whose body is the object representation of the request (default is String)public com.centurylink.mdw.model.workflow.Process getProcess(org.apache.camel.Message request)
throws MdwCamelException
ProcessLaunchHandlergetProcess in interface ProcessLaunchHandlerrequest - message whose body is the object representation of the request (default is String)MdwCamelExceptionpublic java.lang.String getRequestDocumentType(org.apache.camel.Message request)
throws MdwCamelException
EventHandlerMdwCamelExceptionpublic java.lang.Object initializeRequestDocument(org.apache.camel.Message request)
throws MdwCamelException
EventHandlerrequest - - the request messageMdwCamelExceptionpublic 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
ProcessLaunchHandlerinvoke in interface ProcessLaunchHandlerjava.lang.Exceptionpublic java.util.Map<java.lang.String,java.lang.Object> getProcessParameters(org.apache.camel.Message request)
ProcessLaunchHandlergetProcessParameters in interface ProcessLaunchHandlerrequest - message whose body is the object representation of the request (default is String)public java.lang.String getRequestVariable()
getRequestVariable in interface ProcessLaunchHandlerpublic java.lang.String getResponseVariable()
ProcessLaunchHandlergetResponseVariable in interface ProcessLaunchHandlerpublic java.lang.String getResponse(int code,
java.lang.String message)
EventHandlercode - status codemessage - status messagepublic java.lang.String handleEventMessage(java.lang.String message,
java.lang.Object messageObj,
java.util.Map<java.lang.String,java.lang.String> metaInfo)
throws com.centurylink.mdw.event.EventHandlerException
handleEventMessage in interface com.centurylink.mdw.event.ExternalEventHandlercom.centurylink.mdw.event.EventHandlerException