Interface MutableWorkflowExecutionContext

All Superinterfaces:
AutoCloseable, WorkflowExecutionContext

public interface MutableWorkflowExecutionContext extends WorkflowExecutionContext, AutoCloseable
Interface for a modifiable workflow execution context. ModifiableWorkflowExecutionContext extends WorkflowExecutionContext to provide methods for modifying the context during workflow instance execution, including setting transition IDs, created states, and join state instances.
Since:
1.0
See Also:
  • Method Details

    • close

      void close()
      Closes this context and releases any associated resources. This method should be called when the context is no longer needed to ensure proper cleanup and resource management.
      Specified by:
      close in interface AutoCloseable
    • setTransitionId

      void setTransitionId(TransitionId transitionId)
      Sets the current transition ID for this context.
      Parameters:
      transitionId - the transition ID to set
    • setCreatedState

      void setCreatedState(StateInstance newState)
      Sets the newly created state instance for this context.
      Parameters:
      newState - the newly created state instance
    • setJoinStateInstances

      void setJoinStateInstances(JoinStateInstances joinStateInstances)
      Sets the join state instances for this context.
      Parameters:
      joinStateInstances - the join state instances