Working with Trigger Action Process

Navigation:  How to Work with Processes > Working with the Branch Processes Group >

Working with Trigger Action Process

Previous pageReturn to chapter overviewNext page

 

Process Purpose

 

It is possible to associate a custom action to a background procedure to retrieve specific information and, then, share it with the foreground. See Custom Actions.

The "Trigger Action" process is used in the background (within a background procedure running in a secondary thread) to notify the foreground program that the specified custom action has information to be retrieved (the required custom action is called in the intended screen). See To Add a "Custom Action" to a Screen.

If required, the process can, also, be used to assign values to the selected custom action's parameters.

 

This process is ONLY active within the "Background Procedures" module.

Check the example for this process at the end of this topic.

 

The "Trigger Action" process is meant to be used as follows:

1. The "Trigger Action" process is added to a background procedure (to its "Procedure" tab) to notify the foreground that the referenced custom action can be triggered onto a screen.

2. The custom action is added, in the foreground, to the screen that is meant to handle the information and trigger the required business logic (processes). See To Add a "Custom Action" to a Screen.

 

 

When you add a process, you are required to define its settings. This occurs in the process's properties window which is displayed automatically after having added the "Trigger Action" process.

If any subsequent edition is required, double-click the process to open its properties window and enter the necessary modifications.

 

 

Fill in the following options:

 

Action

Name

Select a custom action from the drop-down (it provides all the custom actions) OR  click to create a new custom action or edit an existing one.

See To Define a Custom Action in a Project.

Send Parameters

Name column

Not editable. Displays the selected custom action's parameters which are defined in the "Parameters" tab of a custom action's properties window.

Value column

If required, enter a value for the custom action's parameter to be shared with the foreground OR  click to select a variable with the intended value.

 

If required, click to attach any relevant notes to this process. Click it and enter your notes in the resulting text box. These notes will be displayed in the corresponding "Actions" tab or "Process" window (in the "Notes" field) and in the "Developer Report".

 

After filling in the required options, click to conclude or to abort the operation.

The added process is displayed in the corresponding "Actions" tab or "Process" window.

 

 

Use the right-click in MCL-Designer's input boxes to access some related options as well as the general "Cut", "Copy"; "Paste"; "Search" actions (active/inactive according to the current context).

Ex: If you right-click the "Variable" input box (included in a "Conversion's" properties window), you are provided with general editing/search actions and other more specific options such as "Variable Select" (see "Variable Select");"Variable Insert" (see "Variable Insert"); "Insert Special Character" (see To Insert Special Characters into a Control's Text Input Field) and "Localization Select" (see Localization List).

If you right-click another input box, it may provide other possibilities.

 

 

 

Click Here for an Example of a "Trigger Action" Process