Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

AppDev in the Cloud example showcasing JBoss BPM Suite with JBoss Data Virtualization solution for a travel agency booking workflow with disparate data sources for existing data model after merging with a second travel agency.

Notifications You must be signed in to change notification settings

redhatdemocentral/rhcs-travel-agency-acquisition-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppDev in the Cloud with Travel Agency Acquisition

This demo is to install a Travel Agency process driven application in the Cloud based on the OpenShift Container Platform (OCP). It contains multiple web services for looking up data for the process and rules to calculate pricing. Furthermore, there are several tasks that can be activated to evaluate pricing and to review the final booking data before completing the booking. After acquiring a sister travel agency, our solution needs to remain online for the coming booking season, but we want to leverage the existing data model in place while linking booking information back to both travel agencies back-end data stores. Using JBoss Data Virtualization we demonstrate how to update data results in both backing data stores, with results being viewable directly in JBoss BPM Suite BAM Dashboards. The backing services make use of disparate data sources integrated and exposed as services for use in this project.

This is an online employee travel booking process project. It contains multiple web services for looking up data for the process and rules to calculate pricing. Furthermore, there are several tasks that can be activated to evaluate pricing and to review the final booking data before completing the booking.

Install Travel Agency Acquisition on OpenShift

  1. (OPTIONAL) First ensure you have an OpenShift container based installation, such as one of the following installed first:
  1. Download and unzip this demo.

  2. Add products to installs directory. For example download and add BPMS installer into the installs directory.

  3. Run 'init.sh':

   # The installation needs to be pointed to a running version
   # of OpenShift, so pass an IP address such as:
   #
   $ ./init.sh 192.168.99.100  # example for OCP.
  1. Log in to Travel Agency Acquisition project to start exploring an online bookings application (the address will be generated by the init script):
  1. Create custom Dashboard entry for monitoring the external JBoss DataVirt virtualized DB views:

    - select menus Dashboards --> Business Dashboards 
    
    - select Administration -->  External Connections 
    
    - select Create New Datasource and select radio box Custom Datasource
    
    - fill in form as follows:
    
        - Name: TravelVDB
    
        - Url:  jdbc:teiid:TravelVDB@mm://localhost:31100
    
        - DB Driver Class:  select Teiid
    
        - User:  teiidUser
    
        - Password:  admin_24
    
        - Test query:  select 1
    
    - select Check Datasource, if all goes well then Save this configuration.
    
    - select in Workspace pulldown menu top left the entry 'Flight and Hotel Bookings' to view virtualized tables and data.
    
    - monitor these when running process instances.
    
    
  2. Submit and process a booking from customer booking form (see Booking a Trip below):

Datasource config

Datasource tables

Datasource 06

Datasource 07

  1. Want to build the Travel Agency demo from scratch? Try this hands-on online workshop.

Booking a trip

  1. Assumes you did install and setup as described above.

  2. Start process with following data in start form (either from JBoss BPM Suite dashboard or using external client UI deployed at:

Name: [your-name]

Email Adress: [any-email]

Number of Travellers: 2 

From Destination: NYC     

To Destination: Denver

Preferred Date of Departure: 2015-06-07

Preferred Data of Arrival: 2015-06-10

Other Details / Notes: [any-text]
  1. Login to JBoss BPM Suite business central:
- OCP example: http://rhcs-travel-agency-aquisition-appdev-in-cloud.192.168.99.100.nip.io/business-central ( u:erics / p:bpmsuite1! )
  1. Two web services will be run and a sub-process to calculate the cost before deciding it is not needed that this booking be reviewed on pricing, so you will find a task 'Employee Booking' for you to process.

  2. Navigate to the "Tasks" tab and click on it. From the task in the list, click on the "Lock" icon to claim the task.

  3. Click on the "Work" tab from the resulting right-side pane window that opened.

  4. Fill in the form provided for the task, it allows review of all the booking data submitted, generated by services and calculated by the rules. You can request a review to send it back for a pricing review or check the completed box to finish the task and process (isBookingConfirmed). All tasks have automated reassignment, meaning if not completed within 1 minute they will be put back into the group.

  5. Enter credit card details (beginning with 1234...) for compensation to be triggered., Expiry details of the card (e.g. 12/12) and your full name.

  6. Check the logs and you will see that the process has been compensated.

  7. To trigger different path for successful booking of Flights, just change the 'Credit Card details' to use any card number that does not begin with 1234....

  8. For details on demoing the compensation aspects of the Travel Agency demo project, see docs/compensation-howto/README-COMPENSATION.md

Supporting Articles

Released versions

See the tagged releases for the following versions of the product:

  • v1.0 - OpenShift Container Platform 3.7, JBoss EAP 7.0, JBoss BPM Suite 6.4, JBoss DataVirt 6.3 and travel agency acquisition project.

OCP Project

OCP Deployed

Datasource 08

Datasource 06

Datasource 09

About

AppDev in the Cloud example showcasing JBoss BPM Suite with JBoss Data Virtualization solution for a travel agency booking workflow with disparate data sources for existing data model after merging with a second travel agency.

Resources

Stars

Watchers

Forks

Packages

No packages published