Create Object Workflow Setup for Order
As an administrator, you create this object workflow for an order which is in the Overdue status. You can manage the orders better by creating workflows to track the date of submission and the duration for pending payment.
For more information about object workflow and the types of workflows, see Oracle Sales application Extending Sales guide.
To create the object workflow:
-
Navigate to Application Composer.
-
Select Common from the Application list.
-
Click Object Workflow on the Overview page.
-
Select
. -
Create Object Workflow page opens.
-
Select Order from the Object list.
-
Enter Name as Order update flow.
-
In the Event Point and Condition area,
-
Select When a record is updated.
-
Click the expression builder icon and enter the following condition in the Expression Builder dialog:
if(isAttributeChanged("__ORACO__OrderStatus_c") && __ORACO__OrderStatus_c == 'ORA_ACO_ORDER_STATUS_SUBMITTED' && __ORACO__PaymentStatus_c == "ORA_ACO_PAYMENT_STATUS_PENDING") { return true; } else { return false; }
-
Click OK.
-
-
In the Actions area, click the Create button.
Create Action: Field Updates page opens.
-
Enter Name as Update order status to Overdue.
-
In the Execution Schedule area, specify the number of days after which the workflow must be triggered.
-
On Field Update Details area:
-
In Field to Update, select Order Status.
-
In Value, select Overdue.
-
-
Click Save and Close.