Skip to content

Instantly share code, notes, and snippets.

@BrianMRO
Created March 2, 2022 16:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save BrianMRO/33d4eceb9f9055e84af6b573931149ca to your computer and use it in GitHub Desktop.
Workflow - Adding Transitions
transitions.AddGroupFrom(State.InitialState, ts =>
{
ts.Add(t => t
.To<State.hold>()
.IsTriggeredOn(g => g.initializeState));
});
transitions.Add(transition => transition
.From<State.hold>()
.To<State.open>()
.IsTriggeredOn(removeHold)
.WithFieldAssignments(fas => fas.Add<hold>(false))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment