Need help with flow
Posted: 04 Jan 2017 04:23
Hi. My goal is to create a flow,that triggers when opening the flow editor and displays an overlay with a shortcut to the custom widgets referenced by the actions found within that flow.(for quicker access)
First question
Is there a trigger that fires when an action block within the flow editor is selected? (To get the name of the widget being referenced) Guess not, UI event trigger seems not to work.
Second question
I started analyzing the flows.xml file and obviously all the info is there. So what I want to do is get all the elements that are contained under the flow name using xpath and search for actions referencing widgets.
How can I do that?
I guess it would be helpful to provide a script actions that returns a Map with each Flow's elements.
Or maybe also providing a shortcut to the widget like with actions 'run flow'
First question
Is there a trigger that fires when an action block within the flow editor is selected? (To get the name of the widget being referenced) Guess not, UI event trigger seems not to work.
Second question
I started analyzing the flows.xml file and obviously all the info is there. So what I want to do is get all the elements that are contained under the flow name using xpath and search for actions referencing widgets.
How can I do that?
I guess it would be helpful to provide a script actions that returns a Map with each Flow's elements.
Or maybe also providing a shortcut to the widget like with actions 'run flow'