Class MultipleCommandsRegistry<StateEntityType extends StateEntity, PayloadType>
java.lang.Object
org.chenile.workflow.service.stmcmds.MultipleCommandsRegistry<StateEntityType, PayloadType>
public class MultipleCommandsRegistry<StateEntityType extends StateEntity, PayloadType>
extends Object
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, Set<MultipleCommandsRegistry<StateEntityType, PayloadType>.OrderedCommand>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCommand(String eventId, int index, SecondSTMTransitionAction<StateEntityType, PayloadType> action) voidinitExecuteChain(StateEntityType stateEntity, Object transitionParam, State startState, String eventId, State endState, STMInternalTransitionInvoker<?> stm, Transition transition)
-
Field Details
-
registry
private final Map<String, Set<MultipleCommandsRegistry<StateEntityType extends StateEntity, PayloadType>.OrderedCommand>> registry
-
-
Constructor Details
-
MultipleCommandsRegistry
public MultipleCommandsRegistry()
-
-
Method Details
-
addCommand
protected void addCommand(String eventId, int index, SecondSTMTransitionAction<StateEntityType, PayloadType> action) -
initExecuteChain
public void initExecuteChain(StateEntityType stateEntity, Object transitionParam, State startState, String eventId, State endState, STMInternalTransitionInvoker<?> stm, Transition transition) throws Exception - Throws:
Exception
-