Defining the Review Report Activity

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:

  1. Right-click on the Review Report activity, and click Main Task . The Main Task dialog box appears.
  2. In the Implementation Type section select Screenflow from the drop-down list. The Related Screenflow section appears.
  3. Click New. The Screenflow Information dialog appears.
  4. In the Name field, enter Review Report, and click Next. The Select Instance Variables page of the wizard appears.
  5. The report variable should be set as follows:
    In Out
    Yes Yes

    All others should be set to No.

  6. Click Next. The wizard finishes with a "Screenflow created successfully" message.
  7. Click Finish, and, when prompted for a location for the new screenflow, click OK to accept the default .
  8. Back in the Main Task dialog, click Argument Mapping. The Argument Mapping dialog appears.
  9. 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.
  10. 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.
  11. 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.