Filter State Machine based on Guard Conditions
Opened this issue · 2 comments
divyanshud commented
We wanted to generate the state transition diagram only for 1 of my guard conditions as we have multiple guard conditions and we don't want the diagram for all the guard condition transition.
event :move_to_abc do
transitions from: :xyz, to: :abc, guards: :guard1?
transitions from: :mno, to: :abc, guards: :guard2?
transitions from: :pqr, to: :abc, guards: :guard3?
end
So we have to generate different diagram for every guards i.e. guard1, guard2, guard3
dstuebe commented
For my part, I would be happy to just see the name of the guard. I suppose it would get a bit tricky if you define a do block instead of using the declarative form? Anybody else interested in working on this?
Katee commented
I'd be happy to merge a pull request supporting guard conditions.