Class DefaultSTMTransitionAction<PayloadType extends MinimalPayload>
java.lang.Object
org.chenile.workflow.service.stmcmds.AbstractSTMTransitionAction<Process, PayloadType>
org.chenile.orchestrator.process.service.cmds.DefaultSTMTransitionAction<PayloadType>
- All Implemented Interfaces:
STMTransitionAction<Process>
public class DefaultSTMTransitionAction<PayloadType extends MinimalPayload>
extends AbstractSTMTransitionAction<Process, PayloadType>
This class is invoked if no specific transition action is specified
Extend this class to do generic things that are relevant for all actions in the workflow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtransitionTo(Process process, PayloadType payload, State startState, String eventId, State endState, STMInternalTransitionInvoker<?> stm, Transition transition) Implement this method to start using your expected payload type.Methods inherited from class AbstractSTMTransitionAction
doTransition
-
Constructor Details
-
DefaultSTMTransitionAction
public DefaultSTMTransitionAction()
-
-
Method Details
-
transitionTo
public void transitionTo(Process process, PayloadType payload, State startState, String eventId, State endState, STMInternalTransitionInvoker<?> stm, Transition transition) Description copied from class:AbstractSTMTransitionActionImplement this method to start using your expected payload type.- Specified by:
transitionToin classAbstractSTMTransitionAction<Process, PayloadType extends MinimalPayload>- Parameters:
process- the state entity that has been passed to STMpayload- The transition param with the correct payload typestartState- state at which the event occurredeventId- the event that happenedendState- the end statestm- this is for invoking other STMstransition- the definition of the entire transition in the STM configuration
-