GithubHelp home page GithubHelp logo

miguelramosfdz / rhcs-travel-agency-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redhatdemocentral/rhcs-travel-agency-demo

0.0 1.0 0.0 11.6 MB

Project to showcase a travel industry booking application known as JBoss Travel Agency Demo in the Cloud.

Batchfile 3.45% Shell 3.40% Java 91.65% HTML 0.81% Visual Basic 0.69%

rhcs-travel-agency-demo's Introduction

App Dev Cloud with JBoss Travel Agency Demo

This demo is to install JBoss BPM Travel Agency Demo in the Cloud based on leveraging the Red Hat Container Development Kit (CDK) and the provided OpenShift Enterprise (OSE) image. It delivers a fully functioning JBoss BPM Travel Agency example containerized on OSE.

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 on Red Hat CDK OpenShift Enterprise image

  1. First complete the installation and start the OpenShift image supplied in the cdk-install-demo.

  2. Install OpenShift Client Tools if you have not done so previously.

  3. Download and unzip this demo.

  4. Add products to installs directory.

  5. Run 'init.sh' or 'init.bat' file. 'init.bat' must be run with Administrative privileges.

  6. Login to start exploring a travel agency booking project:

    http://rhcs-travel-agency-demo.10.1.2.2.xip.io/business-central ( u:erics / p:bpmsuite1! )

    http://rhcs-travel-agency-demo.10.1.2.2.xip.io/external-client-ui-form-1.0

Notes

Should your local network DNS not handle the resolution of the above address, giving you page not found errors, you can apply the following to your local hosts file:

$ sudo vi /etc/hosts

# add host for CDK demo resolution.
10.1.2.2   rhcs-travel-agency-demo.10.1.2.2.xip.io    rhcs-travel-agency-demo.10.1.2.2.xip.io

Booking a trip to Edinburgh (just one scenario)

  1. Build & deploy project.

  2. Start process with following data in start form (either from JBoss BPM Suite dashboard or using external client UI deployed at http://rhcs-travel-agency-demo.10.1.2.2.xip.io/external-client-ui-form-1.0:

Name: [your-name]

Email Adress: [any-email]

Number of Travellers: 2  

From Destination: London

To Destination: Edinburgh

Preferred Date of Departure: 2014-12-20

Preferred Data of Arrival: 2014-12-29

Other Details / Notes: [any-text]
  1. Login to http://rhcs-travel-agency-demo.10.1.2.2.xip.io/business-central
- login for admin role (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 -> "Task List" and click on it.

  3. Expand the right-side pane window. Click on the "Work" tab and click on "claim" to claim the task.

  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.3 - JBoss BPM Suite 6.3.0 and JBoss EAP 6.4.7 with travel agency process installed on Red Hat CDK.

  • v1.2 - JBoss BPM Suite 6.2.0-BZ-1299002 on JBoss EAP 6.4.4 with travel agency process installed on Red Hat CDK.

  • v1.1 - JBoss BPM Suite 6.2.0-BZ-1299002 on JBoss EAP 6.4.4 with travel agency process updates installed on Red Hat CDK using OpenShift Enterprise image.

  • v1.0 - JBoss BPM Suite 6.2.0-BZ-1299002 on JBoss EAP 6.4.4 with travel agency installed on Red Hat CDK using OpenShift Enterprise image.

Install video

OSE Pod

OSE Build

Agency Process

Calculate Process

Compensation

Special Trips UI Form

Started Process

rhcs-travel-agency-demo's People

Contributors

eschabell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.