You have a conditional transition to be used in case the
supervisor does not approve the expense report, and you have the presentation
that the supervisor is to use. Here we implement the Review Report activity as a
screenflow like the one we created for the Submit Report activity.
In this case, the report process variable is already defined, so the
process is simpler.
To define the Review Report activity:
- Right-click on the Review Report activity, and click
Main Task
.
The
Main Task dialog box appears.
- In the
Implementation Type
section select
Screenflow from the drop-down list.
The
Related Screenflow section appears.
- Click
New.
The
Screenflow Information dialog appears.
- In the
Name field, enter
Review Report, and click
Next.
The
Select Instance Variables page of the wizard
appears.
- The
report variable should be set as follows:
All others should be set to
No.
- Click
Next.
The wizard finishes with a "Screenflow created
successfully" message.
- Click
Finish, and, when prompted for a location for the new screenflow, click
OK to accept the default .
- Back in the
Main Task dialog, click
Argument Mapping.
The
Argument Mapping dialog appears.
- Verify that the
Review Report In page shows the following:
| Review Report's input arguments
|
|
ExpenseReport's instance
variables
|
| reportArg
|
=
|
report
|
Here,
reportArg is the incoming argument to the
screenflow's Begin activity, while
report is the process instance variable that will be
passed to it.
- Verify that the
Review Report Out page shows the following:
| ExpenseReport's instance
variables
|
|
Review Report's output arguments
|
| report
|
=
|
reportArg
|
Again,
report is the process instance variable, while
reportArg is now the screenflow's
outgoing argument to that will be returned to the calling
activity.
- Click
OK, then
OK again in the
Main Task dialog box.
A design editor opens for the Review Report screenflow.
You have created the Review Report screenflow, and set this screenflow
as the main task of the Review Report activity. You will design the screenflow
in the next task.