Class StateTransition
java.lang.Object
fr.paris.lutece.plugins.workflow.business.workflowcycledetector.StateTransition
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddTransitionFromAction(List<StateTransition> list, fr.paris.lutece.plugins.workflowcore.business.action.Action action) Adds state transitions (StateTransition) to the given on the provided Action.Builds and returns a string representation of the path name.intReturns the identifier of the next state.intReturns the identifier of the previous state.
-
Method Details
-
addTransitionFromAction
public static void addTransitionFromAction(List<StateTransition> list, fr.paris.lutece.plugins.workflowcore.business.action.Action action) Adds state transitions (StateTransition) to the given on the provided Action.- Parameters:
list- The list of existing StateTransition objects.action- The Action object containing state transition details.
-
getPathName
Builds and returns a string representation of the path name.- Returns:
- A string representation of the path name.
-
getStateBefore
public int getStateBefore()Returns the identifier of the previous state.- Returns:
- The ID of the state before the current transition.
-
getStateAfter
public int getStateAfter()Returns the identifier of the next state.- Returns:
- The ID of the state after the current transition.
-