Class Transition
java.lang.Object
org.cristalise.kernel.lifecycle.instance.stateMachine.Transition
-
Constructor Summary
ConstructorsConstructorDescriptionTransition(int id, String name) Transition(int id, String name, int originStateId, int targetStateId) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckPerformingRole(Activity act, AgentPath agent) booleangetQuery(CastorHashMap actProps) getReservation(Activity act, AgentPath agent) getRoleOverride(CastorHashMap actProps) getSchema(CastorHashMap actProps) getScript(CastorHashMap actProps) getScriptName(CastorHashMap actProps) Deprecated.intgetScriptVersion(CastorHashMap actProps) Deprecated.inthashCode()booleanhasOutcome(CastorHashMap actProps) booleanhasQuery(CastorHashMap actProps) booleanhasScript(CastorHashMap actProps) booleanbooleanComputes if the Transition is enabled or not.booleanprotected booleanresolveStates(HashMap<Integer, State> states) voidsetReinitializes(boolean reinit) voidsetTargetState(State targetState) toString()
-
Constructor Details
-
Transition
public Transition() -
Transition
-
Transition
-
-
Method Details
-
setTargetState
-
reinitializes
public boolean reinitializes() -
setReinitializes
public void setReinitializes(boolean reinit) -
getRoleOverride
-
resolveStates
-
checkPerformingRole
public void checkPerformingRole(Activity act, AgentPath agent) throws ObjectNotFoundException, AccessRightsException -
getReservation
-
isEnabled
Computes if the Transition is enabled or not. The default value is true: if the enabledProp is empty or the Activity property specified in enabledProp is undefined or its value is null.- Parameters:
act- the activity of the actual StateMachine/Transition- Returns:
- weather the Transition is enabled or not
- Throws:
ObjectNotFoundException- Objects were not found while evaluating properties
-
hasOutcome
-
hasScript
-
hasQuery
-
getSchema
public Schema getSchema(CastorHashMap actProps) throws InvalidDataException, ObjectNotFoundException -
getScript
public Script getScript(CastorHashMap actProps) throws ObjectNotFoundException, InvalidDataException -
getQuery
-
getScriptName
Deprecated. -
getScriptVersion
Deprecated.- Throws:
InvalidDataException
-
isBlocking
public boolean isBlocking() -
toString
-
hashCode
public int hashCode() -
equals
-