Background:
I have same Trigger
with mutually exclusive guard
conditions defined with PermitIf
that will cause transition to different states depending on those conditions.
Guards have Descriptions
defined and they show up nicely in brackets in exported DOT graph, so it is easy to follow through.
machine
.Configure(Status.Registered)
.PermitIf(Activity.Submit, Status.Submitted, IsGoodRating, "Is good rating")
.PermitIf(Activity.Submit, Status.Denied, IsBadRating, "Is bad rating")
Now, I know there is machine.PermittedTriggers
property that returns allowed Triggers in current state which is great, but here is the question.
Question :
Is there a way to get a list of PermittedTriggers
with corresponding guard conditions for status Registered
in this case?