| StateMachineTemplateTransition Method (String, String, Object, StateMachineGuardCallback, StateMachineActionCallback) |
Namespace: StaMaAssembly: StaMa (in StaMa.dll) Version: 2.3.1.7
Syntax public void Transition(
string name,
string[] targetStates,
Object triggerEvent,
StateMachineGuardCallback guard,
StateMachineActionCallback transitionAction
)
Public Sub Transition (
name As String,
targetStates As String(),
triggerEvent As Object,
guard As StateMachineGuardCallback,
transitionAction As StateMachineActionCallback
)
public:
void Transition(
String^ name,
array<String^>^ targetStates,
Object^ triggerEvent,
StateMachineGuardCallback^ guard,
StateMachineActionCallback^ transitionAction
)
member Transition :
name : string *
targetStates : string[] *
triggerEvent : Object *
guard : StateMachineGuardCallback *
transitionAction : StateMachineActionCallback -> unit
Parameters
- name
- Type: SystemString
A name that identifies the Transition for debugging and tracing purposes. Must be unique within the StateMachineTemplate.
- targetStates
- Type: SystemString
A list of names of State instances that define the target-State instances of the Transition.
The targetStates collection must form a valid State configuration within this StateMachineTemplate.
- triggerEvent
- Type: SystemObject
A Object that represents the trigger event that will execute the transition or null to indicate an "any" transition.
See also SendTriggerEvent(Object).
- guard
- Type: StaMaStateMachineGuardCallback
A StateMachineGuardCallback delegate that provides additional conditions
for the transition; otherwise, null if no addititional conditions are neccessary.
- transitionAction
- Type: StaMaStateMachineActionCallback
A StateMachineActionCallback delegate that will be called when
the transition is executed.
May be null if no transition action is required.
Exceptions Remarks See Also