Better ability to introspect flow transitions [SWF-43] #974
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
Milestone
Chris Wood opened SWF-43 and commented
It would be handy if flow transitions had a bit more information available for introspecting.
This is my use case: In my view I run through the list of available transitions out of the particular view state. I'd like to render these as a list of links / submit buttons / whatever on the page, however there's no way to determine the eventId that the particular transition has as it's criteria, so I can't write the 'eventId' parameter easily.
A related issue is that it would be nice to have a canExecute method on the transition which takes a request context (for the current view state) and an eventId (for what view we're going to go to). Why is this useful? Again for the above case where we're running through the list of transitions and determining which ones are valid for this current view. The criteria list could then contain criteria based on security permissions ect.
I'd be happy to implement this bit of functionality and contribute it back if someone gives me the nod.
No further details from SWF-43
The text was updated successfully, but these errors were encountered: