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. To do so, you will first need to create the Review
Report presentation.
The Review Report Presentation is similar to the Submit Report
presentation, except that it also allows the supervisor to accept or reject the
expense report.
To create the Review Report Presentation:
- In the Project Navigator, right-click on the ExpenseReport BPM
Object (
), and click
(
).
The
Presentation Wizard appears.
- Enter
ReviewReport in the
Presentation field.
- The ReviewReport presentation will be based on the
ExpenseReport BPM object. To select this, check the
From Template checkbox. Do not check the
BPM Preferences checkbox.
- Click
Next.
The
Presentation Referenced Attributes page of the
Presentation Wizard appears.
- In this dialog box you select the attributes which will be
shown as fields in the presentation. Select the attributes shown in the table
below, in the order shown.
| submittedBy
|
| submitDate
|
| description
|
| costCenter
|
| items[].description
|
| items[].date
|
| items[].amount
|
| total
|
| comments
|
| reviewedBy
|
| isApproved
|
Note that these are the same attributes as you specified in the
Submit Report presentation, plus the
reviewedBy and
isApproved attributes.
- Click
Finish.
The
ReviewReport presentation is created, and a
presentation editor is opened with it.
- Make sure the
Properties window is open in Studio.
- In the presentation, select the input text box in the
SubmittedBy row, and set the
Editable property to
No, by clicking on the property. The name of this field should
be
text0.
We set this so that the users of this presentation cannot change
the employee name.
- In the presentation, select the text field in the
Amount column.
The properties for the text field appear in the
Properties window. The
Name property of the text field should be
items_text2.
- Set the
Editable property to
No.
We set this so that the users of this presentation cannot
change expense amounts.
- Also select the text field for the total value and set the
Editable property to
No.
- Save your changes.
- To verify, click on the HTML Preview (
) icon in the presentation editor.
The ReviewReport presentation should look like this:
Figure 1. Review Report presentation
- Once you are satisfied that the presentation is correct, close
the presentation editor and save if necessary.