Class Transition
- Namespace
- Acuit.Pinpoint.Workflows.Activities
- Assembly
- Acuit.Pinpoint.Workflows.dll
A state machine transition.
public class Transition
- Inheritance
-
Transition
- Inherited Members
Properties
Action
Gets or sets an optional activity which should be executed when the transition is taken.
public IActivity Action { get; set; }
Property Value
Remarks
This will run after the Exit activities for states that are exited due to the transition, and before the Entry activities for states that are entered due to the transition. Thus, this will not run should an active state prevent the transition via CancelExitCondition.
Condition
Gets or sets an optional condition to decide whether the transition should be taken after the trigger completes. If this is not set, the transition will be allowed.
public ValueSource<bool?> Condition { get; set; }
Property Value
DisplayName
Gets or sets the display name of the transition.
public string DisplayName { get; set; }
Property Value
Remarks
This is used by debug log messages.
To
Gets or sets the target state of the transition. This is required and must reference a state in the state machine hierarchy.
public State To { get; set; }
Property Value
Trigger
Gets or sets the optional trigger activity of the transition. When the trigger activity is completed, the state machine will start to evaluate whether the transition should be taken. If there is no trigger, the state machine will immediately start to evaluate whether the transition should be taken.
public IActivity Trigger { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.