Class WorkflowExecutionContext

java.lang.Object
com.broadleafcommerce.orchestration.internal.WorkflowExecutionContext

public class WorkflowExecutionContext extends Object
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 Details

    • WorkflowExecutionContext

      public WorkflowExecutionContext(WorkflowInformation workflowInformation)
  • Method Details

    • get

      public static WorkflowExecutionContext get()
    • exec

      public static void exec(Runnable runnable, WorkflowInformation workflowInformation)
    • getWorkflowInformation

      public WorkflowInformation getWorkflowInformation()
    • getCache

      public Map<String,Object> getCache()
    • isInterruptHint

      public boolean isInterruptHint()
      Whether the workflow execution has been marked for interruption. It is optional for activities to check for interruption (see Interruptible), 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 (see Interruptible), 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

      public Thread getThread()