Package com.yworkflow.instance.context
Interface MutableWorkflowExecutionContext
- All Superinterfaces:
AutoCloseable,WorkflowExecutionContext
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 Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this context and releases any associated resources.voidsetCreatedState(StateInstance newState) Sets the newly created state instance for this context.voidsetJoinStateInstances(JoinStateInstances joinStateInstances) Sets the join state instances for this context.voidsetTransitionId(TransitionId transitionId) Sets the current transition ID for this context.Methods inherited from interface com.yworkflow.instance.context.WorkflowExecutionContext
getCallerContext, getClock, getCreatedState, getInputs, getJoinStateInstances, getPersistents, getTransients, getTransitionId, getWorkflow, getWorkflowInstanceId, getWorkflowInstanceStore
-
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:
closein interfaceAutoCloseable
-
setTransitionId
Sets the current transition ID for this context.- Parameters:
transitionId- the transition ID to set
-
setCreatedState
Sets the newly created state instance for this context.- Parameters:
newState- the newly created state instance
-
setJoinStateInstances
Sets the join state instances for this context.- Parameters:
joinStateInstances- the join state instances
-