Prerequisites:
You completed the steps in the process app tutorial (see the
SBM Composer Guide,
Step 1: Create an Orchestration, and
Step 2: Create a Synchronous Pre-Transition Orchestration
Workflow.
In this exercise, you use the
Action Wizard to create the
SynchAfter orchestration workflow. SynchAfter is a synchronous
post-transition orchestration workflow. When SynchAfter is invoked from the
Submit transition, it appends the text in the
Title box of the transition page before the
state form loads. The new appended text appears in the
Title box on the state form.
To create a synchronous post-transition
orchestration workflow:
-
In App Explorer, under the
Application Workflows heading, select
MyAppWorkflow.
-
In the application workflow editor, right-click the
Submit transition, and then select
Show Actions.
-
On the
Actions tab of the Property Editor, click
New.
The
Action Wizard asks, "Which type of
action do you want to execute?"
-
From the list of action types in the
Step 1 box, select
Orchestration Workflow.
-
In the
Step 2 box, click the
and continue executing (asynchronous) link,
select
and wait for reply (synchronous) from the
list, and then click
Next.
The
Action Wizard asks, "When do you want
to call the orchestration workflow?"
-
In the
Step 1 box, select
After, do not change anything in the
Step 2 box, and then click
Next.
The
Action Wizard asks, "Which
orchestration workflow do you want to call?"
-
In the list under
Step 1, select
(Add new workflow...).
-
In the
Event with Reply dialog box that opens:
-
Change the
Name to "MyOrchWFWR2" (which is
short for MyOrch Workflow With Reply #2).
-
From the
Orchestration list, select
MyOrch.
-
In the
Workflow box, change the name to
SynchAfter.
-
In the
Fields used by event column, select the
Title check box.
-
In the
Fields returned by event column, select
the
Title check box.
-
Click
OK.
-
In the
Action Wizard, click
Finish.
The action is listed on the
Actions tab of the Property Editor.
In addition, in App Explorer, under the
MyOrch heading,
SynchAfter appears under
Orchestration Workflows, and
MyOrchWFWR2 appears under the
MyApp heading, under
Orchestration Links.
-
In App Explorer, under
MyOrch, under
Orchestration Workflows, select
SynchAfter.
-
In the
New Items section of the
Step Palette, drag a
Calculate step onto the line between the
Start and
End steps.
-
On the
Options tab of the
Property Editor, in the
Target section, enter the following
expression:
EventNoticeWithReply\Extension\Title.
-
In the
Expression section, enter the following
function:
CONCAT(EventNoticeWithReply\Extension\Title,
" Appended by SynchAfter.")
Note: Be sure to include the space after the comma.
For more information about creating expressions, see
About the Expression Editor.
-
In the orchestration workflow editor, select the
End step.
-
On the
Data Mapping tab of the
Property Editor, expand the
Extension data element, locate the
Title data element, select the corresponding
cell in the
Source elements column, and then click the
down arrow.
-
In the
Select a source tool, expand
SynchAfter,
Inputs,
EventNoticeWithReply, and
Extension; select
Title; and then click
OK.
SynchAfter\EventNoticeWithReply\Extension\Title
appears in the
Source elements column.
-
In App Explorer, under the
MyApp heading, under
Orchestration Links, select
MyOrchWFWR2.
-
On the
MyOrchWFWR2 tab, the
Title check boxes of the
Fields used by event and
Fields returned by event columns should be
selected.
-
Continue to
Step 4: Create an Asynchronous Orchestration Workflow.