Travel Approval Application

This document covers the following topics:


About the Sample Application

The Travel Support System (this is the name that you can see on the screen when executing the application) is a small sample application for NaturalONE. As a sample application, its focus is to show NaturalONE functionality rather than being a full-fledged travel support application.

The Travel Support System (TSS) allows you to request and approve business trips. Flights, hotels and even more external information such as cell phone expenses or car rentals can be entered with the trip request. For the destination, weather information can be queried. A manager can do both, request own trips as well as approve trips that have been requested by employees. After the manager has approved single or multiple requests, the manager can print an itinerary or receive the itinerary as a PDF file.

The usage of the travel approval application is described below.

Prerequisites

In order to use the sample application, Adabas Version 6.1.9 or above must be installed and started.

Installing the Sample Application

Install the sample application by clicking Travel Approval application on the welcome page. A new project named "Travel" will then be shown in the Project Explorer view. See also Installing the Sample Applications.

Defining the Use of an External Web Browser

You will now make sure that the sample application is executed in an external web browser and not in the internal web browser.

Start of instruction setTo define the use an external web browser

  1. From the Window menu, choose Preferences.

  2. Expand the General node and select Web Browser.

    The following page appears.

    Web browser

  3. Select the Use external web browser option button and choose the OK button.

Starting the Sample Application

You start the sample application by executing the program LOGIN.NSP in the TRAVEL library.

Start of instruction setTo start the sample application

  1. In the Project Explorer view, expand the project Travel.

  2. Expand the following nodes:

    1. Natural-Libraries

    2. TRAVEL

    3. SRC

  3. Scroll down until you see the program name LOGIN.NSP.

  4. Select LOGIN.NSP, invoke the context menu and choose Run As > Natural Application.

    The sample application is executed. Since you have specified so in the preferences, it is executed in an external browser window.

    Sample application

Logging in as an Employee for Requesting a Business Trip

You will now log in as an employee (with limited rights) and request a business trip.

Start of instruction setTo log in as an employee

  1. In the Please select a User name dialog, type "A" over the name that is currently shown in the drop-down list box.

    The drop-down list box opens, displaying the names of all employees and managers which start with the letter "A". This information comes from the Adabas demo database.

    Select user

  2. Select the name "ADKINSON DAVID".

    Adkinson

  3. Choose the Enter New Request button.

    The following screen appears. Here, you will enter your travel request.

    Travel plan

Entering a Travel Request with Flight and Hotel Information

You will now enter and submit your travel request. This includes the following information:

  • City and date for departure.

  • City and date for return flight.

  • Flight number.

  • Hotel name.

Start of instruction setTo enter a travel request

  1. In the Reason text box, enter the reason for your travel plans. For example:

    Reason

  2. Under Departure information, open the drop-down list box.

    City

  3. Select Toronto,Canada.

  4. Click on Pick a date which is shown to the right of the departure information.

  5. In the resulting Date Input dialog, select the desired date for your flight to Toronto (for example, February 21, 2012).

  6. Under Return information, open the drop-down list box.

    City

  7. Select Beijing,China.

  8. Click on Pick a date which is shown to the right of the return information.

  9. In the resulting Date Input dialog, select the desired date for your return flight from Beijing (for example, February 28, 2012).

    Flight dates

    You have now entered the basic information needed to make travel plans. Next, you will book a flight and a hotel.

  10. Under Flight Booking, open the drop-down list box.

    Select flight

  11. Select Continental Airlines Flight: #4207.

    The selected flight is shown under Travel Expenses.

    Travel expenses

  12. Under Hotel Booking, open the drop-down list box.

    Select hotel

  13. Select HILTON,150.

    The selected hotel is also shown under Travel Expenses, including the costs (7 nights * 150 = 1050). The total cost has also been updated (1827).

    Travel expenses

  14. Choose the Submit Request button.

    The Travel Expenses area is closed, and the My Travels area shows the travel details.

    My travels

    At the bottom of the screen, you can see a message informing you that the travel request has been accepted (pending approval), and that you can now either create a new request or log out.

Adding Additional Expenses to Your Travel Request

You will now add additional expenses from a CSV file to your travel request. This is just for demonstration purposes and you will delete these expenses before you log out.

Start of instruction setTo add additional expenses

  1. Under Other Expenses, choose the Upload .csv button.

    Other expenses

    The File Upload dialog appears.

    File upload

  2. Choose the Browse button.

  3. In the resulting Choose File to Upload dialog, navigate to the location of your Eclipse workspace. Here, you can find the project directory that has been created for your travel application.

    The demo CSV file which comes with the travel application is located in the Expenses folder of the project and has the name expenses_trip1.csv.

  4. Select the file expenses_trip1.csv and choose the Open button.

    The path to the selected file is shown in the File Upload dialog.

  5. In the File Upload dialog, choose the Upload button.

    The contents of the CSV file is shown under Travel Expenses.

    Travel expenses

    You will now delete the two items that were added from the CSV file.

  6. Select both lines (press SHIFT or CTRL to select the second line).

  7. Choose the Delete rows button.

  8. Log out by clicking on the Log-out link which is located at the top right of the screen.

    The logon screen containing the Please select a User name dialog is shown again.

Logging in as a Manager for Approving Travel Requests

In order to approve the travel request you have just entered, you will now log in as a manager.

Start of instruction setTo log in as a manager

  1. In the Please select a User name dialog, open the drop-down list box and select the name "ARCONADA PEDRO".

    For this user, an Approve Requests button is shown which is only available to managers.

    Arconada

  2. Choose the Approve Requests button.

    The following screen appears, listing the travel requests that are waiting for approval.

    Travel requests

Approving a Travel Request

After you have logged in as a manager, you can approve travel requests.

Start of instruction setTo approve a travel request

  1. Under Department (MGMT) statistics, open the drop-down list box for the different types of pie charts.

    Travel budget

  2. Select Pie Exploded Chart.

    A different chart is shown, indicating the total travel budget that is available for the department, and how much of the budget is currently requested.

  3. In the table at the bottom left of the screen (below the Submit approved requests button), double-click the row containing the employee name "DAVID ADKINSON".

    A check mark is now shown in front of the row, and a message is shown at the bottom of the screen informing you that you may submit the approved requests.

    Submit request

  4. Choose the Submit approved requests button.

    The following dialog appears, containing the travel details for David Adkinson.

    PDF or print

  5. Click on the PDF icon (PDF) at the top right of the dialog.

    When appropriate PDF viewing software such as Adobe Reader is installed, the PDF output is shown and you can print it.