Package com.yworkflow.instance.model
Interface JoinStateInstances
public interface JoinStateInstances
Represents a collection of state instances that are being joined together. JoinStateInstances
provides access to multiple state instances that are participating in a join operation, allowing
the workflow engine to synchronize multiple parallel execution paths.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets a specific state instance by its state ID.Collection<? extends StateInstance>Gets all state instances in this join as a collection.Gets all state instances in this join as a map keyed by state ID.
-
Method Details
-
getStates
Map<String,StateInstance> getStates()Gets all state instances in this join as a map keyed by state ID.- Returns:
- a map of state ID to StateInstance
-
getState
Gets a specific state instance by its state ID.- Parameters:
stateId- the state ID to look up- Returns:
- the StateInstance for the specified state ID, or null if not found
-
getStateInstances
Collection<? extends StateInstance> getStateInstances()Gets all state instances in this join as a collection.- Returns:
- a collection of all StateInstance objects in this join
-