Execute Macro Event¶
Warning
To configure and run this event type it is required to have Execute permissions on the flow to be computed.
The Execute macro event allows users to run a Rulex Factory macro.
This event is made of one tab only, the Execute Macro tab, which contains the following options:
Select flow: click on the three-dotted button at the end of the text field. Once the source controller is opened, users can browse in the interface, which is very similar to the Explorer panel, to pick up the desired flow. For ease in finding flows or environments containing flows, it is possible to click the magnifier icon to open the search field, where users can type the desired flow name. Moreover, it is possible to sort the resources from the Order by menu (more information can be found in the corresponding page). Alternatively, by hovering over the plus button, it is possible to Import Source, Import Environment, Create Environment, Import Flow, Create Flow.
Macro name: type the name of the macro which will be executed by the event.
Failure policy: select from the drop-down list the failure policy, which can be: Continue (default), or Stop macro. More information on the macro’s failure policy can be found in the corresponding page.
Wait macro execution ending to run the following event: if selected (default), the software waits that the macro execution is over to run the successive event steps.
At the bottom of the event window, more options on the event running are provided, as listed here.
Example¶
The following example can be replicated using any widget on the stage.
After having dragged a General button onto the stage, right-click on it and click Set event, then onClick.
- Select Execute macro as event type, then configure the interface as follows:
Select flow: Plots
Macro name: Create Task
Failure policy: Continue
Leave the Wait macro execution ending to run the following event option checked.
