Professional Documents
Culture Documents
Creating an Orchestration to
Creating an Orchestration to This 45-minute tutorial shows how to create an orchestration that
Generate CSV Files and Return receives a CSV file as input, parses it, and uses a form request to insert
Them As Orchestration Output records to JD Edwards EnterpriseOne. Additionally, you will learn how
to create another orchestration that builds a CSV file of the records
Want to Learn More? that were added and returns that as the output of the orchestration.
1. Record the sales order creating process using the process recorder.
2. Define an orchestration to receive multiple CSV files and
additionally set a condition of receiving one file for each order.
3. Add a custom step to read the file, create an object with the order
rows, and pass the object to a form request to add the records.
(The script is provided in this OBE.)
4. Create another orchestration that fetches the new records,
generates a CSV file, and returns the file as the output.
Background
Starting with Tools Release 9.2.6, you can define orchestrations to
receive files as input or return files as output. You can perform several
operations by using a file received as input to an orchestration, such as
uploading the file as an attachment in JD Edwards EnterpriseOne,
parsing the file by using a script, and using the data received.
Using a file received as an output, you can return a file fetched from
an FTP site, return a file fetched from EnterpriseOne attachments, or
generate a file in a script and return it. To call an orchestration that has
file inputs, you must use the HTTP multipart/form-data type
request, and to receive an output from an orchestration, you must use
the application/octet-stream in the accept header of the HTTP request.
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 1/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 2/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
Creating an Orchestration to
Creating an Orchestration Using
Accept the CSV Files as Input
to Create Sales Orders
the Form Request
In this task, you will understand how to create an orchestration that
Creating an Orchestration to
performs order entry in JD Edwards EnterpriseOne. The orchestration
Generate CSV Files and Return
Them As Orchestration Output created in this section will be used by the orchestration that receives
the CSV file as an input explained in the section Creating an
Orchestration to Accept the CSV Files as Input to Create Sales
Want to Learn More?
Orders.
SO Entry Orchestration
6. Click the Start icon, and then click the Inputs and Values icon.
7. In the Inputs and Values window, verify the inputs, and click the
Delete icon (X) to delete P42101_Version.
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 3/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
Creating an Orchestration
Using the Form Request
Creating an Orchestration to
Accept the CSV Files as Input
to Create Sales Orders
Creating an Orchestration to
Generate CSV Files and Return
Them As Orchestration Output
Inputs and Values Window
Want to Learn More?
8. Click anywhere outside the Inputs and Values window to close the
window.
9. Click the SO Entry form request and click the Transformations
icon. Verify the transformations and click outside the
Transformations window to close it.
Note: The transformation for P42101_Version is invalid because you
removed it as an orchestration input. That's OK. It will correct itself
when you save the orchestration.
Transformations Window
10. Click the End icon and click the Outputs and Assertions icon.|
Verify the outputs and make sure that Select option is enabled for
Previous Order, Previous Order Type, and Previous Order Company
outputs.
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 4/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
Creating an Orchestration
Using the Form Request
Creating an Orchestration to
Accept the CSV Files as Input
to Create Sales Orders
Creating an Orchestration to
Generate CSV Files and Return
Them As Orchestration Output
11. Click Save. (The system saves the orchestration automatically with
the name So Entry).
12. Click the Start icon and click Run Orchestration.
13. Click the Raw button and enter the following input to create the
same order entered during the recording:
{
"Long_Address_Number_Sold_To": "4243",
"Long_Address_Number_Ship_To": "4243",
"HdrBusinessUnit": "30",
"GridIn_188_20_2": [
{
"Quantity_Ordered": "1",
"Item_Number": "210"
},
{
"Quantity_Ordered": "1",
"Item_Number": "220"
}
]
}
14. Click Run. You should see a new order created.
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 5/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
Creating an Orchestration
Using the Form Request
Creating an Orchestration to
Accept the CSV Files as Input
to Create Sales Orders
Run Orchestrations Window
Creating an Orchestration to
Generate CSV Files and Return 15. Click the Close icon.
Them As Orchestration Output 16. To verify the newly created order in JD Edwards EnterpriseOne, click
the Tools menu and click JD Edwards EnterpriseOne.
Want to Learn More?
17. Access the Sales Order Entry (P42101) application using the Fast
Path or open the application from the Navigator menu. Verify the
newly created order.
Creating an Orchestration to
Accept the CSV Files as Input to
Create Sales Orders
In this task, you will understand how to create an orchestration that
receives any number of CSV files (with order details for one order in
each file) as input and then uses the orchestration created in the
”Creating an Orchestration to Add Sales Orders” section to add each
order to JD Edwards EnterpriseOne.
Note:
In order to read the data from the input CSV file, parse it, and create
sales orders you will need to use a custom step with a JRuby script.
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 6/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
This tutorial is not focused on coding in JRuby, so you can simply copy
Before You Begin
and paste the script that is provided.
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 7/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
Rule Window
Transformations Window
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 8/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
orderObject["Long_Address_Number_Sold_To"
=
table[0]
["Long_Address_Number_Sold_To"]
orderObject["Long_Address_Number_Ship_To"
=
table[0]
["Long_Address_Number_Ship_To"]
orderObject["HdrBusinessUnit"] =
table[0]["HdrBusinessUnit"]
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 9/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
return returnMap
end
30. Verify that your custom step is displayed as shown in the following
screenshot:
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 10/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
Transformations Window
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 11/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
Creating an Orchestration
Using the Form Request
Creating an Orchestration to
Accept the CSV Files as Input
to Create Sales Orders
Creating an Orchestration to
Generate CSV Files and Return
Them As Orchestration Output
Files(0) Button
45. In the Files window, browse and select, or drag and drop the
SODetail.csv and SODetail2.csv files.
Files Window
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 12/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
47. Verify that the output is as shown in the following screenshot. The
Before You Begin
orchestration result should contain details about the two orders
that were created (one order is created from each .csv file).
Recording the Sales Order Make a note of the two sales order numbers that were created.
Creation Process
Creating an Orchestration
Using the Form Request
Creating an Orchestration to
Accept the CSV Files as Input
to Create Sales Orders
Creating an Orchestration to
Generate CSV Files and Return
Them As Orchestration Output
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 13/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
Creating an Orchestration
Using the Form Request
Creating an Orchestration to
Accept the CSV Files as Input
to Create Sales Orders
Creating an Orchestration to
Generate CSV Files and Return
Them As Orchestration Output
Creating an Orchestration to
Generate CSV Files and Return
Them As Orchestration Output
In this task, you will define an orchestration that fetches records from
JD Edwards EnterpriseOne, generates a CSV file, and returns the file as
the orchestration output.
Prerequisites
You must have orders available in the database to return them in the
CSV file.
4. Find the Order Date field and click the Filter icon.
5. In the Filter Criteria section, click the drop-down button in the
Values field and select Today, and then click OK in the Set Special
Value window.
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 14/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
Creating an Orchestration
Using the Form Request
Creating an Orchestration to
Accept the CSV Files as Input Set Special Value Window
to Create Sales Orders
6. In the left side panel, click the Return icon next to these fields:
Creating an Orchestration to Order Co, Order Number, Or Ty, Line Number, Business Unit,
Generate CSV Files and Return Ship to Number, and 2nd Item Number.
Them As Orchestration Output 7. Verify that all the fields are displayed in the Return Fields and
Variable Names section and enable the Associated Description
Want to Learn More? option for the Order Co, Or Ty, Business Unit, Ship To Number, and
2nd Item Number fields.
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 15/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
Creating an Orchestration
Using the Form Request
Creating an Orchestration to
Accept the CSV Files as Input
to Create Sales Orders
Creating an Orchestration to
Generate CSV Files and Return Data Request Window
Them As Orchestration Output
9. From the Manage menu, click Create Orchestration.
Want to Learn More? 10. Click Save to save the resulting orchestration.
11. Click the End icon and click Output and Assertions.
12. Enable the Return All Grid Rows option and click the Output Grid
to File icon which is in the last column of the same row.
13. Enable the Output Grid to File option and do not change the other
default options or values.
Make sure that the Select option is enabled for all the values in the
Output field for F4211 Order Today.
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 16/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
Creating an Orchestration
Using the Form Request
Creating an Orchestration to 21. To receive the file output, change the value in the Accept drop-
Generate CSV Files and Return down menu to application/octet-stream.
Them As Orchestration Output
24. Open the downloaded CSV file and verify the orders. In the
following example, the downloaded file is opened using Microsoft
Excel.
CSV File
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 17/18
04/03/2024 17:08 Using Files As Orchestration Input and Output
About Oracle Contact Us Legal Notices Terms of Use Your Privacy Rights | Préférences en matière de cookies | Ad Choices
Before You Begin
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Creating an Orchestration
Using the Form Request
Creating an Orchestration to
Accept the CSV Files as Input
to Create Sales Orders
Creating an Orchestration to
Generate CSV Files and Return
Them As Orchestration Output
https://docs.oracle.com/en/applications/jd-edwards/cross-product/9.2/file-input-output/ 18/18