Class SecondSTMTransitionAction<StateEntityType extends StateEntity, PayloadType>
java.lang.Object
org.chenile.workflow.service.stmcmds.AbstractSTMTransitionAction<StateEntityType, PayloadType>
org.chenile.workflow.service.stmcmds.SecondSTMTransitionAction<StateEntityType, PayloadType>
- Type Parameters:
StateEntityType- the subtype of the state entityPayloadType- the type of payload
- All Implemented Interfaces:
STMTransitionAction<StateEntityType>
public abstract class SecondSTMTransitionAction<StateEntityType extends StateEntity, PayloadType>
extends AbstractSTMTransitionAction<StateEntityType, PayloadType>
This class also supports the notion of a chain of transition actions that can be attached to
the same event. The class registers itself to the main event transition action using
registerAction(String, int). An index determines the order of registration. The transition
actions are executed in the order of the index starting from the first transition action.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String[]private final intprivate final MultipleCommandsRegistry<StateEntityType, PayloadType> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSecondSTMTransitionAction(MultipleCommandsRegistry<StateEntityType, PayloadType> commandsRegistry, int index, String... eventIds) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()protected voidregisterAction(String eventId, int index) Methods inherited from class AbstractSTMTransitionAction
doTransition, transitionTo
-
Field Details
-
multipleCommandsRegistry
private final MultipleCommandsRegistry<StateEntityType extends StateEntity, PayloadType> multipleCommandsRegistry -
eventIds
-
index
private final int index
-
-
Constructor Details
-
SecondSTMTransitionAction
protected SecondSTMTransitionAction(MultipleCommandsRegistry<StateEntityType, PayloadType> commandsRegistry, int index, String... eventIds)
-
-
Method Details
-
registerAction
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init() throws Exception- Throws:
Exception
-