public class MCase extends Object
Modifier and Type | Method and Description |
---|---|
MCase |
executeTransition(String transID_p)
execute the transition from the current state.
|
MCase |
executeTransition(String transID_p,
groovy.lang.Closure<Object> func_p)
execute the transition from the current state, and execute the
function passed in after the default transition TRIGGER has been executed.
|
String |
getName()
returns the name of this MCase
|
List<MStep> |
getStepList() |
MCase |
navigateToState(String stateID_p)
navigate from current state to the desired state through the shortest path.
|
MCase |
skipToState(String stateID_p)
from current state jump/skip to the desired state without actually
traversing/executing any state/trans.
|
public MCase(String name_p)
public MCase navigateToState(String stateID_p)
stateID_p
- - can be a state id (if unique) or state UID.public MCase skipToState(String stateID_p)
stateID_p
- - can be a state id (if unique) or state UID.public MCase executeTransition(String transID_p)
transID_p
- - can be a transition id (if unique) or transtion UID.public MCase executeTransition(String transID_p, groovy.lang.Closure<Object> func_p)
transID_p
- - can be a transition id (if unique) or transition UID.public String getName()
Copyright TestOptimal, LLC