Inherited flow doesn't work when returning to a sub-flow.
Scenario:
* Abstract flow definition of global menu transitions.
* Flow starts then triggers a subflow.
* Menu clicked when in subflow (results in error 'No transition found on occurrence of event')
* Adding the GT transition (which should of been inherited) into subflow-state resolves the problem but defeats the point sadly.
Workaround: Code:
lt;subflow-state id=quot;edit.subflowquot; subflow=quot;some-flowquot;gt; . . lt;transition on=quot;*quot; to=quot;${currentEvent}quot;/gt;
lt;/subflow-stategt;James,
I'm wondering if this is an issue with flow inheritance or with subflows using a global transition. Can you try moving the transition into the global-transitions block of the concrete flow definition.
If that works, then this is an inheritance issue. If not it is a subflow issue.
Either way, please open a JIRA.
-Scott
Adding the GT in the concrete flow did not resolve the problem.
JIRA Opened
browse/SWF-665
Scott
Having looked into this further I don't think there is a problem with SWF2.0. I was missing a set of GT's to handle the end-state ID returned from the sub-flow.
This was why my workaround lt;transition on=quot;*quot; to=quot;${currentEvent}quot; /gt; works because 'currentEvent' equals an inherited lt;end-stategt; which then starts a new flow via flowRedirect.
Hope you didn't spend much time of looking into this yet! |