Defining the Review Report Activity

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:

  1. Right-click on the Review Report interactive 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 New Screenflow wizard 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 No.

  6. Click Next. The wizard finishes with a "Screenflow created succesfully" message.
  7. Click Finish, and then click OK to accept the default when you are asked to select a location for the new screenflow.
  8. Back in the Main Task dialog box, click Argument Mapping. The Argument Mapping dialog box 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 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.