We now have a conditional transition to be used in case the
supervisor does not approve the expense report. However, we have not defined
the Review Report activity. You will define this activity as a screenflow
similar to the Submit Report screenflow.
Since the report instance variable is already defined, the process
will be simpler
To define the Review Report activity:
- Right-click on the Review Report interactive activity, and
click
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
New Screenflow wizard 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
No.
- Click
Next.
The wizard finishes with a "Screenflow created succesfully"
message.
- Click
Finish, and then click
OK to accept the default when you are asked to
select a location for the new screenflow.
- Back in the
Main Task dialog box, click
Argument Mapping.
The
Argument Mapping dialog box 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 now 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.