Presentations can be used directly from the process, but normally
they are used by
screenflows, which are a specialized kind of process for user
interaction sequences. Screenflows are in turn called from the main process.
-
In the process design editor ,
right-click on the Create Expense Report activity, and click
from the
context menu.
The
Main Task dialog box appears.
- In the
Implementation Type section, select
Screenflow from the drop-down list.
- In the
Related Screenflow section, click
New.
The
New Screenflow wizard appears.
- In the
Name field, enter
Submit Report, and click
Next.
The
Select Instance Variables page of the wizard
appears.
- The
reportArg variable should be set as follows:
All others should be set to
No.
- Click
Next.
The
Screenflow out - Process in Argument Mapping
page appears.
- Verify that this page has no entries, and click
Next.
The wizard finishes, and you should see the "Screenflow
created successfully" message.
- Click
Finish.
The wizard closes.
- Now specify the location of where the screenflow will be
placed in the
Project Navigator. Click
OK to accept the default location shown, under
Processes.
- Click
OK in the
Main Task dialog box.
The dialog box closes and an editor opens with the Submit
Report screenflow diagram. The Begin and End activities are automatically
included, as when a new process is created.
- In Instance section of the
Variables window, add an instance variable named
reportSf, of type ExpenseReport.
This instance variable will hold an ExpenseReport object during
the life of the screenflow. We added the
Sf suffix to make it easier to identify as a
screenflow instance variable, as opposed to the process instance variable
report.
Note that this is not an ALBPM convention and is not required.
- Right-click on the
reportSf instance variable and click
(
), and then right-click again and click
(
).
The
reportSf instance variable will receive the value of
the incoming argument
reportSfArg, while the outgoing argument
reportSfArg will take the value of the
reportSf instance variable. You can check this by
right-clicking on the Begin or End activities and clicking on
.
- Save your changes.
You have now created the Submit Report screenflow, and set this
screenflow as the main task of the Create Expense Report activity. You still
need to design the screenflow, and will do this in the next task.