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

Compare with Current View Page History

« Previous Version 8 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 [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








    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.
    event:name_of_event
    • [ * ]

    • [today]

    • [yesterday]

    • [yesterday - 2]

    • [prev]

    • [prevSuccessful]

    • [prevError]

    • [8,26]



    4.
























    job
























    The job is specified by job:name_of_job
    • rc

    • lastCompletedRunEndedSuccessful

    • lastCompletedRunEndedWithError

    • lastCompletedRunEndedTodaySuccessful

    • lastCompletedRunEndedTodayWithError

    • lastCompletedIsEndedBefore

    • lastCompletedSuccessfulIsEndedBefore

    • lastCompletedWithErrorIsEndedBefore

    • lastCompletedIsStartedBefore

    • lastCompletedSuccessfulIsStartedBefore

    • lastCompletedWithErrorIsStartedBefore

    • isStartedToday

    • isStartedTodayCompletedSuccessful

    • isStartedTodayCompletedWithError

    • isStartedTodayCompleted

    • isCompletedToday

    • isCompletedTodaySuccessfully

    • isCompletedTodayWithError

    • isCompletedAfter

    • isCompletedWithErrorAfter

    • isCompletedSuccessfulAfter

    • isStartedAfter

    • isStartedWithErrorAfter

    • 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



  • No labels