Class SubProcessDoneSuccessfullyAction
java.lang.Object
org.chenile.workflow.service.stmcmds.AbstractSTMTransitionAction<Process, DoneSuccessfullyPayload>
org.chenile.orchestrator.process.service.cmds.SubProcessDoneSuccessfullyAction
- All Implemented Interfaces:
STMTransitionAction<Process>
public class SubProcessDoneSuccessfullyAction
extends AbstractSTMTransitionAction<Process, DoneSuccessfullyPayload>
If subprocess is done successfully, then we should increment the num of completed sub processes.
We should also activate the successors for this sub process. (These would have been created in a
dormant state when this subprocess was created)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtransitionTo(Process process, DoneSuccessfullyPayload 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
-
Field Details
-
logger
org.slf4j.Logger logger
-
-
Constructor Details
-
SubProcessDoneSuccessfullyAction
public SubProcessDoneSuccessfullyAction()
-
-
Method Details
-
transitionTo
public void transitionTo(Process process, DoneSuccessfullyPayload payload, State startState, String eventId, State endState, STMInternalTransitionInvoker<?> stm, Transition transition) throws Exception Description copied from class:AbstractSTMTransitionActionImplement this method to start using your expected payload type.- Specified by:
transitionToin classAbstractSTMTransitionAction<Process, DoneSuccessfullyPayload>- 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- Throws:
Exception- if an exception occurs.
-