Interface State<T>
-
public interface State<T>- Author:
- Baptiste Mesta
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(SProcessDefinition processDefinition, T instance)intgetId()java.lang.StringgetName()booleanisInterrupting()Checks whether the state can be interrupted.booleanisStable()booleanisTerminal()Checks whether the state is a terminal one.
-
-
-
Method Detail
-
execute
void execute(SProcessDefinition processDefinition, T instance) throws SActivityStateExecutionException
- Throws:
SActivityStateExecutionException
-
getId
int getId()
-
getName
java.lang.String getName()
-
isInterrupting
boolean isInterrupting()
Checks whether the state can be interrupted.- Returns:
- true if the state can be interrupted; false otherwise
-
isStable
boolean isStable()
- Returns:
- true if the state is stable a final state is stable
-
isTerminal
boolean isTerminal()
Checks whether the state is a terminal one.- Returns:
- true is the state is a terminal one; false otherwise
-
-