@Tracked(value=TRACE) public class EventWaitActivity extends AbstractWait implements com.centurylink.mdw.activity.types.EventWaitActivity
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RECEIVED_MESSAGE_DOC_VAR |
| Constructor and Description |
|---|
EventWaitActivity() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Method that executes the logic based on the work
|
protected int |
getTimeoutSeconds() |
java.util.List<java.lang.String[]> |
getWaitEventSpecs() |
protected boolean |
handleCompletionCode() |
protected boolean |
isEventRecurring(java.lang.String completionCode) |
protected void |
logMessage(java.lang.String responseData) |
boolean |
needSuspend() |
protected void |
processMessage(java.lang.String message)
You should override this method to process event messages.
|
boolean |
resume(com.centurylink.mdw.model.event.InternalEvent eventMessageDoc)
You cannot override this method.
|
boolean |
resumeWaiting(com.centurylink.mdw.model.event.InternalEvent eventMessageDoc)
Typically you will not override this method
|
protected void |
setActivityHoldOnExit() |
protected void |
setActivityWaitingOnExit() |
protected void |
updateSLA(int seconds)
Update SLA of this
|
deregisterEvents, getMessageFromEventMessage, handleEventCompletionCode, registerWaitEvent, registerWaitEventsexecutecloseDatabaseAccess, createDocument, createDocument, createDocument, createDocument, doCompatibilityCodeSubstitutions, evaluateExpression, executeScript, getActivityId, getActivityInstance, getActivityInstanceId, getActivityName, getAsset, getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValueAsVariableName, getAttributeValueSmart, getDocument, getDocumentContent, getDocumentForUpdate, getEngine, getEntryCode, getExternalEventInstanceDetails, getMainProcessDefinition, getMasterRequestId, getOutputDocuments, getPackage, getParameterId, getParameters, getParameterStringValue, getParameterType, getParameterValue, getParameterValue, getParentProcessId, getPerformanceLevel, getProcessDefinition, getProcessId, getProcessInstance, getProcessInstanceId, getProcessInstanceOwner, getProcessInstanceOwnerId, getProperty, getRequiredAttribute, getRequiredVariableValue, getReturnCode, getReturnMessage, getRuntimeContext, getScriptEvaluator, getScriptExecClassName, getScriptExecutor, getValue, getValueSmart, getVariableInstance, getVariableValue, getVariableValueSmart, getWorkTransitionInstanceId, initialize, isDisabled, isLogDebugEnabled, isLogInfoEnabled, isOutputDocument, lockActivityInstance, lockProcessInstance, logdebug, logexception, loginfo, logsevere, logtag, logwarn, openDatabaseAccess, prepare, setOutputDocuments, setParameterValue, setParameterValue, setParameterValueAsDocument, setParameterValues, setProcessInstanceCompletionCode, setReturnCode, setReturnMessage, setValue, setVariableValue, setVariableValue, startTransaction, stopTransaction, translatePlaceHolder, updateDocumentContent, updateDocumentInfo, updateDocumentInfo, valueIsJavaExpression, valueIsVariablepublic static final java.lang.String RECEIVED_MESSAGE_DOC_VAR
public void execute()
throws com.centurylink.mdw.activity.ActivityException
execute in interface com.centurylink.mdw.activity.types.GeneralActivityexecute in class DefaultActivityImplcom.centurylink.mdw.activity.ActivityExceptionprotected boolean isEventRecurring(java.lang.String completionCode)
protected int getTimeoutSeconds()
throws com.centurylink.mdw.config.PropertyException
com.centurylink.mdw.config.PropertyExceptionpublic java.util.List<java.lang.String[]> getWaitEventSpecs()
getWaitEventSpecs in class AbstractWaitprotected void logMessage(java.lang.String responseData)
public boolean needSuspend()
needSuspend in interface com.centurylink.mdw.activity.types.SuspendableActivityneedSuspend in class AbstractWaitpublic final boolean resume(com.centurylink.mdw.model.event.InternalEvent eventMessageDoc)
throws com.centurylink.mdw.activity.ActivityException
processMessage(String) instead.
This method is called when the message is received after registration. It extracts the message,
records the message in ADAPTER_INSTANCE table, and invoke processMessage(String).resume in interface com.centurylink.mdw.activity.types.SuspendableActivityresume in class AbstractWaitcom.centurylink.mdw.activity.ActivityExceptionprotected void processMessage(java.lang.String message)
throws com.centurylink.mdw.activity.ActivityException
message - received messagecom.centurylink.mdw.activity.ActivityException - ActivityExceptionprotected boolean handleCompletionCode()
throws com.centurylink.mdw.activity.ActivityException
com.centurylink.mdw.activity.ActivityExceptionpublic boolean resumeWaiting(com.centurylink.mdw.model.event.InternalEvent eventMessageDoc)
throws com.centurylink.mdw.activity.ActivityException
resumeWaiting in interface com.centurylink.mdw.activity.types.SuspendableActivitycom.centurylink.mdw.activity.ActivityExceptionprotected final void setActivityWaitingOnExit()
protected final void setActivityHoldOnExit()
protected void updateSLA(int seconds)
throws com.centurylink.mdw.activity.ActivityException
seconds - number of seconds from now as the new SLAcom.centurylink.mdw.activity.ActivityException - ActivityException