Sun GlassFish Web Space Server 10.0 Administration Guide

Using the Expense Report Portlet

The Expense Report widget models the expense reports process that is typical in any large organization. An Expense Report is a report comprising details of the expenses (such as business travel, relocation, broadband bills claim) incurred by an employee that can be reclaimed from the organization.

An Expense Report created by employees can be approved by their superior. Users available to the system are mapped to either the Employee role or the Manager role. Consider the following example:

Paul Tester (Employee) submits an Expense Report for a business trip. Mary Manager (Manager) verifies and approves the Expense Report.

    The following is the process involved:

  1. Paul Tester submits an Expense Report. Paul performs the following steps to submit his report:

    1. Paul selects the expense category, and types an expense amount and description and saves the report. The system assigns a unique expense ID to the report.

    2. Paul reviews the report summary.

    3. Paul submits the saved report for approval by his manager.

  2. Mary Manager verifies the details of the Expense Report. She can either approve or reject the report.

The following procedures explain how to submit and approve an expense report:

ProcedureTo Submit an Expense Report

To access the Expense Report portlet, you need to select the Edit Preferences button from the menu controls and enable the JavaCAPS Workflow engine. The Workflow engine service needs to be available in order to use the Expense Report portlet.

  1. Log in to Web Space Server as Paul Tester.

  2. Click the Add a New Expense Report link.

  3. Type a description for the Expense Report.

    Type the values for Item Description, Amount, and Date fields. Click Add Item to add a new row.

    Figure 4–1 To Submit an Expense Report

    To Submit an Expense Report

  4. Click Save Report.

  5. Click the Go back to Report Summary link to view the report summary.

    The summary page displays the Report No., Description, Submission Date, Amount, and the Status.

    Figure 4–2 To Submit an Expense Report

    To Submit an Expense Report

  6. Click the number under Report No.

    The report is enabled for submission.

    Figure 4–3 To Submit an Expense Report

    To Submit an Expense Report

  7. Click Submit Report.

    The report is submitted for approval. The Status of the report changes to Pending.

    Figure 4–4 To Submit an Expense Report

    To Submit an Expense Report

ProcedureTo Approve an Expense Report

  1. Log in to Web Space Server as Mary Manager.

    The report submitted by Paul is displayed under the List/History of Expense Reports Raised by Reportees section in the Expense Report portlet.

    Figure 4–5 To Approve an Expense Report

    To Approve an Expense Report

  2. Click the report ID.

    Details of the submitter are displayed. Also, the Approve Report and Reject Report buttons become active.

    Figure 4–6 To Approve an Expense Report

    To Approve an Expense Report

  3. Click the Approve Report button to approve the report.