In this exercise, you add an event without reply as a transition
action on the
Close transition of
MyAppWorkflow.
Asynch is an asynchronous orchestration
workflow. When
Asynch is invoked from the
Close transition, it creates a new item in
MyOtherAppProject. The
Title box of the new item contains the text that
was added by the
SynchBefore and
SynchAfter orchestration workflows and some
additional text.
To create an event without reply:
-
Add a second application workflow called
MyOtherAppWorkflow:
-
In App Explorer, right-click the
Application Workflows heading, and then
select
Add New Workflow.
-
On the
General tab of the Property Editor, change
the
Name field to
MyOtherAppWorkflow, and then press TAB.
-
In App Explorer, under the
Application Workflows heading, select
MyAppWorkflow.
-
In the application workflow editor, right-click the
Close transition, and 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.
-
Without changing anything, click
Next.
The
Action Wizard asks, "What do you want
to affect?"
-
Without changing anything, click
Next.
The
Action Wizard asks, "Which condition do
you want to check?"
-
Without changing anything, click
Next.
The
Action Wizard asks, "Which
orchestration workflow do you want to invoke?"
-
In Step 1, select
(Add new workflow...).
Close appears and is selected in the
Step 1 list.
-
Without changing anything in the
Step 2 box, click
Finish.
A new icon appears next to the transition name in the application
workflow editor indicating that an action is associated with the transition.
The action is also listed on the
Actions tab of the Property Editor.
In addition, in App Explorer, under the
MyOrch heading,
Close appears under
Orchestration Workflows and
MyAppEventDefinition appears under
Application Links.
-
In App Explorer, under
Application Links, select
MyAppEventDefinition.
-
On the
General tab in the Property Editor, change the
Name to
MyOrchWFNR (which is short for MyOrch Workflow
No Reply), and then press the Tab key.
-
Under
MyOrch, under
Orchestration Workflows, select
Close.
-
On the
General tab of the Property Editor, change the
Name to
Asynch, and then press the Tab key.
-
In the
New Items section of the
Step Palette, drag and drop a
Calculate step onto the line between the
Start and
End steps.
-
On the
Options tab in the Property Editor, in the
Target section, enter the following
expression:
EventNotice\Extension\Title.
-
In the
Expression section, enter the following string
function:
CONCAT(EventNotice\Extension\Title," This
issue was created by Asynch.")
Note: Be sure to include the space after the comma.
For more information about creating expressions, see
About the Expression Editor.
-
In the
New Items section of the
Step Palette, drag a
Service step onto the line between the
Calculate and
End steps.
sbmappservices72 appears under
Web Services, under the
MyOrch heading.
SBM Composer
automatically adds the
SBM Web
Service (sbmappservices72) to new orchestrations. (For more information, see
the
SBM Web Services Developer's
Guide.)
-
On the
General tab of the Property Editor, from the
Service list, select
sbmappservices72.
Note: You can also add another Web service by selecting
(add new service...) on the
Service menu. In the
Web Service Configuration dialog box that
opens, select the Web service's WSDL file on the
WSDL menu or click the browse button.
-
From the
Operation menu, select the
CreatePrimaryItem Web service operation.
-
On the
Data Mapping tab, expand the
project data element, locate the
internalName data element, and then select the
corresponding cell in the
Default value column.
-
In the
Default value column, enter the following
text:
USR_MYOTHERAPP.MYOTHERAPPPROJECT.
This is the name of the project into which the new item will be
submitted.
-
Expand the
item 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
Asynch,
Inputs,
EventNotice, and
Extension; select
Title; and then click
OK.
-
Continue to
Step 5: Validate the Process App.