Before You Begin
This 50-minute OBE shows you how to create a new workflow process, and design for approve and reject cases in the Workflow Studio.
Time to Complete
50 minutes.
Background
Starting with Tools Release 9.2.6.4, you can create a new workflow process in the Workflow Studio. The Workflow Studio is a web-based user interface that you can launch from the Orchestrator Studio. This enhancement removes the dependency on the Object Management Workbench to create a new workflow process.
Scenario
For this OBE, consider a scenario in which you want to create a new workflow process where a request is made to increase the credit limit for a customer. After the request is submitted, the workflow sends a message to the supervisor for approval. The supervisor approves the request first, the originator receives a message. The originator sends the request again, the supervisor rejects it, and the originator receives a notification.
Prerequisites
- Orchestrator Studio 9.2.7 or later deployed in a JD Edwards EnterpriseOne test environment.
Importing
an Orchestration
In this task you will import an orchestration.
- Download and save in your system the Send_Reject_Message.zip file containing the orchestration that notifies the originator if their request is rejected by the supervisor.
- Sign in to the JD Edwards EnterpriseOne Orchestrator Studio.
- Click the Tools menu and select Import/Export from the drop-down list.
- Upload the shared compressed file and check Select All check
box and then click Submit.
Upload the Compressed File - Click the Back button on the top menu bar
to return to the Orchestrator Studio.

Creating
a New Workflow Process
In this task you will create a new workflow process in the Orchestrator Studio.
- Click the Workflows icon to open the Workflow Studio.
- Click New to create a new workflow.
- Complete the below fields:
Name:CRED_HOL
Description:Adjust Credit Limit

Defining
Key and Additional Data Structures
A JD Edwards EnterpriseOne workflow process requires these two data structures:
- Key: A key data structure contains the data items that make an instance of a process unique, similar to how the primary key in a table is the unique index in a table.
- Additional: An additional data structure contains all the other data that the process and any task within the process, need to complete the process flow.
- Click the Key Data Structure icon and
enter
D03B0159B
in the Key Data field. - Click the Additional Data Structure icon and enter
D03B0159C
in the Additional Data field. - Click Save to continue.


Adding
Tasks and Transitions to the Workflow Process
For a new workflow process, the Start and End tasks are present in the diagram workspace by default. You must add other tasks between the Start and End tasks. To complete the CRED_HOL workflow, you will add one Business Function task, one Action Message task, two Transitions, one Info Message task, and one Orchestration task.
- Drag and drop an Action Message task between the START and END tasks.
- Enter
APPROVE
in the Task Name field andApprove Request
in the Description field. - Click the Edit icon to configure the Action Message task.
- In the Message Editor window, select Address Book from the drop-down list in the To Recipient field.
- Enter
mnSendToAddress_AN8R
in the Address Book Number field and select mnSendToAddress_AN8R under Additional Data – D03B0159C from the drop-down list. - Enter
Request to increase credit limit
in the Subject Literal field. - Enter
P98806
in the Shortcut field. - Select W98806A from the Form drop-down list.
- Toggle on the Input for the second parameter and in the Mapping drop-down, under System Values select Current Workflow Task.
- Enter
LM1234
in Message and provide the below inputs:
&1 =mnCustomerNumber_AN8
&2 =szCustomerName_ALPH
&3 =mnOldCreditLimit_ACL
&4 =mnNewCreditLimit_AG
&5 =jdDateUpdated_UPMJ
&6 =szOriginatorName_ALP1
- Close the Message Editor window and click Save.
Now, you will add an Orchestration task to the workflow. The orchestration sends a formatted message just to demonstrate the functionalities. The orchestration can do a lot of things, and a lot of features are supported in the message, including rich formatted message, attachments, action links and so on. - Move the END task to the right side of the diagram workspace. Drag and drop an Orchestration task between the APPROVE and END tasks.
- Enter
REJECTED
in the Task Name field andSend Reject Message
in the Description field. - Click the Edit icon to configure the Orchestration task.
- In the Orchestration Editor window, click the Search icon to search and select Send a Reject Message.
- Map the below inputs and close the Orchestration Editor
window.
originator =mnOriginatorNumber_ANO
newLimit =mnNewCreditLimit_AG
customerName =szCustomerName_ALPH
- Move the Orchestration task down and click Save.
- Drag and drop a Business Function task between the APPROVE and END tasks.
- Enter
UPDATE
in the Task Name field andUpdate Credit Limit
in the Description field.
- Click the Edit icon to configure the Business Function task.
- Enter
N03B0159
in field Function Object Name. - Toggle on the Input mapping for all the parameters and map
the below inputs.
mnCustomerNumber =mnCustomerNumber_AN8
mnNewCreditLimit =mnNewCreditLimit_AG
szCompany_CO =szCompany_CO
- Close the Business Function Editor window.
- Drag and drop an Info Message task next to the Business Function task.
- Enter
APPROVED
in the Task Name field andSend the approval message
in the Description field. - Click the Edit icon to configure the Info Message task.
- In the Message Editor window, select Address Book from the drop-down list in the To Recipient field.
- Enter
mnOriginatorNumber_ANO
in the Address Book Number field and select mnOriginatorNumber_ANO under Additional Data – D03B0159C from the drop-down list. - Enter
Credit Limit Has Been Approved
in the Subject Literal field. - Define Message with the below values:
Message =LM1235
&1 =mnCustomerNumber_AN8
&2 =szCustomerName_ALPH
&3 =mnNewCreditLimit_AG
- Close the Message Editor window.
- Hover over the Info Message task and click the arrow and drag it to connect to the END task.
- Right-click the link between APPROVE and UPDATE tasks. Select Add and Attach Transition Condition from the context menu.
- In the Edit Condition window, complete the below fields:
Task name =IFAPPROVED
Description =if the request is approved
- Click the Additional Data Structure icon in the right pane and select cApprovalActionCode from the list to define the Left Operand. The system automatically populates is equal to in the Compare Operator.
- Click the Literal icon and enter
A
for Right Operand and click OK. - Review the condition and close the Edit Condition window.
In step 8, we selected the general workflow approval application P98806, which updates cApprovalActionCode with either "A" or "R" for the workflow instance. Therefore, to use the generic workflow approval application P98806, it is required that Data Dictionary item APPRACT is included in the data structure of the workflow and the values in the conditions are either "A" or "R". - Click the Manage Transition Condition icon on the left and click the Add icon.
- In the Edit Condition window, complete the below fields:
Task Name =IFREJECTED
Description =The request is rejected
- Click the Additional Data Structure icon in the right pane and select cApprovalActionCode from the list to define the Left Operand. The system automatically populates is equal to in the Compare Operator.
- Click the Literal icon and enter
R
for Right Operand and click OK. - Review the condition and close the Edit Condition window.
- Click the Diagram icon to return to the diagram workspace.
- Hover over the link between the APPROVE and REJECTED tasks. Right-click and select Select and Attach Transition Condition from the context menu.
- Click IFREJECTRED condition in the selection window.
- Click Save.
- Click Manage and then click Validate. The system displays the message, “Validate Successful.”
- Click Manage and then click Release Reservation. The system displays the message, “Release Reservation Successful.”
- Click Manage and then click Activate.



















Creating a Logic Extension to Start the Workflow Process
- Click Home to return to the Orchestrator Studio and then click the Logic Extension icon.
- Click New and enter the following values:
Name =Start Workflow
Description =Start Workflow
- Click the Logic icon to access the design area.
- Click the + icon between the Start and End and select Workflow from the context menu.
- Click the search icon in Workflow field.
- In the Workflow List window, enter
cred_
in the Filter field and select the workflow, CRED_HOL, created in the previous task. After you select the workflow, the Key Data Structure and Additional Data Structure sections are displayed to create the mappings. - Click the Edit icon for Key Data Structure section.
- Click the drop-down icon next to mnCustomerNumber and select Add to Data Structure.
- Close Workflow Parameter Mapping window.
- Click the Edit icon for the Additional Data Structure section.
- Click the drop-down list next to all the parameters, except ID 8 cApprovalActionCode, and select Add to Data Structure.
- Close the Workflow Parameter Mapping window.
- Click the Data Structure icon and rename
the first two inputs as the following:
mnCustomerNumber1 =CustomerNumber
szCustomerName2 =CustomerName
- Click Save.




Running
the Workflow Process
- Click the Test icon for Start Workflow.
- Enter the input values as below:
CustomerNumber =3001
CustomerName =Global Enterprises
mnOldCreditLimit3 =100
mnOriginatorNumber5 =1
szOriginatorName6 =Financial/Distribution Company
mnNewCreditLimit7 =150
mnSendToAddress8 =1
szCompany9 =00000
- Click the Calendar icon jdDateUpdated4 to pick a date.
- Click the Test icon to start the workflow.
Note: In this OBE, we are using user JDE’s address book number for both the originator and approver (SendToAddress). In reality, you will want to send the request to someone with the pertinent authority and the originator would be an employee who submitted the request. - Sign in to JD Edwards EnterpriseOne web client.
- Click the Notification List icon in the navigator and then click the Launch Message Center icon to open the Message Center.
- Click Work Center tab and expand the queue Personal In Basket.
- Open message titled Request to increase credit limit.
- Click the Workflow Approval link in the message.
- On the Workflow Approval form, click OK.
- Expand the queue Personal In Basket. View the new message, this is a plain text message constructed by the ACCEPTED (Info Message) task.
- Return to the Logic Extension in Orchestrator Studio and click the Test icon to send another request.
- Switch back to the JD Edwards EnterpriseOne web client.
- Click the Refresh icon at the bottom of the Work Center tab.
- Expand the queue Personal In Basket and open the message titled Request to increase credit limit.
- Select the Reject option and click OK on the Workflow Approval form.
- Expand the queue Personal In Basket. View the new message in Message Center, the formatted text message is sent from REJECTED (Orchestration) task.

Next
Tutorial
Want
to Learn More?
- “Using Orchestration Tasks (Release 9.2.7)”in the Workflow Tools Guide.
- “Creating Key and Additional Data Structures” in the Workflows Tools Guide.
- “Adding Tasks to a JD Edwards EnterpriseOne Workflow Process” in the Workflow Tools Guide.