Class WaitStep
java.lang.Object
com.broadleafcommerce.orchestration.internal.WaitStep
- All Implemented Interfaces:
SimpleActivity,InterruptAware,Interruptible
Special type of step handled internally by Broadleaf. Represents a simple thread pause for a
specified duration. Suitable for short wait intervals (not generally suited for long waits).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA human-readable description for this activity.getName()The unique name for this business task.longvoidPerform necessary operations to immediately wrap up execution before cancellation or pausevoidsetInterruptPollingInterval(Duration interruptPollingInterval) voidsetStartTime(long startTime) voidsetTimeout(Duration timeout) voidsetWaitDuration(Duration waitDuration) Begin execution of the taskMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.orchestration.internal.Interruptible
allowThreadInterrupt, isInterruptedMethods inherited from interface com.broadleafcommerce.orchestration.client.SimpleActivity
getLocalCache, getWorkflowInformation, log, putLocalCache
-
Field Details
-
WAIT_STEP_ACTIVITY_NAME
- See Also:
-
WAIT_STEP_ACTIVITY_DESCRIPTION
- See Also:
-
WAIT_COMPLETION_RESPONSE
- See Also:
-
-
Constructor Details
-
WaitStep
-
WaitStep
public WaitStep()
-
-
Method Details
-
interrupt
public void interrupt()Description copied from interface:InterruptAwarePerform necessary operations to immediately wrap up execution before cancellation or pause- Specified by:
interruptin interfaceInterruptAware
-
start
Description copied from interface:SimpleActivityBegin execution of the task- Specified by:
startin interfaceSimpleActivity- Parameters:
context- Any information needed to perform the task- Returns:
- status and context data resulting from execution
-
getName
Description copied from interface:SimpleActivityThe unique name for this business task. Should match the Spring bean name for the activity bean.- Specified by:
getNamein interfaceSimpleActivity- Returns:
- The unique name for this business task.
-
getDescription
Description copied from interface:SimpleActivityA human-readable description for this activity. Generally also unique like the name to ensure clarity in the admin UI.- Specified by:
getDescriptionin interfaceSimpleActivity- Returns:
- A human-readable description for this activity.
-
getWaitDuration
-
setWaitDuration
-
getTimeout
-
setTimeout
-
getStartTime
public long getStartTime() -
setStartTime
public void setStartTime(long startTime) -
getInterruptPollingInterval
-
setInterruptPollingInterval
-