|
The VisualCron condition lets you check internal values within VisualCron - before running a task or a job.
When you have selected Condition type VisualCron, the VisualCron tab is added which includes all settings related to this condition.

First you have to select a task or a job that you want to check. Remember that conditions needs the setting Run task in order if you want to check a task. When using Auto VisualCron will check the previous task values. This is only applicable for tasks that have an internal relation within a job contrary to jobs which are independent on each other. If you want to check a task from another job, you select Specific task and the corresponding job and task.
Currently there are two match types within VisualCron but they will be extended upon request:
| • | Task Exit code - A successful run of a task returns exit code 0. So, if you only want to run the next task if the previous task returned "Success" you select "Task exit code" - "Is" - "0". In the condition set where this condition belong, you select "Continue" in "MatchAll" and "Exit" in "MatchNone". Thus, if the exit code is "0" you will have one match and the action for "MatchAll" will be run. The action was continue which runs the task it was supposed to run. If the exit code is not "0" (failure) it will not match your condition and therefore the action of "MatchNone" will be run. The action you specified was "Exit", which will terminate the current run of your job. |
| • | Task Output - This match type will check an output of a task. The ordinary standard output for a task is used and stored at a task level. You can watch the previous output by double-click at the task output row in the main window of VisualCron. In this condition you can compare the output in three ways. Exact match "Is" or "Is not" or if it "Contains" a certain string or character. Enter the desired match value in the text box to the right. |
|