...
- When the job is dropped the Conditions Editor pop-up window opens.
How to add an In Condition to a Job?
- Open the Conditions Editor, if there are no In Conditions added then in the In Conditions tab there will be displayed "No In Conditions found. Click Here To Add". Click on "Click Here To Add" to add an In Condition.
...
- Another Conditions Editor window will open. Add the Expression to be evaluated. You can use the Expression Editor to check what Expressions are supported by Job Streams. Then select a Command which is to be executed if the Expression evaluates to true. The In Condition supports two commands:
- startJob: This command starts the job according to the value of Command Param if the Expression evaluates to true. The default value of Command Param is now, which means the job will start as soon as the result of the Expression becomes true.
- writeLog: This command writes the message provided with the Command Param to the task log of the job to which the In Condition is added.
How to add an Out Condition to a job?
- Open the Conditions Editor and switch to the Out Conditions tab. There will be displayed "No Out Conditions found. Click Here To Add". Click on "Click Here To Add" to add an Out Condition.
- Another Conditions Editor window will open. Add the Expression to be evaluated. You can use the Expression Editor to check what Expressions are supported by Job Streams. By default, the Expression is set to "returncode:0" which checks a successful run of the job. Then select an Event List which is to be executed if the Expression evaluates to true. The Out Condition supports two event lists:
- Create Event: The Create Event event list is used to create an event if the Expression for the Out Condition evaluates to true. The default name of the Event to be created is the job name.
- Delete Event: The Delete Event event list is used to delete an existing Event if the Expression for the Out Condition evaluates to true.
How to edit an existing In Condition or Out Condition with a Job Stream?
- To edit an existing In Condition or Out Condition from the graph using the Update Expression option from the action menu of the Condition of the job. For example: you want to update the Expression for an Out Condition of a job form returncode:0 to returncode:10 to indicate that
- Then switch to the Job Streams graph, use the action menu of the Out Condition indicated by parallelogram after the job. Click on Update Expression.
- Note: An In Condition for a job is indicated by a left inclined parallelogram before the job. An Out Condition for a job is indicted indicated by a right inclined parallelogram after the job.
- The Conditions Editor will open. Update the Expression and hit the "submit" button to apply your changes.
...