Oracle by Example brandingCreating an Orchestration with Multiple Components

section 0Before You Begin

This 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
  • Create a connector service request to invoke the Credit Hold orchestration
  •  Add the data requests, rule, and connector to a new “Customer Credit Check” orchestration
  • Test the orchestration in the Orchestrator Client

What Do You Need?

  • Before performing the steps in this OBE, you must create a Credit Hold orchestration following the steps in the “Creating a Simple Orchestration in the JD Edwards Orchestrator Studio” OBE.
  • Orchestrator Studio 5.1.0 or higher deployed in a JD Edwards EnterpriseOne test environment with a minimum of EnterpriseOne Tools 9.2.1.4.
    -OR-
  • The latest JD Edwards EnterpriseOne Trial Edition.

section 1Creating a Data Request to Retrieve a Customer's Credit Limit

  1. Sign in to the Orchestrator Studio.
  2. On the Orchestrator Studio Home page, click the Service Requests icon.
  3. On the Service Requests page, click Create Service Request and then Data Request from the drop-down list.
  4. On the Data Request page, complete the following fields:

    Service Request = Get Customer Credit Limit

    Enter Short Description = Retrieve customer credit limit
  5. Click the Product Code drop-down list and select 55 for a customer product code.
  6. In the Table/View Name field, enter V03012F and click the Load button to load the fields from this business view.

    This business view contains the F0101 and F03012 tables for the Customer Master program.
  7. Set up a condition to fetch a customer’s credit limit:
    1. In the Fields grid, click the Filter icon next to Address Number [F0101].
      The field appears in the Conditions box in the Filter Criteria area on the right.
    2. In the Filter Criteria area on the right, make sure Match All is selected for the Match Type.
    3. 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.
  8. To define the field values that you want the data request to return:
    1. 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.)

      This places the fields in the Return Fields and Variable Names section on the right.
    2. In the Return Fields and Variable Names section, enter the following variables for the return fields. Later, you will use these variables to map these return values to another step in the orchestration:

      Credit Limit [F03012] = Credit Limit

      Alpha Name [F0101] = Name
  9. Click Save.

section 2Creating a Data Request to Retrieve a Total Sum of Customer Order Amounts

  1. In the upper left corner of the Orchestrator Studio, click the icon to return to the Service Requests page.
  2. On the Service Requests page, click Create Service Request and then Data Request from the drop-down list.
  3. On the Data Request page, complete the following fields:

    Service Request = Order Totals

    Enter Short Description = Calculate total sum of order amounts
  4. Click the Product Code drop-down list and select 55 for a customer product code.
  5. In the Table/View Name field, enter F4201 and click the Load button.
    This is the Sales Order table that contains customer order amounts.
  6. Click and slide the Aggregation toggle to the right to enable it.
  7. Set up a condition to retrieve order amounts by customer over a specified period of time:
    1. In the Fields grid, click the Filter icon next to the following fields:

      Address Number

      Order Date
      The fields appear in the Conditions box on the right in the Filter Criteria area.
    2. In the Conditions box, for Address Number, make sure that = is the operand
    3. In the adjacent field, change the ${Address Number 1} variable to Customer for the variable name, so it looks like this:
      Address Number
    4. For Order Date, select > (greater than) for the operand and then replace the variable name in the adjacent field with 01/01/2016, so it looks like this:
      Order Date
  8. To specify the aggregate or the total sum of order amounts that you want returned:
    1. In the Fields grid on the left, scroll down to the Order Amount row and click the Aggregate icon.
    2. In the pop-up that appears on the right side of the page, select Sum.
    3. In the Aggregations and Variable Names area on the right, click the Include Count check box.
    4. 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.
  9. Click Save.


section 3Creating a Rule with a Condition for Placing a Hold on a Customer’s Credit

Create a rule with condition for order amounts that are greater than a customer’s credit limit.

  1. In the upper left corner of the Studio, click the icon twice to access the slideout menu, and then click the Rules icon.
  2. On the Rules page, click New Rule.
  3. In the area on the right, complete the following fields for the new rule:

    Rule = Over Credit Limit

    Enter Short Description> = Condition for open order amount greater than credit limit

  4. Click the Product Code drop-down list and select 55 for a customer product code.
  5. To enter a condition for open order amounts that exceed the credit limit:
    1. In the first row in the grid, in the Rule Type column, select Numeric from the drop-down list.
    2. In the Value 1 column, enter OpenOrderAmt as a variable for this input.
    3. In the Operator column, select > (greater than symbol).
    4. In the Value 2 column, enter CreditLimit as a variable for this input.
  6. Click Save.


section 4Creating a Connector Service Request to Invoke the Credit Hold Orchestration

    In this task, create a connector service request to invoke the Credit Hold orchestration that you created in the “Creating a Simple Orchestration in the JD Edwards Orchestrator Studio” OBE. If the condition in the rule is met, the orchestration uses this connector service request to invoke the Credit Hold orchestration to place a hold on a customer’s credit.

  1. In the upper left corner, click the icon and from the slideout menu, and then click the Service Requests icon.
  2. On the Service Requests page, click Create Service Request, and then click Connector.
  3. Complete the following fields:

    Service Request = Credit Hold Connect

    Enter Short Description = Connect to Credit Hold orchestration

  4. Click the Product Code drop-down list and select 55 for a customer product code.
  5. Click in the Connection field, and under the Orchestrator Node select the Local Orchestrations connection.
    The URL to the location of the orchestrations appears next to the field.
  6. Click in the Orchestration field and select Credit Hold.
    The input defined in the Credit Hold orchestration appears in the grid, mapped to the variable for the connector input.
     
    Orchestration Input
  7. Click Save.

section 5Adding the Data Requests, Rule, and Connector to a New “Customer Credit Check” Orchestration

In this task, you will:

    • Create a “Customer Credit Check” orchestration with Customer Number as an input.
    • Add the data requests, rule, and connector components as steps in the orchestration.
    • Map the orchestration input to the inputs defined in the orchestration steps.
  1. In the upper left corner of the Orchestrator Studio, click the   icon twice and then click the Orchestrations icon in the side panel.
  2. On the Orchestrations page, click New Orchestration.
  3. Complete the following fields:

    Orchestration = Customer Credit Check

    Enter Short Description = Check customer credit limit and if exceeded, place a credit hold on customer

  4. Click the Product Code drop-down list and select 55 for a customer product code.
  5. In the first row of the Input / Value Type grid, enter Customer Number in the Input column and then in the Value Type drop-down list, select Numeric.
  6. Add the “Get Customer Credit Limit” data request as the first step in the orchestration:
    1. Next to Orchestration Steps, click Add Step.
    2. In the Enter Type of Step pop-up, select Service Request from the drop-down list, and then click OK.
      The Service Request step appears in the grid.
      Service Request
    3. At the end of the Service Request row, click the down arrow and select Get Customer Credit Limit from the drop-down list.
  7. Add the “Order Totals” data request as the next step in the orchestration:
    1. Select the first Service Request row, and then click Insert Step After.
    2. In the Enter Type of Step pop-up, click the drop-down list and select Service Request, and then click OK.
    3. At the end of the new Service Request row, click the down arrow and select Order Totals from the drop-down list.    
  8. Add the “Over Credit Limit” rule as the next orchestration step:
    1. Select the last row in the Orchestration Steps grid, and then click Insert Step After.
    2. In the Enter Type of Step pop-up, click the drop-down list and select Rule, and then click OK.
    3. At the end of the new Rule row, click the down arrow and select Over Credit Limit from the drop-down list.
    4. Expand the Rule step and in the next row, select True in the Action column.
      This specifies that if the condition in the rule in the preceding step is met or is “true,” then the orchestration will invoke the next step in the orchestration.
  9. Add the “Credit Hold Connect” connector as the final orchestration step:
    1. Select the last row in the Orchestration Steps grid, and then click Insert Step After.
    2. In the Enter Type of Step pop-up, select Service Request from the drop-down list, and then click OK.
    3. At the end of the new Service Request row, click the down arrow and select Credit Hold Connect from the drop-down list.
      At this point, the orchestration steps and inputs should look like this:  Orchestration Steps
  10. Click Save.
    Notice that the Orchestrator Studio adds additional inputs to the grid. The inputs are return values defined with variables in the orchestration steps.
  11. Map orchestration inputs to the inputs defined in each orchestration step:
    1. Select the Get Customer Credit Limit step in the Orchestration Steps grid.
    2. In the Transformations grid on the right, next to the ${Address Number 1} input, click the Orchestration Input drop-down list and select Customer Number.
    3. Select the Order Totals step in the grid.
    4. In the Transformations grid, next to the ${Customer} input, click the Orchestration Input drop-down list and select Customer Number.
    5. Select the Over Credit Limit step in the grid.
    6. In the Transformations grid, map the rule inputs to the following orchestration inputs:
      Rule Input Orchestration Input
      OpenOrderAmt Total Order Amount
      CreditLimit Credit Limit
    7. Select the Credit Hold Connect step in the grid. You might have to expand the Rule step to see it.
    8. In the Transformations grid, map ${Customer} to the Customer Number orchestration input
  12. Click Save.

section 6Testing the Customer Credit Check Orchestration in the Orchestrator Client

Before you test the orchestration, you must set the customer’s credit limit to $25.

To set the customer’s credit limit:

  1. Access EnterpriseOne and enter P01012 in the Fast Path to access Work With Addresses.
  2. Search and select your customer number, and then select A/R from the Row menu.
  3. Click the Credit tab and in the Credit Limit field, enter 25.
  4. If the Credit Message is already set to 7, clear it.
  5. Click OK.

To test the Customer Credit Check orchestration:

  1. Access the Orchestrator Client. You might have it open in another tab, or click the Tools link in the upper right corner of the Orchestrator Studio and click the Orchestrator Client icon to access it. You will most likely need to sign in again.
  2. Click XML Cache Refresh.
  3. In the Orchestrator Client, click the Orchestration Name drop-down list and select the Customer Credit Check orchestration.
  4. 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.
  5. Click Run.
    Look for the green check mark or a yellow caution symbol to see if the JD Edwards Orchestrator successfully processed the orchestration.

To verify the customer credit hold was applied in EnterpriseOne:

  1. Access EnterpriseOne and enter P01012 in the Fast Path to access Work With Addresses.
  2. Search and select your customer number, and then select A/R from the Row menu.
  3. On Work With Addresses, search for and select the customer from the grid and click OK
  4. 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:

  1. In EnterpriseOne, access the Work Center program (P012503).
  2. Expand the Personal In Basket queue, where you should see the “Over Credit Limit” message for your customer.
  3. Select the message to view it.
  4. Click the Message Text drop-down list, select Customer Master Revision.jde, and then click the shortcut displayed in the message.
  5. This shortcut should 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.

more informationWant to Learn More?