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.
There are four options available to you for using this demo; local, Docker, Openshift Online and Red Hat CDK OpenShift Enterprise.
The following software is required to run this demo:
- JBoss EAP 7.0 installer
- JBoss BPM Suite 6.4.0.GA deployable for EAP 7
- Git client
- Maven 3.2+
- 7-Zip (Windows only): to overcome the Windows 260 character path length limit, we need 7-Zip to unzip the BPM Suite deployable.
-
Add products to installs directory. For example download and add BPMS installer jar into the installs directory.
-
Run 'init.sh' or 'init.bat' file. 'init.bat' must be run with Administrative privileges.
-
Start JBoss BPMS Server by running 'standalone.sh' or 'standalone.bat' in the /target/jboss-eap-7.0/bin directory.
-
Login to http://localhost:8080/business-central
- login for admin and other roles (u:bpmsAdmin / p:bpmsuite1!)
Running this demo in a container on any OpenShift Container Platform is available at Red Hat Demo Central.
The following steps can be used to configure and run the demo in a container
-
Add product installer to installs directory. For example download and add BPMS installer jar into the installs directory.
-
Run the 'init-docker.sh' or 'init-docker.ps1' file.
-
Start the container:
docker run -it -p 8080:8080 -p 9990:9990 jbossdemocentral/bpms-travel-agency-demo
-
Login to http://<DOCKER_HOST>:8080/business-central
- login for admin and other roles (u:bpmsAdmin / p:bpmsuite1!)
Note: Replace localhost with DOCKER_HOST when it appears in other locations within the documentation
Additional information can be found in the jbossdemocentral docker developer repository
-
Build & deploy project.
-
Start process with following data in start form (either from JBoss BPM Suite dashboard or using external client UI deployed at http://localhost:8080/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]
- login for admin role (u:erics / p:bpmsuite1!)
-
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.
-
Navigate to the "Tasks" tab -> "Task List" and click on it.
-
Expand the right-side pane window. Click on the "Work" tab and click on "claim" to claim the task.
-
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.
-
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.
-
Check the logs and you will see that the process has been compensated.
-
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....
-
For details on demoing the compensation aspects of the Travel Agency demo project, see docs/compensation-howto/README-COMPENSATION.md
-
How to help the travel industry take bookings into the Cloud
-
How to help the travel industry take bookings into the Cloud
-
7 Steps to Your First Process with JBoss BPM Suite Starter Kit
-
A Micro Services Migration Story with JBoss BPM Travel Agency
-
Webinar - How to Excite the Travel Industry with a BPM Story
-
Slides from webinar - How to excite the travel industry with a BPM story
See the tagged releases for the following versions of the product:
-
v1.10 - JBoss BPM Suite 6.4.0.GA on JBoss EAP 7.0.0.GA.
-
v1.9 - JBoss BPM Suite 6.3.0.GA on JBoss EAP 6.4.7.
-
v1.8 - JBoss BPM Suite 6.2.0-BZ-1299002 on JBoss EAP 6.4.4 with travel agency installed and RH CDK on OSE Cloud install option.
-
v1.7 - JBoss BPM Suite 6.2.0-BZ-1299002 on JBoss EAP 6.4.4 with travel agency installed.
-
v1.6 - JBoss BPM Suite 6.2, JBoss EAP 6.4.4 and OSE aligned containerization.
-
v1.5 - JBoss BPM Suite 6.2, JBoss EAP 6.4.4 and travel agency installed.
-
v1.4 - JBoss BPM Suite 6.1 with travel agency installed.
-
v1.3 - JBoss BPM Travel Agency with automated task reassignment.
-
v1.2 - JBoss BPM Travel Agency with one-click install on bpmPaaS.
-
v1.1 - JBoss BPM Suite 6.0.3 with optional docker installation.
-
v1.0 - JBoss BPM Suite 6.0.3 and updated travel agency demo with compensation features.
-
v0.2 - moved to JBoss Demo Central, updated windows init.bat support.
-
v0.1 - JBoss BPM Suite 6.0.3 and travel agency demo installed.