Before You Begin
This 40-minute OBE (Oracle By Example) shows you how to create a notification that displays a list of orders awaiting approval from the Work With Orders Awaiting Approval (P43081) application.
In this OBE, you will:
- Create an orchestration that processes a form request to get the list of current users and their orders waiting to be approved, as well as a count of them.
- Create a notification (run as a subscriber) that calls the orchestration. This notification will include a data table that displays the list of orders awaiting approval from the orchestration, and it will also include a link to the Work With Orders Awaiting Approval (P43081) application.
Note:
The tasks in this OBE rely on having specific data in
the Work With Orders Awaiting Approval (P43081) application for
the Address Book Number 533095. You can use the data available
in your system.
Background
Because of its powerful abilities to collect data, evaluate
data, and send messages, Orchestrator can function as an
effective Notify and Alert mechanism, giving users an automated
way to keep track of important events and conditions and to take
action quickly. Many usage patterns call for the Orchestrator to
collect not just a single piece of data but rather a set of
data, for example, a list of purchase orders to be approved, and
to present that list in tabular form in a message to an
approver.
This new feature enhances Orchestrator messages and
notifications with the ability to pass in a data set (array) and
format that data as a table in the message.
What Do You Need?
- JD Edwards EnterpriseOne test environment with a minimum of EnterpriseOne Tools 9.2.8.3.
- Access to Process Recorder, which is enabled through
user-defined object (UDO) Feature Security and Action
Security.
Important: The orchestration uses the "User's Address Book Number" to find the orders that are awaiting approval. So, you have to change your address number in your EnterpriseOne profile (User Profile Revisions form) to533095
to see the orders for that address book number.
Creating
the Orchestration
In this section, you will create a form request using Process Recorder to get a list of orders that are waiting for approval. You will then create an orchestration using this form request and add a logic extension to get the count of the number of records waiting for approval.
Recording the Form Request Using Process Recorder
- Sign in to the JD Edwards EnterpriseOne application.
You can access the JD Edwards EnterpriseOne application from the Orchestrator Studio home page or from the Tools drop-down menu on any of the pages. - On the EnterpriseOne page, click the drop-down list next to your user name and select Record a Process.
- In the Process Recorder window, click the Start button.
- Access the Work With Orders Awaiting Approval (P43081) application from the Fast Path or open the application from the Navigator menu.
- In the Approver field, enter
533095
. - Click Find.
- In the Process Recorder window, click Return Values.
- In the grid, click in the Order Number, Or
Ty, and Days Old fields.
Note: Make sure to click the header rows of the grid and not the grid records. - Click Resume in the Process Recorder window.
- Click Stop in
the Process Recorder window and complete these fields:
- Name:
Orders Awaiting Approval
- Description:
This form request gets the list of current users and their orders waiting to be approved.
- Product Code:
55
- Name:
- Click Save.
- Click Close to close the Process Recorder window.
Creating the Orchestration Using the Form Request
- Log in to Orchestrator Studio.
- Click Form Requests.
- Select the Orders Awaiting Approval form request in the left panel.
- In the Default Value field, delete the default value.
- In the Available Actions section, expand Work With Orders Awaiting Approval - Grid.
- Enable the Return option for Include Count.
- Similarly, to include more values, scroll down and enable the Return option for Order Amount, Order Date, and Supplier Name.
- In the Variable field of Change the variable for Work With
Orders Awaiting Approval - Grid, change the value from
GridOut_1_1 to
Orders Awaiting Approval_1.
- Click Save.
- From the Manage menu, select Create Orchestration.
The system creates an orchestration with inputs, transformations, and outputs to call the form service request. Verify the orchestration. - Click Save.
- Click the Orders Awaiting Approval form request and select Transformations.
- From the Available Values drop-down list, for
Approver_Number, select User's Address Book Number
.
- For the P43081_Version input, blank out the value P43081_Version from the Available Values field.
- Click the Start icon, and click Inputs
and Values. Enter the default value for
Approver_Number as
533095
. - Click Save.




Adding a Logic Extension
In this section, you will understand how to add a Logic Extension to retrieve the count of orders that are waiting for approval.
- On the Orders Awaiting Approval orchestration window, click
Design Mode.
Note: You can also double click the arrow line between the form request and End icon to add a new step. - Click the Add (+) icon between the form request and End icon.
- In the New Step Type window, select Logic Extension.
- Click New. The system displays the Data Structure tab of the logic extension window.
- Complete the following fields:
- Name:
Awaiting Orders Count
- Description:
This logic extension gets the count of orders that are waiting for approval.
Logic Extension Window - Name:
- In the Data Structure tab, click the + Data Dictionary button.
- In the Data Dictionary window, in the Alias field, enter
MATH01
, and then click the + icon.
The system adds the data dictionary MATH01 to the Data Dictionary window. - Change the value in the Name field from MathNumeric01 to
CountAwaitingApprovals.
- From the IO Type drop-down list, select Both.
- Click Save.
- Click Close.
- Click Exit Design Mode.
- Verify the orchestration and click Save.
- Click the newly added logic extension step, and select Transformations.
- From the Available Values drop-down list, select W3081A_count for CountAwaitingApprovals input.
- Click Save.
- Click the End icon. The Outputs and Assertions window is displayed.
- Verify that the Return All Grid Rows option is enabled and the Select option is enabled for these fields.
- Enable the Select option for the CountAwaitingApprovals field.
- Click Save.








Creating
the Notification
In this section, you will understand how to create a rule to check if there are orders awaiting approval and how to design a notification that includes a table with the records that are awaiting approvals. The notification message also includes a link to the Work With Orders Awaiting Approval (P43081) application, enabling you to directly access the application from the notification message.
Creating the Rule
- Log in to Orchestrator Studio.
- Click Rules.
- Click New and select Standard.
- Complete these fields:
- Name:
Countgreaterthanzero
- Description:
Check if the number of orders waiting for approval is greater than zero.
- Name:
- From the Match Type drop-down list, select Match All.
- From the Rule Type drop-down list, select Numeric.
- In the Value 1 field, enter
input
. - From the Operator drop-down list, select >.
- Enable the Literal option.
- In the Value 2 field, enter
0
. - From the Literal Value Type drop-down list, select Numeric.
- Click Save.
- Click Close.

Creating the Notification
- Log in to Orchestrator Studio.
- Click Notifications.
- Click New.
- Complete these fields:
- Name:
Orders Awaiting Approval
- Description:
This notification sends a message along with the list of orders that are waiting for approval.
- Name:
- From the Type drop-down list, select Orchestration.
- Enable the Run As Subscriber option.
- Click the arrow to the left of Orchestration to expand the Orchestration section.
- Click Select Orchestration, and then
search for and select the Orders Awaiting Approval
orchestration.
- Click the arrow to the left of Rule to expand the Rule section.
- Click Select Rule, and then search for and select the CountGreaterthanZero rule.
- In the Rule Input section, from the Mapped From drop-down list, select CountAwaitingApprovals.
- Click Save.
- Click the arrow to the left of Message to expand the Message section.
- From the Output drop-down list, select CountAwaitingApprovals. Leave the default value of Watchlist in the Output Type field.
- Click the arrow to the left of Actions to expand the Actions section.
- Next to Application Links - 0, click Add,
and complete these fields:
- In the Application link ID field, enter
P43081
, and click Apply. - In the Applications field, enter
P43081
and press Tab. You can click the Search icon and then search for and select this application. - From the Form drop-down list, select W43081A - Work With Orders Awaiting Approval.
- By default, the value for Version field is set as ZJDE0001. You can use the default value to add the application link.
- By default, the value for Link Text is set as Work With Orders Awaiting Approval. You can use the default value to add the application link.
Application Links Section - In the Application link ID field, enter
- Click Save.
The system creates an application link ID in the Placeholder drop-down list in the Body section enabling you to add it as a placeholder in your notification message. - Next to Data Tables - 0, Click Add.
- In the Add Data Table window, verify that the Include Header Row option is selected, and click Add.
- From the Data Set Name drop-down list, select Orders Awaiting Approval_1 and click Apply.
- Click Edit. The system displays the Edit
Data Table window with a table template. The table template is
pre-populated with all the known fields from the array in the
orchestration output.
Note: If the orchestration output changes and a new field is added to the output array, you can add another column to the table and use the Placeholder drop-down list to insert the newly available field into the table.
You can click the table and select the options, such as Column, Merge Cells, and so on, to change the table properties. You can also use the Font Color, Font Size, Paragraph, Bold, Italics, Underline, Strikethrough, Bulleted and Numbered List options from the toolbar to format your text in the table.
For this OBE, we will not make any changes to the table. - Click OK.
The system creates a table link ID in the Placeholder drop-down list in the Body section enabling you to add it as a placeholder in your notification message. - Go back to the Message section.
- In the Subject field, enter
${CountAwaitingApprovals} Orders Awaiting Your Approval.
- Place the cursor in the Body field of the Message section,
and enter:
Hello,
Here is the list of orders that are waiting for your approval:
- Press Enter to place the cursor in a new line.
- From the Placeholder drop-down list, select {Orders
Awaiting Approval_1.Table}.
The system adds a link to the table defined in the Data Tables section. - In a new line, enter
Click this link to approve or reject the orders:
- Make sure to verify that the cursor is at the end of the above line and then, from the Placeholder drop-down list, select {P43081.Link}. The system adds a link to the application defined in the Application Links section.
- Verify that your message looks like the following screenshot:






Adding a Subscription to the Notification
- If you are still on the Notifications page, click the Tools
menu and select My Subscriptions.
You can also click the drop-down list next to your user name in the upper-right area of the EnterpriseOne Home page, select Manage Notifications, My Subscriptions. - Click Add Subscription.
- Select the notification name that you used to create the
notification in Orchestrator Studio:
“Orders Awaiting Approval”
Note: If your notification name does not appear in the list, you might have to sign out of EnterpriseOne and sign back in. - You can accept all the default values and click Save.
- Click Close.
Testing
the Notification
- Access the Orders Awaiting Approval notification.
- Click Test.
- Enable the Dispatch Notifications option.
- Click Execute.
- Verify that you get a success message.
- Access the JD Edwards EnterpriseOne application.
You can access the JD Edwards EnterpriseOne application from the Orchestrator Studio home page or from the Tools drop-down menu on any of the pages. - Click the Notification List (Bell) icon. Click the new notification. If you do not see a new notification, click Refresh at the bottom left of the Notification List window.
- Verify that the notification message contains a table with the list of order numbers that are awaiting approval. The message also contains a link to the Work With Orders Awaiting Approval application.



Want to Learn More?
- "Defining the Notification Message" in the JD Edwards EnterpriseOne Tools Notification Guide.
- "Configuring a Message Request" in the JD Edwards EnterpriseOne Tools Orchestrator Guide.
- Learning Path: Understanding Rich Formatting of Messages
- OBE: Creating a Table from a Data Set in an Orchestration Message