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

Compare with Current View Page History

« Previous Version 10 Next »

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 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
    • 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 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] : 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

    User can browse any Job from tree

    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

    User can browse any JobChain from tree

    jobChain:name_of_jobChain
    • rc
    jobChain:rc, jobChain:name_of_jobChain.rc
    • lastCompletedRunEndedSuccessful
    jobChain:lastCompletedRunEndedSuccessful, 
    jobChain:name_of_jobChain.lastCompletedRunEndedSuccessful
    • lastCompletedRunEndedWithError
    jobChain:lastCompletedRunEndedWithError, 
    jobChain:name_of_jobChain.lastCompletedRunEndedWithError
    • lastCompletedRunEndedTodaySuccessful
    jobChain:lastCompletedRunEndedTodaySuccessful, jobChain:name_of_jobChain.lastCompletedRunEndedTodaySuccessful
    • lastCompletedRunEndedTodayWithError
    jobChain:lastCompletedRunEndedTodayWithError, jobChain:name_of_jobChain.lastCompletedRunEndedTodayWithError
    • lastCompletedIsEndedBefore
    jobChain:lastCompletedIsEndedBefore, 
    jobChain:name_of_jobChain.lastCompletedIsEndedBefore
    • lastCompletedSuccessfulIsEndedBefore
    jobChain:lastCompletedSuccessulIsEndedBefore, jobChain:name_of_jobChain.lastCompletedSuccessulIsEndedBefore
    • lastCompletedWithErrorIsEndedBefore
    jobChain:lastCompletedIsStartedBefore, 
    jobChain:name_of_jobChain.lastCompletedIsStartedBefore
    • lastCompletedIsStartedBefore
    jobChain:lastCompletedIsStartedBefore, 
    jobChain:name_of_jobChain.lastCompletedIsStartedBefore
    • lastCompletedSuccessfulIsStartedBefore
    jobChain:lastCompletedSuccessfulIsStartedBefore, jobChain:name_of_jobChain.lastCompletedSuccessfulIsStartedBefore
    • lastCompletedWithErrorIsStartedBefore
    jobChain:lastCompletedWithErrorIsStartedBefore, jobChain:name_of_jobChain.lastCompletedWithErrorIsStartedBefore
    • isStartedToday
    jobChain:isStartedToday, 
    jobChain:name_of_jobChain.isStartedToday
    • isStartedTodayCompletedSuccessful
    jobChain:isCompletedTodaySuccessfully, 
    jobChain:name_of_jobChain.isCompletedTodaySuccessfully
    • isStartedTodayCompletedWithError
    jobChain:isStartedTodayCompletedWithError, 
    jobChain:name_of_jobChain.isStartedTodayCompletedWithError
    • isStartedTodayCompleted
    jobChain:isStartedTodayCompleted, 
    jobChain:name_of_jobChain.isStartedTodayCompleted
    • isCompletedToday
    jobChain:isCompletedToday, 
    jobChain:name_of_jobChain.isCompletedToday
    • isCompletedTodaySuccessfully
    jobChain:isCompletedTodaySuccessfully, 
    jobChain:name_of_jobChain.isCompletedTodaySuccessfully
    • isCompletedTodayWithError
    jobChain:isCompletedTodayWithError, 
    jobChain:name_of_jobChain.isCompletedTodayWithError
    • isCompletedAfter
    jobChain:isCompletedAfter, 
    jobChain:name_of_jobChain.isCompletedAfter
    • isCompletedWithErrorAfter
    jobChain:isCompletedWithErrorAfter, 
    jobChain:name_of_jobChain.isCompletedWithErrorAfter
    • isCompletedSuccessfulAfter
    jobChain:isCompletedSuccessfulAfter, 
    jobChain:name_of_jobChain.isCompletedSuccessfulAfter
    • isStartedAfter
    jobChain:isStartedAfter, 
    jobChain:name_of_jobChain.isStartedAfter
    • isStartedWithErrorAfter
    jobChain:isStartedWithErrorAfter, 
    jobChain:name_of_jobChain.isStartedWithErrorAfter
    • isStartedSuccessfulAfter
    jobChain:isStartedSuccessfulAfter, 
    jobChain:name_of_jobChain.isStartedSuccessfulAfter



  • No labels