Class WorkflowExecutionContext
java.lang.Object
com.broadleafcommerce.orchestration.internal.WorkflowExecutionContext
Threadlocal providing access to
WorkflowInformation during a single
SimpleWorkflow.start(Map) execution. Also provides access to a map for runtime cache of
oft used data and objects during the immediate workflow execution lifecycle.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexec(Runnable runnable, WorkflowInformation workflowInformation) static WorkflowExecutionContextget()getCache()booleanWhether the workflow execution has been marked for interruption.voidsetInterruptHint(boolean interruptHint) Whether the workflow execution has been marked for interruption.
-
Constructor Details
-
WorkflowExecutionContext
-
-
Method Details
-
get
-
exec
-
getWorkflowInformation
-
getCache
-
isInterruptHint
public boolean isInterruptHint()Whether the workflow execution has been marked for interruption. It is optional for activities to check for interruption (seeInterruptible), so during a workflow pause (for example), even though the workflow is interrupted, the activity may continue to completion before the workflow execution exits. -
setInterruptHint
public void setInterruptHint(boolean interruptHint) Whether the workflow execution has been marked for interruption. It is optional for activities to check for interruption (seeInterruptible), so during a workflow pause (for example), even though the workflow is interrupted, the activity may continue to completion before the workflow execution exits. -
getThread
-