Before You Begin
This 30-minute Oracle By Example (OBE) shows you how to create
a multifaceted orchestration that retrieves and evaluates
customer data from EnterpriseOne and invokes another
orchestration if certain criteria is met.
Background
This OBE employs the following scenario to show you how to
create a complex orchestration. You need an orchestration that
contains a condition to determine if a hold should be placed on
a customer’s credit, and if so, invokes the Credit Hold
orchestration (created in the Creating
a Simple Orchestration in the JD Edwards Orchestrator Studio
OBE).
To do so, you will perform the following tasks:
- Create a data request to retrieve a customer’s credit limit.
- Create a data request to retrieve a total sum of outstanding customer order amounts.
- Create a rule with a condition for placing a hold on a customer’s credit.
- Invoke the Credit Hold orchestration.
- Add the data requests, rule, and orchestration to a new “Customer Credit Check” orchestration.
- Test the orchestration.
What Do You Need?
- A JD Edwards EnterpriseOne test environment with a minimum of EnterpriseOne Tools 9.2.6.0.
Creating
a Data Request to Retrieve a Customer's Credit Limit
This section demonstrates how to create a data request to retrieve a customer’s credit limit from the customer master view (V03012F) in EnterpriseOne.
- Access the Orchestrator Studio.
- On the Orchestrator Studio home page, click the Data Requests icon, and then click the New button.
- On the Data Request design page, complete these fields:
- Name =
Get Customer Credit Limit
- Enter Short Description =
Retrieve Customer Credit Limit
- Name =
- In the Table/View Name field, enter
V03012F
, and click Load.
This business view contains the F0101 and F03012 tables for the Customer Master program. - In the grid, click the Filter icon next
to Address Number[F0101] - AN8. This adds the filter to the
condition box in the Filter Criteria section on the right.
- In the Filter Criteria section on the right, make sure Match All is selected for the Match Type.
- Make sure the equals (=) operand is selected and leave the variable that appears in the field by default. The orchestration uses this variable to pass the address book number of the customer to EnterpriseOne.
- Change the variable in the Values column from ${Address Number 1} to ${Customer}.
- To define the field values that you want the data request to
return:
In the Fields grid on the left, click the Return icon next to the following fields:
- Credit Limit [F03012]
- Alpha Name [F0101] (Scroll down in the
grid to find this field.)
The fields will be placed in the Return Fields and Variable Names section on the right.
- Change the text in the Variable column
for the return fields just added:
- Credit Limit [F03012] =
Credit Limit
- Alpha Name [F0101] =
Name
- Credit Limit [F03012] =
- Click Save. The data request should look like this when complete:

Creating
a Data Request to Retrieve a Total Sum of Customer Order Amounts
This section demonstrates how to create a data request to retrieve order totals from the sales order table (F4201) in EnterpriseOne.
- On the Data Requests page, click the New button.
- Complete these fields:
- Name =
Order Totals
- Enter Short Description =
Calculate total sum of order amounts
- Name =
- In the Table/View Name field, enter
F4201
and click Load.
This is the Sales Order table that contains customer order amounts. - Toggle the switch next to Aggregation to the on position.
- In the grid, click the Filter icon next
to the following fields:
- Address Number
- Order Date
- Address Number
- In the Conditions box, for Address Number, make sure that = is selected as the operand.
- In the adjacent field, change the ${Address Number 1}
variable to
${Customer}
for the variable name, and verify that it looks like the following screenshot: - For Order Date, select > (greater than) as operand.
- Use the arrow next to the variable name to open the Special Value dialog, and select “Today minus 1 Year”, and verify that it looks like the following screenshot:
- To specify the aggregate or the total sum of order amounts that you want returned, in the Fields grid on the left, scroll down to the Order Amount row and click the Aggregate icon.
- In the pop-up window that appears on the right side of the page, select Sum.
- In the Aggregations and Variable Names area on the right, click the Include Count switch.
- In the field adjacent to Order Amount: Sum, enter
Total Order Amount for the variable name.
The variable enables you to map the total sum amount returned from this data request to another orchestration step. - Click Save. The data request should look like this when complete:



Creating
a Rule with a Condition for Placing a Hold on a Customer’s
Credit
This section demonstrates how to create a rule with condition for order amounts that are greater than a customer’s credit limit.
- In the upper left corner of the Orchestrator Studio, click the Home link in the breadcrumbs.
- On the home page select Rules, click New, and then click Standard.
- In the area on the right, complete the following fields for
the new rule:
- Name =
Over Credit Limit
- Description =
Condition for open order amount greater than credit limit
- Name =
- To enter a condition for open order amounts that exceed the
credit limit:
- From the Match Type drop-down list, select Match All.
- In the first row of the grid, in the Rule Type column, select Numeric from the drop-down list.
- In the Value 1 column, enter
OpenOrderAmt
as a variable for this input. - In the Operator column, select > (greater than symbol).
- In the Value 2 column, enter
CreditLimit
as a variable for this input.
- Click Save.
- The rule should look like this:

Adding
the Data Requests, Rule, and Orchestration to the New Customer
Credit Check Orchestration
This section demonstrates how to:
- Create a “Customer Credit Check” orchestration with Customer Number as an input.
- Add the data requests, rule, and orchestration components as steps in the orchestration.
- Map the orchestration input to the inputs defined in the orchestration steps.
- Click the X in the top right corner to close the Rules page.
- Click the Orchestrations icon on the home page and then click New.
- Complete the following fields:
- Name =
Customer Credit Check
- Description =
Check customer credit limit and if exceeded, place a credit hold on customer
- Name =
- Click the + icon on the line between the Start and End nodes.
- Select Data Request, scroll and find the Get
Customer Credit Limit data request, and select it.
The selected data request will be added as a node (step) in the orchestration diagram. - Click the new data request step and click Transformations.
- Click Add Inputs to Orchestration.
- Click Auto Map. Now the Customer input has
been added to the orchestration inputs and it has been mapped
to the Customer input for this data request step.
The transformations for this step should look like this: - Save the orchestration.
- Double-click on the line in the orchestration diagram between the Get Customer Credit Limit data request and the End node.
- Select Data Request.
- Find the Order Totals data request and select it. The data request will be added to the orchestration.
- Click the new Order Totals data request step in orchestration and select Transformations.
- Use the drop-down list to select Customer from
Available Values under Orchestrator Inputs.
The transformations for this step should look like this: - Save the orchestration.
- Double-click on the line in the orchestration diagram between the last data request (Order Totals) and the End node.
- Select Rule.
- Find the Over Credit Limit rule and select it. The rule will be added to the orchestration diagram.
- Click the new Over Credit Limit rule step (the left side of it) and select Transformations.
- For OpenOrderAmt, use the drop-down list in Available Values to select Total Order Amount (under Order Totals).
- For CreditLimit, use the drop-down list in Available Values to select Credit Limit (under Get Customer Credit Limit).
- Verify that the transformations for the rule looks like the following screenshot:
- Double-click the True line of the rule and select Orchestration.
- Find the Set Credit Hold orchestration and select it. The orchestration will be added inside the rule.
- Click the new Set Credit Hold orchestration step and select Transformations.
- For Address_Number, select Customer under the Available Values. The transformations should look like this:
- Click the End node and select Outputs and Assertions.
- Enable the Select All option.
- Save the Orchestration. It should look like this:





Testing
the Customer Credit Check Orchestration
Note: Before you test the orchestration, you must set the customer’s credit limit to $25.
To set the customers credit limit:
- Access EnterpriseOne and enter P01012 in the Fast Path field to access Work With Addresses.
- Search and select your customer number, and then select A/R from the Row menu.
- Click the Credit tab and in the Credit
Limit field, enter
25
. - If the Credit Message is already set to 7, clear it.
- Click OK.
To test the Customer Credit Check orchestration:
- In the Orchestrator Studio, access your orchestration, click Tools, and click Run Orchestrations. Your orchestration will be automatically selected for you.
- In the Inputs area, enter a customer number for the Customer Number input. Make sure you are using a customer number in the demo data provided with the EnterpriseOne data pack.
- Click Run.
- The orchestration output should look similar to this, if the customer selected had order totals higher than 25.

To verify the customer credit hold was applied in EnterpriseOne:
- Access EnterpriseOne and enter P01012 in the Fast Path field to access Work With Addresses.
- Search and select your customer number, and then select A/R from the Row menu.
- On Work With Addresses, search for and select the customer from the grid and click OK.
- Click the Credit tab and verify that the
Credit Message status is
7 – On Credit Hold per Accounting
.
To verify the “Over Credit Limit” message was sent:
- Sign on to EnterpriseOne with a user that has the associated customer number.
- In EnterpriseOne, access the Message Center program (P980051X).
- Select the Work Center tab.
- Expand the Personal In Basket queue, where
you should see the “
Over Credit Limit
” message for your customer. - Click the message to view it.
- Click the Customer Master Revision action link (in the blue bar next to the message title).
- This shortcut will take you to the customer’s record in
Customer Master Revisions, where you can click the Credit
tab and see the
7 – On Credit Hold per Accounting
status.
Want
to Learn More?
- "Understanding the Orchestration Design Process” in the JD Edwards EnterpriseOne Tools Orchestrator Guide
- "Configuring a Data Request” in the JD Edwards EnterpriseOne Tools Orchestrator Guide
- "Creating Rules” in the JD Edwards EnterpriseOne Tools Orchestrator Guide
- "Understanding Run Orchestrations” in the JD Edwards EnterpriseOne Tools Orchestrator Guide