@Tracked(value=TRACE) public class TimerWaitActivity extends AbstractWait
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_WAIT |
| Constructor and Description |
|---|
TimerWaitActivity() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
This method will be deprecated soon.
|
protected int |
getWaitPeriodInSeconds()
Method that returns the wait period for the activity
|
protected void |
processOtherMessage(java.lang.String messageString)
This method is invoked to process a received event (other than timer expiration).
|
protected int |
processTimerExpiration()
This method is invoked when timer expires.
|
boolean |
resume(com.centurylink.mdw.model.event.InternalEvent event)
The resume method for this class is handling internal functions related to
events processing in addition to timer expiration, so it is not supposed to be overriden.
|
boolean |
resumeWaiting(com.centurylink.mdw.model.event.InternalEvent event)
This method is made final for the class, as it contains internal logic handling resumption
of waiting.
|
protected void |
sendDelayedResumeMessage(int seconds)
The method is used to schedule sending an activity resume message
after the given number of seconds.
|
deregisterEvents, getMessageFromEventMessage, getWaitEventSpecs, handleEventCompletionCode, needSuspend, 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, valueIsVariableprotected static final int DEFAULT_WAIT
protected final void sendDelayedResumeMessage(int seconds)
throws com.centurylink.mdw.activity.ActivityException
seconds - time for delaycom.centurylink.mdw.activity.ActivityExceptionpublic void execute()
throws com.centurylink.mdw.activity.ActivityException
DefaultActivityImplexecute in interface com.centurylink.mdw.activity.types.GeneralActivityexecute in class DefaultActivityImplcom.centurylink.mdw.activity.ActivityExceptionprotected int getWaitPeriodInSeconds()
throws com.centurylink.mdw.activity.ActivityException
com.centurylink.mdw.activity.ActivityExceptionprotected void processOtherMessage(java.lang.String messageString)
throws com.centurylink.mdw.activity.ActivityException
messageString - the entire message content of the external event (from document table)com.centurylink.mdw.activity.ActivityExceptionprotected int processTimerExpiration()
throws com.centurylink.mdw.activity.ActivityException
com.centurylink.mdw.activity.ActivityExceptionpublic final boolean resume(com.centurylink.mdw.model.event.InternalEvent event)
throws com.centurylink.mdw.activity.ActivityException
processOtherMessage(String), and to customize
the activity so that it can reset timer and wait again, please override
the method processTimerExpiration().resume in interface com.centurylink.mdw.activity.types.SuspendableActivityresume in class AbstractWaitcom.centurylink.mdw.activity.ActivityExceptionpublic final boolean resumeWaiting(com.centurylink.mdw.model.event.InternalEvent event)
throws com.centurylink.mdw.activity.ActivityException
processOtherMessage(String),
and processTimerExpiration().com.centurylink.mdw.activity.ActivityException