User Guide : Designing and Executing Processes : Building Processes : Adding DJ Message Variable
 
Share this page                  
Adding DJ Message Variable
You can add a DJ Message variable in two ways:
Add the DJ Message from the Step Properties tab.
Add the DJ Message on the Configuration tab > Global Variable section and associate it to the message component action on the Step Properties tab.
For information about DJMessages, see DJMessage Object Type.
Adding DJ Message Variable on Step Properties tab
To add a DJMessage variable on the Step Properties tab:
1. After you add the required step on the canvas, double-click the step to open Step Properties.
2. Select the required message component.
3. From the Action drop-down list, select the required action (GetMessage or PutMessage).
4. In the Parameters table, for the Message parameter, click within the Value column and from the drop-down list, select Add New DJMessage Variable.
The Add New DJMessage Variable window is displayed.
5. Specify the following:
DJMessage Name
Scope Level
Private
Public
Select or clear the Add the required initialize and destroy scripts in the Start and Stop steps. This option is selected by default.
6. Click More Options and specify one of the following:
File - Click Browse to specify the file. The contents of this file is used to populate the body of the DJMessage you are creating.
URL - Type the URL. The contents of this page is used to populate the body of the DJMessage you are creating.
7. Click Create DJMessage.
The new DJMessage variable appears in the Value column for the Message parameter. The same DJMessage variable is listed on the Configuration tab > Global Variables section.
An initialization script will be automatically added in the Start step and a destroy script will be automatically added in the Stop step for this new DJMessage if you have selected the Add the required initialize and destroy scripts in the Start and Stop steps option.
The message body from an URL or a File will be automatically populated for this new DJMessage in the Start step if you have selected More Option.
Adding DJ Message Variable on the Configuration tab
To add a DJMessage variable instance on the Configuration tab:
1. Go to the Configuration tab > Global Variables.
2. Click the /download/attachments/24976029/Map_Source_Add_Icon.png?version=1&modificationDate=1488168037493&api=v2 to add a Global Variable.
The Add Global Variable window is displayed.
3. Specify the Variable Type as DJMessage.
For information about adding, editing, and deleting the Global Variables, see Managing Global Variables.
4. Click Save.
The new DJMessage variable instance is added to Configuration tab > Global Variables section. You can select the same DJMessage variable instance from the Step Properties tab > Value column drop-down list.