Thursday, December 1, 2022

Pause Rules (Start After condition in old releases)

3 Types of the Pause Rules
1. Event Based Point  Pause
2. Time Based Pause
3. IPC Pause



1. Event Based Pause: Pausing Orchestration Processes Until an Event Occur An orchestration process can be defined that uses a pause task to temporarily stop it from running so that it can wait for an event to occur. 

“Pause for SSD” is event-based Rule 
Example: Pause of SSD - if Sales order fulfillment line which is shippbale and SSD is null then it is on Pause. 

The following condition validated – Fline.Shippable flag = Y Fline. 
Scheduled arrival date = NULL Fline.Scheduled ship date = NULL

 This scheduled process searches for the condition that releases the pause task.

 EventName:"Event” The following rules can be created – 
If the conditions are true, then pause the task. If the conditions of the first rule are not true, then skip the pause task. 


2.Time Based Pause: Pausing Orchestration Processes Until Time Elapses 

You can define an orchestration process that uses a pause task to temporarily stop the orchestration process from running so that it can wait for time to elapse. “Pause for Revenue Recognization date” is a Time Elapse Pause rule (EFF attribute ) 

In this example, eventName:"REVRECDate" (Date Feild which is future date and till that date lines will waite) . 

You create the following condition: HeaderEFF.getFlexAttributeDateValue("REVRECDate") isn’t null. You create the following rules: If the condition is met, then release the pause on a date.
(waitDateTime:HeaderEFF.getFlexAttributeDateValue("REVRECDate")



 3. IPC Pause : Pausing Orchestration Processes Until Items Are Ready to Ship
 IPC- (Inter process communication) process 
This example describes how to coordinate orchestration processes to make sure that Order Management Cloud invoices all the order lines that a sales order contains at the same time, 
Task : “EFF attribute:1” is an IPC pause and hold all line to move to next task for Awaiting billing You create the following condition: Context = "Line Additional Info" getFlexAttributeValue = 1
 eventName:DooSeededOrchestrationRules.SacResult.SAC_SYSTEM_EVENT_IPC_PAUSE, reevaluateFlag:"Y", sacType:DooSeededOrchestrationRules.SacResult.SAC_TYPE_EVENT ) 

You define an orchestration process that processes the order lines, pauses them until all of these lines are shipped, and then sends them to billing.

No comments:

Post a Comment