Last active
August 23, 2021 17:10
-
-
Save stevehebert/57c3a51eac85f41a1047cd20648872d5 to your computer and use it in GitHub Desktop.
Configuring the State Machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p.Configure(Opened). | |
OnEntry(OnOrderOpened). | |
PermitReentry(AddItemToOrder). | |
Permit(Claim, Claimed). | |
Permit(Cancel, Canceled) | |
p.Configure(Claimed). | |
OnEntry(OnOrderClaimed). | |
PermitReentry(AddItemToOrder). | |
Permit(Deliver, Delivered). | |
Permit(Cancel, Canceled) | |
p.Configure(Cancelled). | |
OnEntry(OnCancel) | |
p.FilteredSideEffect(plinko.AfterTransition, RecordMeasurementsAndLogging) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment