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

Compare with Current View Page History

« Previous Version 18 Next »

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 NameDescriptionExample




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 [interval 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
  • the path from the root directory
C:/data/inbound/one.txt
  • the 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 created

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"]
  • [ * ] : 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]: The event was created yesterday.
event:name_of_event[yesterday], 
event:jobStream.name_of_event[yesterday]
  • [yesterday - 2]: The event was created two days 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[prev], 
event:jobStream.name_of_event[prev]
  • [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 an 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

User can browse any Job from the tree


  • [rc]
job:rc,
job:path_to_job/name_of_job.rc
  • [lastCompletedRunEndedSuccessful] → True, when the last ended was successful.
job:lastCompletedRunEndedSuccessful, 
job:path_to_job/name_of_job.lastCompletedRunEndedSuccessful
  • [lastCompletedRunEndedWithError] → True, when the last ended has an error.
job:lastCompletedRunEndedWithError, 
job:path_to_job/name_of_job.lastCompletedRunEndedWithError
  • [lastCompletedRunEndedTodaySuccessful] → True, when the last ended was successful and ended today.
job:lastCompletedRunEndedTodaySuccessful, 
job:path_to_job/name_of_job.lastCompletedRunEndedTodaySuccessful
  • [lastCompletedRunEndedTodayWithError] → True, when the last ended has an error and ended today.
job:lastCompletedRunEndedTodayWithError, 
job:path_to_job/name_of_job.lastCompletedRunEndedTodayWithError
  • [lastCompletedIsEndedBefore] → True, if the last completion of the job was before the given time. Doesn't matter whether ended successful or with an error.
job:lastCompletedIsEndedBefore[days:HH:MM:SS], 
job:path_to_job/name_of_job.lastCompletedIsEndedBefore[0:HH:MM:SS]
  • [lastCompletedSuccessfulIsEndedBefore] → True, if the last successful completion of the job was before the given time.
job:lastCompletedSuccessulIsEndedBefore[days:HH:MM:SS], 
job:path_to_job/name_of_job.lastCompletedSuccessulIsEndedBefore[0:HH:MM:SS]
  • [lastCompletedWithErrorIsEndedBefore] → True, if the last completion of the job with an error was before the given time.
job:lastCompletedWithErrorIsEndedBefore[days:HH:MM:SS], 
job:path_to_job/name_of_job.lastCompletedWithErrorIsEndedBefore[0:HH:MM:SS]
  • [lastCompletedIsStartedBefore] → True, if the last completion of the job was started before the given time.
job:lastCompletedIsStartedBefore[days:HH:MM:SS], 
job:path_to_job/name_of_job.lastCompletedIsStartedBefore[0:HH:MM:SS]
  • [lastCompletedSuccessfulIsStartedBefore] → True, if the last successful completion of the job was started before the given time.
job:lastCompletedSuccessfulIsStartedBefore[days:HH:MM:SS], 
job:path_to_job/name_of_job.lastCompletedSuccessfulIsStartedBefore[0:HH:MM:SS]
  • [lastCompletedWithErrorIsStartedBefore] → True, if the last completion of the job with an error was started before the given time.
job:lastCompletedWithErrorIsStartedBefore[days:HH:MM:SS], 
job:path_to_job/name_of_job.lastCompletedWithErrorIsStartedBefore[0:HH:MM:SS]
  • [isStartedToday]   → True, if the job has been started today. Doesn't matter whether ended successful or with an error.
job:isStartedToday, 
job:path_to_job/name_of_job.isStartedToday
  • [isStartedTodayCompletedSuccessful] → True, if the job has been started today and has ended successfully today.
job:isStartedTodayCompletedSuccessful, 
job:path_to_job/name_of_job.isStartedTodayCompletedSuccessful
  • [isStartedTodayCompletedWithError] → True, if the job has been started today and has ended in error today.
job:isStartedTodayCompletedWithError, 
job:path_to_job/name_of_job.isStartedTodayCompletedWithError
  • [isStartedTodayCompleted] → True, if the job has been started today and has completed. It doesn't matter whether ended successfully or with an error.
job:isStartedTodayCompleted, 
job:path_to_job/name_of_job.isStartedTodayCompleted
  • [isCompletedToday] → True, if the job has ended today. Doesn't matter whether ended successful or with an error.
job:isCompletedToday,
job:path_to_job/name_of_job.isCompletedToday
  • [isCompletedTodaySuccessfully] → True, if the job has ended successfully today.
job:path_to_job/isCompletedTodaySuccessfully, 
job:path_to_job/name_of_job.isCompletedTodaySuccessfully
  • [isCompletedTodayWithError] → True, if the job has ended in error today.
job:isCompletedTodayWithError, 
job:path_to_job/name_of_job.isCompletedTodayWithError
  • [isCompletedAfter] → True, if the job has ended after the given time. Doesn't matter whether ended successful or with an error.
job:isCompletedAfter[days:HH:MM:SS],
job:path_to_job/name_of_job.isCompletedAfter[0:HH:MM:SS]
  • [isCompletedWithErrorAfter] → True, if the job has ended with an error after the given time.
job:isCompletedWithErrorAfter[days:HH:MM:SS], 
job:path_to_job/name_of_job.isCompletedWithErrorAfter[0:HH:MM:SS]
  • [isCompletedSuccessfulAfter] → True, if the job has ended successfully after the given time.
job:isCompletedAfter[days:HH:MM:SS], 
job:path_to_job/name_of_job.isCompletedAfter[0:HH:MM:SS]
  • [isStartedAfter] → True, if the job has been started after the given time. Doesn't matter whether ended successful or with an error.
job:isStartedAfter[days:HH:MM:SS],
job:path_to_job/name_of_job.isStartedAfter[0:HH:MM:SS]
  • [isStartedWithErrorAfter] → True, if the job has been started after the given time and ended with an error.
job:isStartedWithErrorAfter[days:HH:MM:SS],
job:path_to_job/name_of_job.isStartedWithErrorAfter
  • [isStartedSuccessfulAfter] → True, if the job has been started after the given time and ended successfully.
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
  • [rc]
jobChain:rc, jobChain:name_of_jobChain.rc
  • [lastCompletedRunEndedSuccessful] → True, when the last ended was successful.
jobChain:lastCompletedRunEndedSuccessful, 

jobChain:path_to_jobChain/name_of_jobChain.lastCompletedRunEndedSuccessful
jobChain:path_to_jobChain/name_of_jobChain[order_id].lastCompletedRunEndedSuccessful
  • [lastCompletedRunEndedWithError] → True, when the last ended has an error.
jobChain:lastCompletedRunEndedWithError, 
jobChain:path_to_jobChain/name_of_jobChain.lastCompletedRunEndedWithError
jobChain:path_to_jobChain/name_of_jobChain[order_id].lastCompletedRunEndedWithError
  • [lastCompletedRunEndedTodaySuccessful] → True, when the last ended was successful and ended today.
jobChain:lastCompletedRunEndedTodaySuccessful, 
jobChain:path_to_jobChain/name_of_jobChain.lastCompletedRunEndedTodaySuccessful
jobChain:path_to_jobChain/name_of_jobChain[order_id].lastCompletedRunEndedWithError
  • [lastCompletedRunEndedTodayWithError] → True, when the last ended has an error and ended today.
jobChain:lastCompletedRunEndedTodayWithError, 
jobChain:path_to_jobChain/name_of_jobChain.lastCompletedRunEndedTodayWithError
jobChain:path_to_jobChain/name_of_jobChain[order_id].lastCompletedRunEndedTodayWithError
  • [lastCompletedIsEndedBefore] → True, when the last completion ended before the given time.
jobChain:lastCompletedIsEndedBefore[days:HH:MM:SS], 
jobChain:path_to_jobChain/name_of_jobChain.lastCompletedIsEndedBefore[0:HH:MM:SS]
jobChain:path_to_jobChain/name_of_jobChain[order_id].lastCompletedIsEndedBefore[0:HH:MM:SS]
  • [lastCompletedSuccessfulIsEndedBefore] → True, when the last successful completion ended before the given time.
jobChain:lastCompletedSuccessulIsEndedBefore[days:HH:MM:SS]], 
jobChain:path_to_jobChain/name_of_jobChain.lastCompletedSuccessulIsEndedBefore[0:HH:MM:SS]
jobChain:path_to_jobChain/name_of_jobChain[order_id].lastCompletedSuccessulIsEndedBefore[0:HH:MM:SS]
  • [lastCompletedWithErrorIsEndedBefore] → True, when the last completion in error ended before the given time.
jobChain:lastCompletedIsStartedBefore[days:HH:MM:SS], 
jobChain:path_to_jobChain/name_of_jobChain.lastCompletedIsStartedBefore[0:HH:MM:SS]
jobChain:path_to_jobChain/name_of_jobChain[order_id].lastCompletedIsStartedBefore[0:HH:MM:SS]
  • [lastCompletedIsStartedBefore] → True, when last completed and is started before the given time.
jobChain:lastCompletedIsStartedBefore[days:HH:MM:SS], 
jobChain:path_to_jobChain/name_of_jobChain.lastCompletedIsStartedBefore[0:HH:MM:SS]
jobChain:path_to_jobChain/name_of_jobChain[order_id].lastCompletedIsStartedBefore[0:HH:MM:SS]
  • [lastCompletedSuccessfulIsStartedBefore] → True, when last completed successfully and is started before the given time.
jobChain:lastCompletedSuccessfulIsStartedBefore[days:HH:MM:SS], 
jobChain:path_to_jobChain/name_of_jobChain.lastCompletedSuccessfulIsStartedBefore[0:HH:MM:SS]
jobChain:path_to_jobChain/name_of_jobChain[order_id].lastCompletedSuccessfulIsStartedBefore[0:HH:MM:SS]
  • [lastCompletedWithErrorIsStartedBefore] → True, when last completed with error and is started before the given time.
jobChain:lastCompletedWithErrorIsStartedBefore[days:HH:MM:SS], 
jobChain:path_to_jobChain/name_of_jobChain.lastCompletedWithErrorIsStartedBefore[0:HH:MM:SS]
jobChain:path_to_jobChain/name_of_jobChain[order_id].lastCompletedWithErrorIsStartedBefore[0:HH:MM:SS]
  • [isStartedToday] → True, when started today. Doesn't matter whether ended successful or with an error.

jobChain:isStartedToday, 
jobChain:path_to_jobChain/name_of_jobChain.isStartedToday
jobChain:path_to_jobChain/name_of_jobChain[order_id].isStartedToday
  • [isStartedTodayCompletedSuccessful] → True, when started and completed successful today.
jobChain:isCompletedTodaySuccessfully, 
jobChain:path_to_jobChain/name_of_jobChain.isCompletedTodaySuccessfully
jobChain:path_to_jobChain/name_of_jobChain[order_id].isCompletedTodaySuccessfully
  • [isStartedTodayCompletedWithError] → True, when started and completed with error today.
jobChain:isStartedTodayCompletedWithError, 
jobChain:path_to_jobChain/name_of_jobChain.isStartedTodayCompletedWithError
jjobChain:path_to_jobChain/name_of_jobChain[order_id].isStartedTodayCompletedWithError
  • [isStartedTodayCompleted] → True, when started and completed today.
jobChain:isStartedTodayCompleted, 
jobChain:path_to_jobChain/name_of_jobChain.isStartedTodayCompleted
jobChain:path_to_jobChain/name_of_jobChain[order_id].isStartedTodayCompleted
  • [isCompletedToday] → True, when completed today. Doesn't matter whether ended successful or with an error.
jobChain:isCompletedToday, 
jobChain:path_to_jobChain/name_of_jobChain.isCompletedToday
jobChain:path_to_jobChain/name_of_jobChain[order_id].isCompletedToday
  • [isCompletedTodaySuccessfully] → True, when completed today successful.
jobChain:isCompletedTodaySuccessfully, 
jobChain:path_to_jobChain/name_of_jobChain.isCompletedTodaySuccessfully
jobChain:path_to_jobChain/name_of_jobChain[order_id].isCompletedTodaySuccessfully
  • [isCompletedTodayWithError] → True, when completed today with error.
jobChain:isCompletedTodayWithError, 
jobChain:path_to_jobChain/name_of_jobChain.isCompletedTodayWithError
jobChain:path_to_jobChain/name_of_jobChain[order_id].isCompletedTodayWithError
  • [isCompletedAfter] → True, when ended after the given time. Doesn't matter whether ended successful or with an error.
jobChain:isCompletedAfter[days:HH:MM:SS], 
jobChain:path_to_jobChain/name_of_jobChain.isCompletedAfter[0:HH:MM:SS]
jobChain:path_to_jobChain/name_of_jobChain[order_id].isCompletedAfter[0:HH:MM:SS]
  • [isCompletedWithErrorAfter] → True, when ended with error after the given time.
jobChain:isCompletedWithErrorAfter[days:HH:MM:SS], 
jobChain:path_to_jobChain/name_of_jobChain.isCompletedWithErrorAfter[0:HH:MM:SS]
jobChain:path_to_jobChain/name_of_jobChain[order_id].isCompletedWithErrorAfter[0:HH:MM:SS]
  • [isCompletedSuccessfulAfter] → True, when ended successfully after the given time.
jobChain:isCompletedSuccessfulAfter[days:HH:MM:SS], 
jobChain:path_to_jobChain/name_of_jobChain.isCompletedSuccessfulAfter[0:HH:MM:SS]
jobChain:path_to_jobChain/name_of_jobChain[order_id].isCompletedSuccessfulAfter[0:HH:MM:SS]
  • [isStartedAfter] → True, when started after the given time. Doesn't matter whether ended successful or with an error.
jobChain:isStartedAfter[days:HH:MM:SS], 
jobChain:path_to_jobChain/name_of_jobChain.isStartedAfter[0:HH:MM:SS]
jobChain:path_to_jobChain/name_of_jobChain[order_id].isStartedAfter[0:HH:MM:SS]
  • [isStartedWithErrorAfter] → True, when started after the given time and ended with an error.
jobChain:isStartedWithErrorAfter[days:HH:MM:SS], 
jobChain:path_to_jobChain/name_of_jobChain.isStartedWithErrorAfter[0:HH:MM:SS]
jobChain:path_to_jobChain/name_of_jobChain[order_id].isStartedWithErrorAfter[0:HH:MM:SS]
  • [isStartedSuccessfulAfter] → True, when started after the given time and ended successfully.
jobChain:isStartedSuccessfulAfter[days:HH:MM:SS], 

jobChain:path_to_jobChain/name_of_jobChain.isStartedSuccessfulAfter[0:HH:MM:SS]
jobChain:path_to_jobChain/name_of_jobChain[order_id].isStartedSuccessfulAfter[0:HH:MM:SS]


Description of syntax for job/job chain 

Syntax for job: 

  1. job:path_to_job/name_of_job.<expression>
    1. path_to_job: Select the job form the tree.
    2. name_of_job: select the job from the folder.

  2. job:path_to_job/name_of_job.<expression>[days:HH:MM:SS]
    1. path_to_job: Select the job form the tree.
    2. name_of_job: select the job from the folder.
    3. [days:HH:MM:SS]: To specify, for example, for yesterday at 3 AM, use "-1:03:00:00".

Syntax for job chain: 

  1. jobChain:path_to_jobChain/name_of_jobChain.<expression>
    1. path_to_jobChain → Select the job form the tree.
    2. name_of_jobChain → select the job from the folder.

  2. jobChain:path_to_jobChain/name_of_jobChain.<expression>[days:HH:MM:SS]
    1. path_to_jobChain → Select the job form the tree.
    2. name_of_jobChain → Select the job from the folder.
    3. [days:HH:MM:SS] → To specify, for example, for yesterday at 3 AM, use "-1:03:00:00".

  3. jobChain:path_to_jobChain/name_of_jobChain[order_id].isStartedSuccessfulAfter[0:HH:MM:SS]
    1. path_to_jobChain →  Select the job form the tree.
    2. name_of_jobChain → Select the job from the folder.
    3. [order_id] → Specify the order_id for the job chain.
    4. [days:HH:MM:SS] → To specify, for example, for today at 5 AM, use "0:05:00:00".



  • No labels