List of Expressions for Conditions in Job Streams
There are in total 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]
rc: 1-7 [between 1 to 7]
rc: 5- [greater than or equals to 5]
rc: -5,6,7,10-20 [multiple returncodes separeated by comma]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
- path from the root directory
C:/data/inbound/one.txt
- path from the default directory {$SCHEDULER_DATA}
config/one.txt
3. event Events can be checked on both In-Condition and Out-Condition.
Events can be created and deleted with an Out-Condition.
Job has been started, out-condition evaluates an expression to true if the event with the specified name exists.event:name_of_event
The event is specified by event:name_of_event.
event: is optional
name_of_event can also have the name of a job stream that created the event
name_of_event can have the date when the event was createdevent: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"]- [ * ] : any date
event:name_of_event[*],
event:jobStream.name_of_event[*]
- [today] : this is the default
event:name_of_event[today],
event:jobStream.name_of_event[today]
- [yesterday] : event was created yesterday
event:name_of_event[yesterday],
event:jobStream.name_of_event[yesterday]
- [yesterday - 2] : event was created the day before yesterday
event:name_of_event[yesterday - 2],
event:jobStream.name_of_event[yesterday - 2]
- [prev] : Will be substituted with the date of the last run
event:name_of_event[prevError],
event:jobStream.name_of_event[prevError]
- [prevSuccessful] : Will be substituted with the date of the last successful run
event:name_of_event[prevSuccessful],
event:jobStream.name_of_event[prevSuccessful]
- [prevError] : Will be substituted with the date of the last run with error
event:name_of_event[prevError],
event:jobStream.name_of_event[prevError]- [8,26] : specific dates
event:name_of_event[8.26],
event:jobStream.name_of_event[8.26]4. job The job is specified by job:name_of_job job:name_of_job
- rc
job:rc,
job:name_of_job.rc
- lastCompletedRunEndedSuccessful
job:lastCompletedRunEndedSuccessful,
job:name_of_job.lastCompletedRunEndedSuccessful
- lastCompletedRunEndedWithError
job:lastCompletedRunEndedWithError,
job:name_of_job.lastCompletedRunEndedWithError
- lastCompletedRunEndedTodaySuccessful
job:lastCompletedRunEndedTodaySuccessful,
job:name_of_job.lastCompletedRunEndedTodaySuccessful
- lastCompletedRunEndedTodayWithError
job:lastCompletedRunEndedTodayWithError,
job:name_of_job.lastCompletedRunEndedTodayWithError
- lastCompletedIsEndedBefore
job:lastCompletedIsEndedBefore,
job:name_of_job.lastCompletedIsEndedBefore
- lastCompletedSuccessfulIsEndedBefore
job:lastCompletedSuccessulIsEndedBefore,
job:name_of_job.lastCompletedSuccessulIsEndedBefore
- lastCompletedWithErrorIsEndedBefore
job:lastCompletedWithErrorIsEndedBefore,
job:name_of_job.lastCompletedWithErrorIsEndedBefore- lastCompletedIsStartedBefore
job:lastCompletedIsStartedBefore,
job:name_of_job.lastCompletedIsStartedBefore
- lastCompletedSuccessfulIsStartedBefore
job:lastCompletedSuccessfulIsStartedBefore,
job:name_of_job.lastCompletedSuccessfulIsStartedBefore
- lastCompletedWithErrorIsStartedBefore
job:lastCompletedWithErrorIsStartedBefore,
job:name_of_job.lastCompletedWithErrorIsStartedBefore
- isStartedToday
job:isStartedToday,
job:name_of_job.isStartedToday
- isStartedTodayCompletedSuccessful
job:isStartedTodayCompletedSuccessful,
job:name_of_job.isStartedTodayCompletedSuccessful
- isStartedTodayCompletedWithError
job:isStartedTodayCompletedWithError,
job:name_of_job.isStartedTodayCompletedWithError
- isStartedTodayCompleted
job:isStartedTodayCompleted,
job:name_of_job.isStartedTodayCompleted
- isCompletedToday
job:isCompletedToday,
job:name_of_job.isCompletedToday
- isCompletedTodaySuccessfully
job:isCompletedTodaySuccessfully,
job:name_of_job.isCompletedTodaySuccessfully
- isCompletedTodayWithError
job:isCompletedTodayWithError,
job:name_of_job.isCompletedTodayWithError
- isCompletedAfter
job:isCompletedAfter,
job:name_of_job.isCompletedAfter
- isCompletedWithErrorAfter
job:isCompletedWithErrorAfter,
job:name_of_job.isCompletedWithErrorAfter
- isCompletedSuccessfulAfter
job:isCompletedAfter,
job:name_of_job.isCompletedAfter- isStartedAfter
job:isStartedAfter,
job:name_of_job.isStartedAfter
- isStartedWithErrorAfter
job:isStartedWithErrorAfter,
job:name_of_job.isStartedWithErrorAfter
- isStartedSuccessfulAfter
job:isStartedSuccessfulAfter,
job:name_of_job.isStartedSuccessfulAfter
5. jobChain The jobChain is specified by jobChain:name_of_job_chain - rc
- lastCompletedRunEndedSuccessful
- lastCompletedRunEndedWithError
- lastCompletedRunEndedTodaySuccessful
- lastCompletedRunEndedTodayWithError
- lastCompletedIsEndedBefore
- lastCompletedSuccessfulIsEndedBefore
- lastCompletedWithErrorIsEndedBefore
- lastCompletedIsStartedBefore
- lastCompletedSuccessfulIsStartedBefore
- lastCompletedWithErrorIsStartedBefore
- isStartedToday
- isStartedTodayCompletedSuccessful
- isStartedTodayCompletedWithError
- isStartedTodayCompleted
- isCompletedToday
- isCompletedTodaySuccessfully
- isCompletedTodayWithError
- isCompletedAfter
- isCompletedWithErrorAfter
- isCompletedSuccessfulAfter
- isStartedAfter
- isStartedWithErrorAfter
- isStartedSuccessfulAfter