List of Expressions for Conditions in Job Streams
The job will get executed only if the expressions of the In-Condition or Out-Condition will be True.
There are in total of five types of Expressions for conditions in Job Streams which are listed below:
S. No. | Expression Name | Description | Example |
---|---|---|---|
1. | rc | It is used as an expression in Out-Condition to check the returncode of the job. | rc:-2 [less that or equals to 2] |
2. | fileexist | It checks whether the file exists or not on the specified path. It can be configured on both (In-Condition and Out-Condition) in two ways: | fileexist:config/one.txt |
| C:/data/inbound/one.txt | ||
| config/one.txt | ||
3. | event | Events can be checked on both In-Condition and Out-Condition. | event:name_of_event |
The event is specified by event:name_of_event. | event:name_of_event [Syntax] event:job1 or job1 [when the event "job1" exists within the same job stream] test.job1 [when the event "job1" exists in the job stream "test"] | ||
| event:name_of_event[*], event:jobStream.name_of_event[*] | ||
| event:name_of_event[today], event:jobStream.name_of_event[today] | ||
| event:name_of_event[yesterday], event:jobStream.name_of_event[yesterday] | ||
| event:name_of_event[yesterday - 2], event:jobStream.name_of_event[yesterday - 2] | ||
| event:name_of_event[prev], event:jobStream.name_of_event[prev] | ||
| event:name_of_event[prevSuccessful], event:jobStream.name_of_event[prevSuccessful] | ||
| event:name_of_event[prevError], | ||
| event:name_of_event[8.26], | ||
4. | job | The job is specified by job:name_of_job User can browse any Job from the tree | |
| job:rc, job:path_to_job/name_of_job.rc | ||
| job:lastCompletedRunEndedSuccessful, job:path_to_job/name_of_job.lastCompletedRunEndedSuccessful | ||
| job:lastCompletedRunEndedWithError, job:path_to_job/name_of_job.lastCompletedRunEndedWithError | ||
| job:lastCompletedRunEndedTodaySuccessful, job:path_to_job/name_of_job.lastCompletedRunEndedTodaySuccessful | ||
| job:lastCompletedRunEndedTodayWithError, job:path_to_job/name_of_job.lastCompletedRunEndedTodayWithError | ||
| job:lastCompletedIsEndedBefore[days:HH:MM:SS], job:path_to_job/name_of_job.lastCompletedIsEndedBefore[0:HH:MM:SS] | ||
| job:lastCompletedSuccessulIsEndedBefore[days:HH:MM:SS], job:path_to_job/name_of_job.lastCompletedSuccessulIsEndedBefore[0:HH:MM:SS] | ||
| job:lastCompletedWithErrorIsEndedBefore[days:HH:MM:SS], | ||
| job:lastCompletedIsStartedBefore[days:HH:MM:SS], job:path_to_job/name_of_job.lastCompletedIsStartedBefore[0:HH:MM:SS] | ||
| job:lastCompletedSuccessfulIsStartedBefore[days:HH:MM:SS], job:path_to_job/name_of_job.lastCompletedSuccessfulIsStartedBefore[0:HH:MM:SS] | ||
| job:lastCompletedWithErrorIsStartedBefore[days:HH:MM:SS], job:path_to_job/name_of_job.lastCompletedWithErrorIsStartedBefore[0:HH:MM:SS] | ||
| job:isStartedToday, job:path_to_job/name_of_job.isStartedToday | ||
| job:isStartedTodayCompletedSuccessful, job:path_to_job/name_of_job.isStartedTodayCompletedSuccessful | ||
| job:isStartedTodayCompletedWithError, job:path_to_job/name_of_job.isStartedTodayCompletedWithError | ||
| job:isStartedTodayCompleted, job:path_to_job/name_of_job.isStartedTodayCompleted | ||
| job:isCompletedToday, job:path_to_job/name_of_job.isCompletedToday | ||
| job:path_to_job/isCompletedTodaySuccessfully, job:path_to_job/name_of_job.isCompletedTodaySuccessfully | ||
| job:isCompletedTodayWithError, job:path_to_job/name_of_job.isCompletedTodayWithError | ||
| job:isCompletedAfter[days:HH:MM:SS], job:path_to_job/name_of_job.isCompletedAfter[0:HH:MM:SS] | ||
| job:isCompletedWithErrorAfter[days:HH:MM:SS], job:path_to_job/name_of_job.isCompletedWithErrorAfter[0:HH:MM:SS] | ||
| job:isCompletedAfter[days:HH:MM:SS], | ||
| job:isStartedAfter[days:HH:MM:SS], job:path_to_job/name_of_job.isStartedAfter[0:HH:MM:SS] | ||
| job:isStartedWithErrorAfter[days:HH:MM:SS], job:path_to_job/name_of_job.isStartedWithErrorAfter | ||
| job:isStartedSuccessfulAfter[days:HH:MM:SS], job:path_to_job/name_of_job.isStartedSuccessfulAfter[0:HH:MM:SS] | ||
5. | jobChain | The job chain is specified by jobChain:name_of_job_chain User can browse any JobChain from the tree | jobChain:name_of_jobChain |
| jobChain:rc, jobChain:name_of_jobChain.rc | ||
| jobChain:lastCompletedRunEndedSuccessful, | ||
| jobChain:lastCompletedRunEndedWithError, jobChain:path_to_jobChain/name_of_jobChain.lastCompletedRunEndedWithError | ||
| jobChain:lastCompletedRunEndedTodaySuccessful, jobChain:path_to_jobChain/name_of_jobChain.lastCompletedRunEndedTodaySuccessful | ||
| jobChain:lastCompletedRunEndedTodayWithError, jobChain:path_to_jobChain/name_of_jobChain.lastCompletedRunEndedTodayWithError | ||
| jobChain:lastCompletedIsEndedBefore[days:HH:MM:SS], jobChain:path_to_jobChain/name_of_jobChain.lastCompletedIsEndedBefore[0:HH:MM:SS] | ||
| jobChain:lastCompletedSuccessulIsEndedBefore[days:HH:MM:SS]], jobChain:path_to_jobChain/name_of_jobChain.lastCompletedSuccessulIsEndedBefore[0:HH:MM:SS] | ||
| jobChain:lastCompletedIsStartedBefore[days:HH:MM:SS], jobChain:path_to_jobChain/name_of_jobChain.lastCompletedIsStartedBefore[0:HH:MM:SS] | ||
| jobChain:lastCompletedIsStartedBefore[days:HH:MM:SS], jobChain:path_to_jobChain/name_of_jobChain.lastCompletedIsStartedBefore[0:HH:MM:SS] | ||
| jobChain:lastCompletedSuccessfulIsStartedBefore[days:HH:MM:SS], jobChain:path_to_jobChain/name_of_jobChain.lastCompletedSuccessfulIsStartedBefore[0:HH:MM:SS] | ||
| jobChain:lastCompletedWithErrorIsStartedBefore[days:HH:MM:SS], jobChain:path_to_jobChain/name_of_jobChain.lastCompletedWithErrorIsStartedBefore[0:HH:MM:SS] | ||
| jobChain:isStartedToday, jobChain:path_to_jobChain/name_of_jobChain.isStartedToday | ||
| jobChain:isCompletedTodaySuccessfully, jobChain:path_to_jobChain/name_of_jobChain.isCompletedTodaySuccessfully | ||
| jobChain:isStartedTodayCompletedWithError, jobChain:path_to_jobChain/name_of_jobChain.isStartedTodayCompletedWithError | ||
| jobChain:isStartedTodayCompleted, jobChain:path_to_jobChain/name_of_jobChain.isStartedTodayCompleted | ||
| jobChain:isCompletedToday, jobChain:path_to_jobChain/name_of_jobChain.isCompletedToday | ||
| jobChain:isCompletedTodaySuccessfully, jobChain:path_to_jobChain/name_of_jobChain.isCompletedTodaySuccessfully | ||
| jobChain:isCompletedTodayWithError, jobChain:path_to_jobChain/name_of_jobChain.isCompletedTodayWithError | ||
| jobChain:isCompletedAfter[days:HH:MM:SS], jobChain:path_to_jobChain/name_of_jobChain.isCompletedAfter[0:HH:MM:SS] | ||
| jobChain:isCompletedWithErrorAfter[days:HH:MM:SS], jobChain:path_to_jobChain/name_of_jobChain.isCompletedWithErrorAfter[0:HH:MM:SS] | ||
| jobChain:isCompletedSuccessfulAfter[days:HH:MM:SS], jobChain:path_to_jobChain/name_of_jobChain.isCompletedSuccessfulAfter[0:HH:MM:SS] | ||
| jobChain:isStartedAfter[days:HH:MM:SS], jobChain:path_to_jobChain/name_of_jobChain.isStartedAfter[0:HH:MM:SS] | ||
| jobChain:isStartedWithErrorAfter[days:HH:MM:SS], jobChain:path_to_jobChain/name_of_jobChain.isStartedWithErrorAfter[0:HH:MM:SS] | ||
| jobChain:isStartedSuccessfulAfter[days:HH:MM:SS], |
Description of syntax for job/job chain
Syntax for job:
- job:path_to_job/name_of_job.<expression>:
- path_to_job: Select the job form the tree.
- name_of_job: write name of job user wnat to use.
- gdjgejd