Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The JS7 - Variables are used to execute the job using different parameters on the order or on a Workflow. Variables are declared by specifying a name and datatype. We can use variable at different places

  • In the Environment Variable:  The environment variable available for all the Jobs in a workflow.
  • In the Job Resources: You can assign variable in the job resources with this the variable are assigned to the whole workflow or on the jobs.
  • In Order Variable: You can assign values to the workflow while adding an Order. The default and require value is assigned to the order.

The folder 03_VariablePassing contains the workflow based on the variable passing. You can add the order from the action menu of the workflow and from the history you can review the detailed information about the workflow. The variables are declared with the default values, the variable flight_destination value change during the order run with the help of the environment variable.


  1. Click on the folder 03_VariablePassing from the and expand the jdVariablesDeclared workflow.



  2. To add the order in the workflow. Click on the action menu of the workflow and click on Add order button from the drop-down menu.




  3. On clicking the Add Order. A popup window will appear. 
  4. You can add the Order ID or leave the Order Id value blank it will take the default Order Id to process the Order.
  5. With the help of Modify Variable button, you can edit the value of the variable assigned to the workflow.



  6. Click on the Modify Variable and select the variable name you want to modify from the drop-down menu. e.g; I have selected the variable flight_destination and the default value is Berlin. Here the variables are already declared, click on Submit button to add the Order in a workflow.



  7. To check the status of the Order click on the Workflow name with this new Order history panel will appear. 



  8. From the Order history panel, you can see the Order is successful and finished. Click on the Order ID to open the detail logs of execution.



  9. A log window will open and the order log will be displayed. The order log contains log output from all jobs executed by the order. 
  10. You can download the log file by clicking the Download button from the upper right corner of the log window. Also, you can expand and collapse the individual job output using the arrow button from the left corner of the log window.