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

A baggage delivery application using BPM, form modeler, a bpm process, decisions table web, spreadsheet, dsl and bam all deployed in the cloud.

Notifications You must be signed in to change notification settings

redhatdemocentral/rhcs-baggage-delivery-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update: June 2018 moved to Gitlab.

App Dev Cloud with Baggage Delivery Demo

This demo is to install JBoss BPM Suite based vacation request application in the Cloud based on leveraging the OpenShift Container Platform (OCP). It delivers a fully functioning baggage delivery example containerized on OCP.

A baggage delivery service using BPM. A business friendly demo using form modeler, bpm process, decisions table web, spreadsheet, dsl and bam.

Install on OpenShift

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

  2. Download and unzip this demo.

  3. Download JBoss EAP & JBoss BPM Suite, add to installs directory (see installs/README).

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

   # 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.

Log in to JBoss BPM Suite to start exploring the baggage delivery application (the address will be generated by the init script):

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 OCP demo resulution
192.168.99.100   rhcs-baggage-delivery-appdev-in-cloud.192.168.99.100.nip.io 

If for any reason the installation breaks or you want a new JBoss BRMS installation, just remove the project rhcs-bpms-install-demo entry in the OpenShift console and re-run the installation.


Running the demo

Build the project then kick off the process. An initial form will show for first name, last name, flyer status {None, Bronze, Silver, Gold}, Country Code, Zip if in US and number of bags lost.

If in US, will pass in zip code to zip code web service. Only the following zip codes will return states. Any other zip will return Texas.

//Park Ridge, IL
zipCodes.put("60068", "IL");
	
//Honolulu, HI
zipCodes.put("96801", "HI");
	
//New York, NY
zipCodes.put("10001", "NY");
	
//Bethel, AK
zipCodes.put("99559", "AK");

After zip code service is called, the state field on passenger is used in web decision table to determine the cost of shipping. Next, a DSL is used to figure out a surcharge for AK and HI.

If not in US, county code is looked up in spreadsheet decision table and sets shipping and surcharge.

Finally, DSL is used to apply a promotion of free shipping and surcharge if passenger is of status Gold. You are then shown the route the process took and the variables to confirm shipping and surcharges are correct.

See support directory for included spreadsheet decision table ( NonUSShippingCost.xls) and docs directory for an overview presentation of the project.

Supporting Articles

Released versions

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

  • v1.1 - JBoss BPM Suite 6.4.0 and JBoss EAP 7.0.0 with baggage delivery installed and available on CDK with Minishift.

  • v1.0 - JBoss BPM Suite 6.4.0 and JBoss EAP 7.0.0 with OpenShift genereated routes and service URLs.

Where's my bag

Pod

App

Cloud Suite

About

A baggage delivery application using BPM, form modeler, a bpm process, decisions table web, spreadsheet, dsl and bam all deployed in the cloud.

Resources

Stars

Watchers

Forks

Packages

No packages published