Oracle by Example brandingCreating a Simple Orchestration in the JD Edwards Orchestrator Studio

section 0Before You Begin

This Oracle By Example (OBE) shows you how to create a simple orchestration that performs a transaction in EnterpriseOne and sends a message about the transaction to a recipient.

Background

This OBE employs the following scenario to show you how to create a simple orchestration:

When a customer exceeds their credit limit, you want an orchestration that will 1) place a hold on the customer’s credit and 2) send a message about the customer’s credit hold to the account representative. In this OBE, you will perform the following tasks:

  • Review the steps to set a credit hold in EnterpriseOne
  • Configure a form request (service request) to set a credit hold
  • Configure a message service request to send a credit message
  • Add the Set Credit Hold and Send Credit Message service requests to an orchestration
  • Test the orchestration in the Orchestrator Client


What Do You Need?

  • 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 1Reviewing the Steps to Set a Credit Hold in EnterpriseOne

To configure a form request to set a credit hold, in the Orchestrator Studio, you identify the controls and order of actions needed to perform the credit hold in EnterpriseOne. Therefore, you should access EnterpriseOne and run through the steps to perform a credit hold to familiarize yourself with the “order of execution” required to complete the task.

    1. Sign in to the Orchestrator Studio. (You can access EnterpriseOne from the Tools page in the Studio.)
    2. Click the Tools link in the upper right corner.
    3. On the Tools page, click the JD Edwards EnterpriseOne icon.
    4. Sign in to EnterpriseOne.
    5. Click Navigator    and enter P01012 in the Fast Path to access Work With Addresses.
    6. In the Address Number QBE field, enter the customer number that you will place on a credit hold and click Find.
    7. In the grid, select the customer row, then click the Row menu and select A/R.
    8. Click the Credit tab and enter 7 in the Credit Message field and press Tab.
    9. Notice that the “7 – On Credit Hold per Accounting” label appears next to the field.
    10. Cancel the form without saving.
    11. In the next task, you will use the Form Request design page in the Orchestrator Studio to identify each of the preceding steps for setting a credit hold. 


section 2Configuring a Form Request to Set a Credit Hold

  1.  Return to the Orchestrator Studio Home page. You might have to sign in again if your previous session timed out.
  2. On the Orchestrator Studio Home page, click the Service Requests icon.
  3. On the Service Requests page, click Create Service Request and then Form Request from the drop-down list.
  4. On the Form Request page, complete the following fields:

    Service Request = Set Credit Hold

    Enter Short Description = Set credit hold when customer exceeds credit limit
  5. Click the Product Code drop-down list and select 55 for a customer product code.
  6. In the Available Actions area, click the Application Stack check box.
  7. Complete the following fields and then click Load Form   to load the controls from the Work with Addresses form in EnterpriseOne:

    Application = P01012

    Form = W01012B

    Version = ZJDE0001

    The Orchestrator Studio loads the controls and fields in the grid, displaying the form name in the first row.

    Note: For this form request, you do not need to select a Form Mode, which is used only if the form is set to run in particular mode in the EnterpriseOne Form Design Aid.
  8. To specify the controls needed in Work with Addresses to carry out a credit hold, configure these controls/actions in the following table:
    Control/Action (in the Description column) Do this:
    Address Number (under “Work With Addresses – QBE” node) 1.    For Address Number, enter Customer in the Mapped Value column.
    When you create the orchestration, you will define Customer as one of the inputs, and then map the input to this service request.
    2.    Click Add Action at the end of the row to add this control/action to the Order of Execution area.
    Find (under Buttons and Exits node) Click Add Action at the end of the Find row to add this control to the Order of Execution area.
    Select First Row (under “Work With Addresses-Grid” node) Click Add Action   to add the control to the Order of Execution area.
    A/R (under Buttons and Exits node) Click Add Action   to add the control to the Order of Execution area.
    This action invokes the Customer Master Revision form, which contains the information about the customer.
    If you scroll to the top of the page, notice the actions you specified added to the Order of Execution area.
  9.  Specify the controls needed in Customer Master Revision to carry out a credit hold:
    1. a.    Return to the top of the Available Actions area and complete the following fields to load the controls from Customer Master Revision:

      Application = P03013

      Form = W03013B

      Version = ZJDE0001b.   
    2. Click Load Form .
      The Orchestrator Studio adds a node for Customer Master Revision below the Work With Addresses node in the grid.
    3. Configure these controls/actions under the Customer Master Revision node:
    Control/Action Do this:
    Credit Message 1.    Enter 7 in the Default Value column. This is the UDC for “On Credit Hold per Accounting.”
    2.    Click Add Action  to add the control to the Order of Execution.
    OK (under Buttons and Exits) Click Add Action  to add the control to the Order of Execution.
    This action saves the form and returns to the Work with Addresses form.
  10. After the credit hold, you want the form request to return the customer name so you can use it as an input to the message request (which you will create in the next task):
    1. Return to the top of the Available Actions area and complete the following fields to load the controls from Work With Addresses:

      Application = P01012

      Form = W01012B

      Version = ZJDE0001
    2. Click Load Form  .

      The Orchestrator Studio adds another node for Work With Addresses to the bottom of the Available Actions grid.
    3. Available Action
    4. Expand Work With Addresses, and then expand Work with Addresses – Grid.
    5. In the Alpha Name row, click the check box in the Return column and in the adjacent field in the Variable Name column, enter Customer Name.
    6. Click Save   .
  11. To ensure that the order of actions are in the proper order to perform a credit hold:
    1. Select the first Work With Addresses node, and then scroll up to the “Order of Execution” area and verify that the actions are in the following order:
    2. Order of Execution
    3. Select the Customer Master Revision node, and then verify that the actions are in the following order in the “Order of Execution” area:
      Order of Execution

      The final “action” you configured in the last Work With Addresses node is not displayed in the Order of Execution area because it is returning a value from the form in the orchestration response; it is not performing another action in EnterpriseOne.

  12. Click Save .
  13. Click the Service Requests link in the top left corner to return to the Service Requests page.
  14. Select the Set Credit Hold form request that you just created. Notice that the graphical representation of the form request shows each of the forms in the order of execution, which should look like this:
  15. Forms Flow

section 3Configuring a Message Service Request to Send a Credit Message

Create a message service request to enable the orchestration to send a message about the customer exceeding their credit limit. You will include variables in the message service request to pass the customer name and customer address book number from the orchestration to the message service request.

  1. On the Service Requests page, click Create Service Request and then select Message from the drop-down list.
  2. On the Message page, complete the following fields:

    Service Request = Send Credit Message

    Enter Short Description = Send credit hold message when customer exceeds credit limit
  3. Click the Product Code drop-down list and select 55 for a customer product code.
  4. In the To field, select Address Book from the drop-down list and then enter the address book number associated with your user ID.

    Using your own address book number will enable you to verify that a message was sent to the EnterpriseOne Work Center, which you will do later in this OBE.

    As an alternative, if your EnterpriseOne environment has an SMTP server configured with EnterpriseOne to send messages to external email systems, you can select Email from the To field and enter a valid email address.
  5. In the Subject field, to enter a subject that includes a variable for the customer name:

    1. Right-click in the Subject field and click Insert Variable.
    2. Within the brackets, rename the variable to Customer Name, and then after the close bracket, type

      “Over Credit Limit,” so it looks like this:

      ${Customer Name} Over Credit Limit
  6. In the body area, enter the following message, right-clicking to include two variables to hold the address book number and name of the customer:

    Customer ${ABNum}: ${Customer Name} is over their credit limit.

    When you add this message request to the orchestration in the next task, you will map the orchestration inputs Customer and Customer Name to the message request variables ABNum and Customer Name accordingly.
  7. Expand the JD Edwards EnterpriseOne Shortcut area and perform the following steps to include a shortcut to the Customer Master Revision form in the message:
    1. Complete the following fields and then click Load.

      Application = P03013

      Form = W03013B

      Version = ZJDE0001

      The Studio loads all the controls from the application form in the grid.
    2. In the grid, enter the following form interconnect values for the controls in the form:
  8. Click Save .

section 4Adding the Set Credit Hold and Send Credit Message Service Requests to an Orchestration

    In this task, you will:

    • Create a new “Credit Hold” orchestration that includes Customer as an input.
    • Add the form request and message request components as “steps” in the orchestration.
    • Map the orchestration inputs to 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 = Credit Hold

    Enter Short Description = Set credit hold and send credit hold message
  4. Click the Product Code drop-down list and select 55 for a customer product code.
  5.  In the first row in the Input grid, enter Customer for the Input and then in the Value Type drop-down list, select Numeric.
    You will use this input to pass in a customer number to the orchestration.
  6. Click Save  .
  7. Add the Set Credit Hold form 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, click the drop-down list and select Service Request, and then click OK.

      The Service Request step appears in the grid.
    3. At the end of the Service Request row, click the down arrow and select Set Credit Hold from the drop-down list. To select using Chrome, carefully hover over the down arrow until the   cursor appears.
    4. Service Request
  8. Add the Send Credit Message service request as the next step in the orchestration:
    Orchestration Steps

    1. With the first Service Request row selected, 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 Send Credit Message from the drop-down list.
    4. Click Save again.

      At this point, the orchestration steps and inputs should look like this:

      If you highlight the Message row in the Orchestration Steps grid, notice that Customer Name, the variable name that you entered in the form request to return the Alpha Name, appears as an orchestration input. This makes the returned value available for mapping to the Message service request.
  9. Use the Transformations area to map the orchestration inputs to the inputs defined in each orchestration step:
    1.  Select the Set Credit Hold step in the grid.

      The Transformations grid displays the “Customer” variable that you defined as an input in this form request.
    2. In the Transformations area, click Auto Map .

      The Studio automatically maps the “Customer” input defined in Set Credit Hold to the “Customer” input in the orchestration because the input names match.
    3. Transformation Area
    4. Select the Send Credit Message step in the grid.

      Notice in the Transformations grid, the Service Request Input displays the variables entered for the inputs in the Send Credit Message service request.
    5. In the ${Customer Name} row, click the Orchestration Input drop-down list and select Customer Name.
    6. In the ${ABNum} row, click the Orchestration Input drop-down list and select Customer.
  10. Click Save .
  11. In the upper left corner, click the Orchestrations link and then from the list of orchestrations, select Credit Hold.

    The Orchestrator Studio displays a graphical representation of the orchestration with all its components, which should look like this:
    Orchestration

section 5Testing the Orchestration in the Orchestrator Client 

  1. Click the Tools link in the upper right corner of the Orchestrator Studio.
  2. On the Tools page, click the Orchestrator Client icon.
  3. Sign in using your user ID for both the User and Password.
  4. Click XML Cache Refresh. If a dialog box appears, click Ok.

    Before you test an orchestration, you should click XML Cache Refresh to ensure that you are not using cached data for the test.
  5. Click the Orchestration Name drop-down list and select the Credit Hold orchestration.
  6. In the Inputs area, enter the following input:

    Customer = Enter the customer number.

    Make sure that you are using a customer number that is available in the data pack demo data.
  7. Click Run.

    If a green check mark or a yellow caution symbol appears next to the Input and Output areas that display the request and response in JSON code, then congratulations! You successfully configured the Credit Hold orchestration.
               To verify the credit hold was applied to the customer in EnterpriseOne:
  1. Return to the Orchestrator Studio. If it timed out, you might have to sign in again.
  2. Select the Tools menu in the upper right corner, and then click the Oracle JD Edwards EnterpriseOne icon.
  3. Sign in to EnterpriseOne.
  4. Click the Navigator  and enter P01012 in the Fast Path.
  5. In the Address Number QBE field, enter the customer number that you placed on a credit hold and click Find.
  6. In the grid, select the customer row, then click the Row menu and select A/R.
  7. Click the Credit tab to verify the Credit Message is at status “7 – On Credit Hold per Accounting.” Congrats! It worked!
               To verify the credit hold message was sent to the EnterpriseOne recipient:

  1.  On the EnterpriseOne home page, click the Navigator menu and in the Fast Path, enter P012503 to access the Employee Work Center.
  2. In the Work Center, click Find.
  3. Expand the Personal In Basket queue, where you should see the “Over Credit Limit” message for your customer.
  4. Select the message to view it.
  5. Click the Message Text drop-down list, select Customer Master Revision.jde, and then click the shortcut displayed in the message.

    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.


next stepNext OBE

Proceed to “Creating a Complex Orchestration in the Orchestration Studio” OBE, which shows you how to create an orchestration that performs a sum of customer order amounts, compares it to the customer’s credit limit, and if the order amount exceeds the customer’s credit limit, invokes the Credit Hold orchestration that you just created here.


more informationWant to Learn More?