Example scenarios for Decision job
The following are a few sample scenarios on how to configure the Decision job parameters:
Example 1
This example compares the value of the API element, RatingValidFlag in LoadType to decide if the next job must be executed.
- Decision Parameters: LoadRated: RatingValidFlag
- Decision Rules: LoadRated = ‘false’ : Job1; LoadRated = ‘true’ : Job2
Example 2
This example compares the value of the field, ChargeAmount in the input file to decide if the next job must be executed. The input file can be the xml generated from the Event Notification or Alert that triggers the Decision Job.
- Decision Parameters: ChargeAmount: \\CISDocument.AmountDetail.ChargeAmount
- Decision Rules: ChargeAmount >= 200 : Job1; ChargeAmount < 200 : Job2
Input File name is present.
If the value of ChargeAmount in the input file is greater than or equal to 200, Job1 will be executed. If it is less than 200, Job2 will be executed.
Example 3
This example compares the number of entities selected for processing to decide if the next job must be executed.
- Decision Parameters: LoadCount: EntityCount
- Decision Rules: LoadCount >=200 : Job1; default : Job2
If the number of entities selected is greater than or equal to 200, Job1 will be executed. Else, Job2 will be executed.
Example 4
This example compares the Event Notification Type that has triggered the Decision Job to decide if the next job must be executed.
- Decision Parameters: EventType: EventType
- Decision Rules: EventType =’LoadSuspended’ : Job1; default : none
If the event notification that initiates the Decision Job is LoadSuspended, Job1 will be executed. Else, no other job will be triggered.
Example 5
This example compares the Alert Type that has triggered the Decision Job to decide if the next job must be executed.
- Decision Parameters: JobAlertType : AlertType
- Decision Rules: JobAlertType =’PickUpOverdue’ : Job1
If the alert type that initiates the Decision Job is PickUpOverdue alert, Job1 will be executed.
Example 6
This example compares one of the attributes (ChargedAmount) from the output of the previous Job.
- Decision Parameters: Cost : \\INPUT.Result.Output.CISDocument.Load.ChargedAmount
- Decision Rules: Cost >=200 : Job1; default : Job2
If the value of ChargeAmount in the output of the previous job is greater than or equal to 200, Job1 will be executed. If it is less than 200, Job2 will be executed.