You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

The JS7 - If Instruction is used for conditional processing of orders. It can be used to evaluate the variables of the order using the If-expression. You can only use If-Instruction in a workflow if there is no statement that needs to be verified.

Workflow

In the workflow jdConditionalVariables two If Instructions are used:

  • The If Instruction uses the expression variable( 'run_job1' ) == true. With this predicate, if the job's order variable run_job1 return the value true then the If Instruction evaluates to true and continues the execution in the workflow.

To execute the workflow from the folder 07_ConditionalExecution follow the below steps:

  1. Click the folder 07_ConditionalExecution and expand the jdConditionalVariables workflow.




  2. Click the action menu of the workflow and use the Add Order menu item from the drop-down menu to add an order to the workflow.



  3. When clicking Add Order a popup window will appear.
  4. You can add an Order ID or leave the Order ID value empty, it will then use a default Order ID. Click the Submit button.
  5. With the Modify Variable link, you can edit the value of variables assigned to the workflow.



  6. Click the Modify Variable link and from the drop-down menu select the name of the variable that you want to modify. In the below screenshot the variable run_job1 is selected and the default value is false. The variable is declared with the workflow definition, you can modify its value by selecting it from the drop-down menu. Click the Submit button to add the order to the workflow.




  7. To check the status of the order click the name of the workflow to make the Order History panel appear.




  8. From the Order History panel, you can verify if the order is successful and finished. Click the Order ID to see the log output created by jobs executed for this order.




  9. A log window will open and the order log will be displayed. The order log contains the output of 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 view window. Also, you can expand and collapse the individual job output using the chevron icons from the left upper corner of the log view window.



  • No labels