Before You Begin
This 15-minute tutorial shows how to use a structured process in a dynamic process.
Background
You've created a simple dynamic process - Emergency Process, and configured advanced properties in it.
What if part of the Emergency Process (dynamic process) follows a sequential and predictable path? You can model that part as a structured process which your dynamic process calls. In the emergency room example, suppose the surgery process follows a sequential process flow. You can model the surgery process as a structured process and call it from the Emergency dynamic process.
What Do You Need?
- Access to an Oracle Integration Cloud instance
- Sign-in credentials (user name and password)
- Access to the Emergency application that you created and configured in the Learn Dynamic Process Basics and Explore Advanced Dynamic Process Concepts tutorials
Create
a Structured Process
- From the Emergency application in design time, click the Application Home tab.
- Click Create, then New Process.
- In the Create Process dialog box, enter
Surgery Process
in the Name field, and select Message in the Select a Pattern field. Deselect Create Immediately and click Create.The two processes in the Application Home tab have different icons to indicate dynamic versus structured processes.
Description of the illustration er-example-structured1.png
Add
Human Tasks
- Open the Surgery Process.
- Insert an Approve human task. Drag and drop an Approve human
task from the Elements palette onto the process flow. Position
it where you want to add it. Double-click the task's name and
enter
Patient Consent
. - Insert a Submit human task. Drag and drop a Submit human
task from the Elements palette onto the process flow. Position
it where you want to add it. Double click the task's name and
enter
Surgery Tasks
. - Modify properties for the Submit human task.
- Click Surgery tasks. Click Menu
and then select Open Properties.
- In the properties pane, select Is Draft. The Surgery tasks turns grey. This means that it is just a placeholder for the surgery tasks to be configured later.
- Click Collapse Pane
to collapse the properties pane.
Description of the illustration er-example-structured2.png
- Click Surgery tasks. Click Menu
Edit
the Process' Swimlane
Edit the process' swimlane to assign a role responsible for performing each task within the process. In the Surgery Process, let us change the process' swimlane to a surgeon role.
- Select Process Owner and click Edit.
- In the implementation pane, click Add Role
next to the Role field.
In the Create Role dialog box, enter
Surgeon
and click OK.Description of the illustration er-example-structured3.png - Click Collapse Pane to collapse the implementation pane and save your changes.
Associate
a Form with the Approve Human Task
- Click the Patient Consent human task.
- Click Menu
and select Open Properties to open the related properties pane.
- Click the Browse icon next to the Form field to search for PatientForm.
- Select PatientForm and click OK.
- In the Presentation field, select Surgery.
Description of the illustration er-example-structured4.png - Collapse the implementation pane to save your changes.
Define
the Process Start and End Events
- Click the Start Message event.
- Click Open Properties, and then click Configure for Define Interface.
- In the Arguments Definition table of the Configure
dialog box, click Add to enter two arguments
as follows:
- Name:
FirstName
and Type: string - Name:
LastName
and Type: string
- Name:
- Select the End Message event and repeat the steps from 1-3.

Configure
Data Associations for Process Start and End Events
Define data associations for the Surgery Process' start and end events to define what payload passes onto the process start event and what data passes out of the process end event.
- Click the Start Message event.
- Click Menu
and then select Open Data Association to open the Data Association editor.
- Map
FirstName
topatientFormDataObject.firstName
, andLastName
topatientFormDataObject.lastName
.Description of the illustration er-example-structured6.png - Click Apply.
- Click the End Message event, and repeat step 2.
- Map
patientFormDataObject.firstName
toFirstName
, andpatientFormDataObject.lastName
toLastName
. - Click Apply.
Call
the Structured Process in the Dynamic Process
- Return to the dynamic process by selecting the Emergency Process tab.
- Change the Surgery activity's type.
Click the Surgery activity and click More. Select Change Type, and then click Process Activity. Notice that its activity icon now shows a process rather than a human task.
- Edit the Surgery activity's properties (Implementation).
Select SurgeryProcess in the Process field. Select Start in the Start Event field. Leave Non blocking deselected, which means that the dynamic process will wait for the structured process instance to complete to continue. Deselect the Repeatable and Manually Activated markers.
Description of the illustration er-example-structured7.png - Set data association now that the activity has changed type. Use auto mapping for input and output.
- Click Apply.
Try
Out the Structured Process in Runtime
Before you try out the structured process in runtime, you've to test activate the Emergency application to validate, and make it available in runtime.
- Click Test.
If the validation is successful, proceed to the next step. If any validation issues are listed, correct the issues and click Test again.
- Click Activate.
From the Activate to Test dialog box, leave Add Me to All Roles selected, and click Activate. A message displays that the application activated successfully.
- Click Try in Test Mode. A new test mode browser tab opens, and the navigation pane now displays runtime options.
- Click My Apps, then create and open the
Emergency dynamic process instance. Notice that the Surgery
activity shows a structured process icon in the Activities
list.
Description of the illustration er-example-structured8.png - Select Inbox in the navigation pane. Typically, the surgeon would be accessing an assigned task from a structured process like the Surgery process from the Inbox rather than from within the dynamic process, although knowledge workers can open structured process tasks from either the Inbox or Dynamic Process.
- Open the Emergency task whose process is Surgery Process. Click Approve and the task is completed.
- Select Dynamic Processes in the navigation pane and reopen the topmost instance. The Surgery task no longer appears, since you completed it through the Inbox. Click the Audit tab and you can see (and open) the just completed Surgery process activity.
Now that you've test activated the application, let's try out the Surgery process in runtime to see how it works.