@Tracked(value=TRACE) @Activity(value="Event Wait Activity", category=EventWaitActivity.class, icon="com.centurylink.mdw.base/receive.gif", pagelet="com.centurylink.mdw.base/eventWait.pagelet") public class EventWaitActivity extends AbstractWait implements EventWaitActivity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RECEIVED_MESSAGE_DOC_VAR |
DISABLED, GROOVY, JAVA_EL, JAVASCRIPT, logger, OUTPUTDOCS
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) |
boolean |
needSuspend()
The method is invoked by the engine right after the activity is executed,
to determine whether to put the activity instance in waiting status.
|
protected void |
processMessage(java.lang.String message)
You should override this method to process event messages.
|
boolean |
resume(InternalEvent eventMessageDoc)
You cannot override this method.
|
boolean |
resumeWaiting(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, registerWaitEvents, registerWaitEvents
execute
createDocument, createDocument, createDocument, createDocument, evaluateExpression, executeScript, getActivityId, getActivityInstance, getActivityInstanceId, getActivityName, getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValueSmart, getDocument, getDocumentContent, getDocumentForUpdate, getDocumentType, getEngine, getExternalEventInstanceDetails, getLogger, getMainProcessDefinition, getMasterRequestId, getOutputDocuments, getPackage, getParameterId, getParameters, getParameterStringValue, getParameterType, getParameterValue, getPerformanceLevel, getProcessDefinition, getProcessId, getProcessInstance, getProcessInstanceId, getProcessInstanceOwner, getProcessInstanceOwnerId, getProperty, getRequiredAttribute, getRequiredVariableValue, getReturnCode, getReturnMessage, getRuntimeContext, getScriptEvaluator, getScriptExecClassName, getScriptExecutor, getValue, getValues, getValueSmart, getVariableInstance, getVariableValue, getVariableValueSmart, getWorkTransitionInstanceId, initialize, isDisabled, isLogDebugEnabled, isLogInfoEnabled, isOutputDocument, lockActivityInstance, lockProcessInstance, logdebug, logDebug, logError, logError, logexception, loginfo, logInfo, logsevere, logwarn, logWarn, prepare, setOutputDocuments, setParameterValue, setParameterValueAsDocument, setParameterValues, setProcessInstanceCompletionCode, setReturnCode, setReturnMessage, setValue, setVariableValue, setVariableValue, startTransaction, stopTransaction, translatePlaceHolder, updateDocumentContent, updateDocumentInfo, updateDocumentInfo, valueIsJavaExpression, valueIsVariable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public static final java.lang.String RECEIVED_MESSAGE_DOC_VAR
public void execute() throws ActivityException
execute
in interface GeneralActivity
execute
in class DefaultActivityImpl
ActivityException
protected boolean isEventRecurring(java.lang.String completionCode)
protected int getTimeoutSeconds() throws PropertyException
PropertyException
public java.util.List<java.lang.String[]> getWaitEventSpecs()
getWaitEventSpecs
in class AbstractWait
public boolean needSuspend()
SuspendableActivity
needSuspend
in interface SuspendableActivity
needSuspend
in class AbstractWait
public final boolean resume(InternalEvent eventMessageDoc) throws ActivityException
processMessage(String)
or handleCompletionCode()
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 SuspendableActivity
resume
in class AbstractWait
ActivityException
protected void processMessage(java.lang.String message)
message
- received messageprotected boolean handleCompletionCode() throws ActivityException
ActivityException
public boolean resumeWaiting(InternalEvent eventMessageDoc) throws ActivityException
resumeWaiting
in interface SuspendableActivity
ActivityException
protected final void setActivityWaitingOnExit()
protected final void setActivityHoldOnExit()
protected void updateSLA(int seconds) throws ActivityException
seconds
- number of seconds from now as the new SLAActivityException
- ActivityExceptionCopyright © 2019 CenturyLink, Inc.