├── installs ├── .gitignore └── README ├── projects ├── README ├── external-client-ui-form │ ├── WebContent │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ │ └── web.xml │ │ ├── error.html │ │ ├── success_response.html │ │ └── Home.jsp │ ├── src │ │ └── com │ │ │ └── externalui │ │ │ └── example │ │ │ ├── client │ │ │ └── jbpm │ │ │ │ └── interfaces │ │ │ │ └── Jbpm6Client.java │ │ │ └── SimpleServlet.java │ ├── README.md │ └── pom.xml ├── acme-data-model │ ├── src │ │ └── main │ │ │ └── java │ │ │ ├── acme │ │ │ └── service │ │ │ │ └── soap │ │ │ │ └── hotelws │ │ │ │ ├── package-info.java │ │ │ │ ├── clientsample │ │ │ │ └── ClientSample.java │ │ │ │ ├── CancelBookingResponse.java │ │ │ │ ├── GetAvailableHotel.java │ │ │ │ ├── BookHotelResponse.java │ │ │ │ ├── BookHotel.java │ │ │ │ ├── GetAvailableHotelResponse.java │ │ │ │ ├── CancelBooking.java │ │ │ │ ├── HotelWS.java │ │ │ │ └── HotelRequest.java │ │ │ ├── com │ │ │ └── jboss │ │ │ │ └── soap │ │ │ │ └── service │ │ │ │ └── acmedemo │ │ │ │ ├── package-info.java │ │ │ │ ├── clientsample │ │ │ │ └── ClientSample.java │ │ │ │ ├── CancelBookingResponse.java │ │ │ │ ├── ListAvailablePlanes.java │ │ │ │ ├── BookFlightsResponse.java │ │ │ │ ├── BookFlights.java │ │ │ │ ├── CancelBooking.java │ │ │ │ ├── ListAvailablePlanesResponse.java │ │ │ │ └── AcmeDemoInterface.java │ │ │ └── META-INF │ │ │ └── kmodule.xml │ └── pom.xml ├── acme-demo-hotel-service │ ├── src │ │ └── main │ │ │ ├── java │ │ │ └── acme │ │ │ │ └── service │ │ │ │ └── soap │ │ │ │ └── hotelws │ │ │ │ ├── package-info.java │ │ │ │ ├── impl │ │ │ │ ├── SessionIdentifierGenerator.java │ │ │ │ └── HotelWSImpl.java │ │ │ │ ├── CancelBookingResponse.java │ │ │ │ ├── GetAvailableHotel.java │ │ │ │ ├── BookHotelResponse.java │ │ │ │ ├── BookHotel.java │ │ │ │ ├── GetAvailableHotelResponse.java │ │ │ │ ├── CancelBooking.java │ │ │ │ ├── HotelWS.java │ │ │ │ └── HotelRequest.java │ │ │ └── webapp │ │ │ └── WEB-INF │ │ │ └── web.xml │ ├── pom.xml │ └── wsdl │ │ └── HotelWS_schema1.xsd ├── acme-demo-flight-service │ ├── src │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── jboss │ │ │ │ └── soap │ │ │ │ └── service │ │ │ │ └── acmedemo │ │ │ │ ├── package-info.java │ │ │ │ ├── impl │ │ │ │ ├── SessionIdentifierGenerator.java │ │ │ │ └── AcmeDemoInterfaceImpl.java │ │ │ │ ├── CancelBookingResponse.java │ │ │ │ ├── ListAvailablePlanes.java │ │ │ │ ├── BookFlightsResponse.java │ │ │ │ ├── BookFlights.java │ │ │ │ ├── CancelBooking.java │ │ │ │ ├── ListAvailablePlanesResponse.java │ │ │ │ └── AcmeDemoInterface.java │ │ │ └── webapp │ │ │ └── WEB-INF │ │ │ └── web.xml │ ├── pom.xml │ └── wsdl │ │ └── AcmeDemoService_schema1.xsd ├── fuseparent │ ├── ReadMe.txt │ ├── webendpoint │ │ ├── ReadMe.txt │ │ └── src │ │ │ └── main │ │ │ ├── resources │ │ │ └── log4j.properties │ │ │ └── java │ │ │ └── org │ │ │ └── blogdemo │ │ │ └── travelagency │ │ │ └── ListFlightBean.java │ ├── features │ │ ├── ReadMe.txt │ │ └── src │ │ │ └── main │ │ │ └── resources │ │ │ ├── log4j.properties │ │ │ └── features.xml │ ├── promotionhotel │ │ ├── ReadMe.txt │ │ └── src │ │ │ └── main │ │ │ ├── resources │ │ │ ├── log4j.properties │ │ │ ├── h2script │ │ │ │ └── hotelsqlscript.sql │ │ │ └── OSGI-INF │ │ │ │ └── blueprint │ │ │ │ └── blueprint.xml │ │ │ └── java │ │ │ └── org │ │ │ └── blogdemo │ │ │ └── travelagency │ │ │ └── promotionhotel │ │ │ ├── RandomHotelBean.java │ │ │ ├── ResortDataConvertor.java │ │ │ └── ResortInfo.java │ ├── hotelwebendpoint │ │ ├── ReadMe.txt │ │ └── src │ │ │ └── main │ │ │ ├── resources │ │ │ ├── log4j.properties │ │ │ └── OSGI-INF │ │ │ │ └── blueprint │ │ │ │ └── blueprint.xml │ │ │ └── java │ │ │ └── org │ │ │ └── blogdemo │ │ │ └── travelagency │ │ │ └── hotelwsendpoint │ │ │ └── ListHotelBean.java │ ├── bookingservice │ │ ├── ReadMe.txt │ │ └── src │ │ │ └── main │ │ │ ├── resources │ │ │ ├── log4j.properties │ │ │ ├── h2script │ │ │ │ ├── tables │ │ │ │ └── sqlscript │ │ │ ├── META-INF │ │ │ │ └── persistence.xml │ │ │ └── OSGI-INF │ │ │ │ └── blueprint │ │ │ │ └── blueprint.xml │ │ │ ├── java │ │ │ └── org │ │ │ │ └── blogdemo │ │ │ │ └── travelagency │ │ │ │ └── persistenceData │ │ │ │ ├── BookingVO.java │ │ │ │ ├── CancelBookingVO.java │ │ │ │ ├── DebugBean.java │ │ │ │ └── BookingService.java │ │ │ └── fabric8 │ │ │ └── test.txt │ ├── promotionflights │ │ ├── ReadMe.txt │ │ └── src │ │ │ └── main │ │ │ ├── resources │ │ │ ├── log4j.properties │ │ │ └── OSGI-INF │ │ │ │ └── blueprint │ │ │ │ └── blueprint.xml │ │ │ └── java │ │ │ └── org │ │ │ └── blogdemo │ │ │ └── travelagency │ │ │ └── promtionflights │ │ │ ├── RandomFlightBean.java │ │ │ ├── DataProcessor.java │ │ │ └── FlightInfo.java │ └── hotelbookingservice │ │ ├── ReadMe.txt │ │ └── src │ │ └── main │ │ ├── resources │ │ ├── log4j.properties │ │ ├── META-INF │ │ │ └── persistence.xml │ │ └── OSGI-INF │ │ │ └── blueprint │ │ │ └── blueprint.xml │ │ └── java │ │ └── org │ │ └── blogdemo │ │ └── travelagency │ │ └── hotelbookingservice │ │ ├── CancelBooking.java │ │ ├── Booking.java │ │ └── BookingService.java ├── instance-generator │ ├── src │ │ ├── main │ │ │ └── java │ │ │ │ ├── org │ │ │ │ └── jboss │ │ │ │ │ └── jbpm │ │ │ │ │ ├── api │ │ │ │ │ ├── Response.java │ │ │ │ │ ├── Jbpm6Client.java │ │ │ │ │ └── Task.java │ │ │ │ │ ├── bpmsClientMain.java │ │ │ │ │ └── impl │ │ │ │ │ └── bpmsClientVars.java │ │ │ │ └── META-INF │ │ │ │ └── MANIFEST.MF │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── jboss │ │ │ └── jbpm │ │ │ └── Jbpm6ClientITest.java │ ├── bpmsClient.json.v2 │ └── pom.xml └── pom.xml ├── support ├── installation-eap.variables ├── README ├── installation-bpms.variables ├── bpm-suite-demo-niogit │ ├── plugins.git │ │ ├── HEAD │ │ ├── info │ │ │ └── refs │ │ ├── objects │ │ │ ├── info │ │ │ │ └── packs │ │ │ └── pack │ │ │ │ ├── pack-59b16ea54f59eb0f343bcc06b691af1dc1929704.idx │ │ │ │ ├── pack-59b16ea54f59eb0f343bcc06b691af1dc1929704.pack │ │ │ │ └── pack-59b16ea54f59eb0f343bcc06b691af1dc1929704.bitmap │ │ ├── packed-refs │ │ └── config │ ├── system.git │ │ ├── HEAD │ │ ├── refs │ │ │ └── heads │ │ │ │ └── erics-uf-user │ │ ├── objects │ │ │ ├── 13 │ │ │ │ └── 242f658bb12faca60bde092009c584b30064c7 │ │ │ ├── 16 │ │ │ │ └── a01a4936fd467a1eda4a68700da4f646f46dda │ │ │ ├── 20 │ │ │ │ └── 44ed9ff5a8686cb5440dfd3ef18446d4cbc01d │ │ │ ├── 41 │ │ │ │ └── 7c36115594b4d075bd1428c7d14a8e27add1c1 │ │ │ ├── 73 │ │ │ │ └── 80164e4c2da4582da487612699c43e616e5dd8 │ │ │ ├── 74 │ │ │ │ └── 086761f5e0c29d8917039d7cac00d6833372ec │ │ │ ├── 80 │ │ │ │ └── a467e3c3f8220917165f683e5db3a5bd155f47 │ │ │ ├── info │ │ │ │ └── packs │ │ │ ├── 01 │ │ │ │ └── 702c6a2e9d32a6bfc5554dbc0e1e5581b7a97b │ │ │ ├── 0b │ │ │ │ └── 8269b5079f43a1efda1130a80852cdf29c7405 │ │ │ ├── 0c │ │ │ │ └── 82b99cddddbc8103463d89eb8295deaee675fb │ │ │ ├── 1b │ │ │ │ └── d9fafb5ced98a74956b2709b5b8684955c3ae6 │ │ │ ├── 3c │ │ │ │ └── c15db626f2b770d7886cb40feebbe675cad18a │ │ │ ├── 4e │ │ │ │ └── 7ae45f4b17494582b32d1924ffe15f4e81f557 │ │ │ ├── 5a │ │ │ │ └── d1e6f0b86022bd09fb8c270a5e6425b560edbc │ │ │ ├── 8f │ │ │ │ └── 6aa830143d75f0d574a529f801a179704c59a3 │ │ │ ├── 9e │ │ │ │ └── 785821c2ad88187bc82f2a5e74e92ea76bf2eb │ │ │ ├── a6 │ │ │ │ └── 60d4906aeb348e805ec605a50471cf0475e4e8 │ │ │ ├── ae │ │ │ │ ├── 51691d1c67f8b9bc7f29cf467027226dbf6172 │ │ │ │ └── 6850818d91023d7511793acd036a0517404254 │ │ │ ├── b1 │ │ │ │ └── 99c326e3c72f4e33cd76d7b6df2c838763c4ea │ │ │ ├── b6 │ │ │ │ └── a28e7be7ca07834f25ec3c81814254561d90ed │ │ │ ├── bc │ │ │ │ └── 705e32e8713a907b71596f0f75f2f287829097 │ │ │ ├── c2 │ │ │ │ └── 4f7f2a3448fcd84d43485384d00badad4c9a79 │ │ │ ├── db │ │ │ │ └── 4db66dd0677de032b6c400c4198f3729366fdd │ │ │ ├── f8 │ │ │ │ └── c755cf59319c1dd11d94a9250268edd7a66980 │ │ │ ├── fc │ │ │ │ └── bd235c258c53e688535ae6e654ed54a98dd90b │ │ │ └── pack │ │ │ │ ├── pack-095fb1d8df0c2b6f509b009697bac6673bf000e7.idx │ │ │ │ ├── pack-095fb1d8df0c2b6f509b009697bac6673bf000e7.pack │ │ │ │ └── pack-095fb1d8df0c2b6f509b009697bac6673bf000e7.bitmap │ │ ├── config │ │ ├── info │ │ │ └── refs │ │ └── packed-refs │ └── specialtripsagency.git │ │ ├── HEAD │ │ ├── objects │ │ ├── info │ │ │ └── packs │ │ └── pack │ │ │ ├── pack-511e0684c65896fa2054ba57d7abfa61f7073aa7.idx │ │ │ ├── pack-511e0684c65896fa2054ba57d7abfa61f7073aa7.pack │ │ │ └── pack-511e0684c65896fa2054ba57d7abfa61f7073aa7.bitmap │ │ ├── info │ │ └── refs │ │ ├── packed-refs │ │ ├── FETCH_HEAD │ │ └── config ├── fuse │ ├── data │ │ └── travelagency.mv.db │ ├── jmx.acl.whitelist.cfg │ ├── jmx.acl.whitelist.properties │ └── users.properties ├── data │ └── message.xml ├── CustomWorkItemHandlers.conf ├── userinfo.properties ├── windows │ ├── README │ └── unzip.vbs ├── application-roles.properties └── installation-bpms ├── docs ├── Demo Overview.odp ├── Demo Overview.pdf ├── demo-images │ ├── bpmsuite.png │ ├── cloud-sign.jpg │ ├── agency-process.png │ ├── announce-sign.jpg │ ├── digital-sign.jpg │ ├── mock-bpm-data.png │ ├── video-part-1.png │ ├── video-part-2.png │ ├── video-part-3.png │ ├── video-part-4.png │ ├── UISuccessScreen.png │ ├── process-designer.png │ ├── started-process.png │ ├── CompensatedProcess.png │ ├── SpecialTripsUIform.png │ ├── SuccessBookingLog.png │ ├── calculate-process.png │ ├── microservices-video.png │ ├── compensation-process.png │ ├── complete-booking-task.png │ └── CheckLogsForCompensationPath.png ├── fuse-images │ ├── fuse03-unsermq.png │ ├── fuse08-wsroute.png │ ├── fuse02-underapis.png │ ├── fuse04-msgbroker.png │ ├── fuse01-underruntime.png │ ├── fuse05-bookingroute.png │ ├── microserivces-arch.png │ ├── microservices-hotel.png │ ├── microserivces-scaling.png │ ├── microservices-flight.png │ ├── microservices-layers.png │ ├── microservices-arch-setup.png │ ├── microservices-design-ide.png │ ├── fuse06-cancelbookingroute.png │ ├── fuse07-promotionflightroute.png │ ├── microservices-booking-route.png │ └── microservices-cancel-booking-route.png └── compensation-howto │ └── README-COMPENSATION.md ├── .gitignore ├── .demo.yaml └── .demo-config.json /installs/.gitignore: -------------------------------------------------------------------------------- 1 | *.zip 2 | -------------------------------------------------------------------------------- /projects/README: -------------------------------------------------------------------------------- 1 | Directory to hold project. 2 | 3 | -------------------------------------------------------------------------------- /support/installation-eap.variables: -------------------------------------------------------------------------------- 1 | adminPassword=jbosseap1! 2 | -------------------------------------------------------------------------------- /support/README: -------------------------------------------------------------------------------- 1 | Directory to hold helper files if needed. 2 | 3 | -------------------------------------------------------------------------------- /support/installation-bpms.variables: -------------------------------------------------------------------------------- 1 | bpms.password=bpmsuite1! 2 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/plugins.git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/specialtripsagency.git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/refs/heads/erics-uf-user: -------------------------------------------------------------------------------- 1 | 4e7ae45f4b17494582b32d1924ffe15f4e81f557 2 | -------------------------------------------------------------------------------- /projects/external-client-ui-form/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/plugins.git/info/refs: -------------------------------------------------------------------------------- 1 | 3334f7d193f91b6e3480c2efef8c1f1207a9227b refs/heads/master 2 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/plugins.git/objects/info/packs: -------------------------------------------------------------------------------- 1 | P pack-8d09f8db7c0b29488b7b6e5325e8f4e5f13f7b96.pack 2 | 3 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/info/packs: -------------------------------------------------------------------------------- 1 | P pack-b17501fbe248ea8cfaaccacc0e7dc2173c5d6e44.pack 2 | 3 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/specialtripsagency.git/objects/info/packs: -------------------------------------------------------------------------------- 1 | P pack-41c4ca75afbc1c3135a08339d3a34faa434a647c.pack 2 | 3 | -------------------------------------------------------------------------------- /docs/Demo Overview.odp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/Demo Overview.odp -------------------------------------------------------------------------------- /docs/Demo Overview.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/Demo Overview.pdf -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | .metadata/ 3 | *.m4v 4 | .DS_Store 5 | RemoteSystemsTempFiles/ 6 | .settings/ 7 | .project 8 | .classpath 9 | *.jar 10 | -------------------------------------------------------------------------------- /docs/demo-images/bpmsuite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/bpmsuite.png -------------------------------------------------------------------------------- /docs/demo-images/cloud-sign.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/cloud-sign.jpg -------------------------------------------------------------------------------- /docs/demo-images/agency-process.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/agency-process.png -------------------------------------------------------------------------------- /docs/demo-images/announce-sign.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/announce-sign.jpg -------------------------------------------------------------------------------- /docs/demo-images/digital-sign.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/digital-sign.jpg -------------------------------------------------------------------------------- /docs/demo-images/mock-bpm-data.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/mock-bpm-data.png -------------------------------------------------------------------------------- /docs/demo-images/video-part-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/video-part-1.png -------------------------------------------------------------------------------- /docs/demo-images/video-part-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/video-part-2.png -------------------------------------------------------------------------------- /docs/demo-images/video-part-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/video-part-3.png -------------------------------------------------------------------------------- /docs/demo-images/video-part-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/video-part-4.png -------------------------------------------------------------------------------- /docs/fuse-images/fuse03-unsermq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/fuse03-unsermq.png -------------------------------------------------------------------------------- /docs/fuse-images/fuse08-wsroute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/fuse08-wsroute.png -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/plugins.git/packed-refs: -------------------------------------------------------------------------------- 1 | # pack-refs with: peeled fully-peeled 2 | 3334f7d193f91b6e3480c2efef8c1f1207a9227b refs/heads/master 3 | -------------------------------------------------------------------------------- /docs/demo-images/UISuccessScreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/UISuccessScreen.png -------------------------------------------------------------------------------- /docs/demo-images/process-designer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/process-designer.png -------------------------------------------------------------------------------- /docs/demo-images/started-process.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/started-process.png -------------------------------------------------------------------------------- /docs/fuse-images/fuse02-underapis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/fuse02-underapis.png -------------------------------------------------------------------------------- /docs/fuse-images/fuse04-msgbroker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/fuse04-msgbroker.png -------------------------------------------------------------------------------- /support/fuse/data/travelagency.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/fuse/data/travelagency.mv.db -------------------------------------------------------------------------------- /docs/demo-images/CompensatedProcess.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/CompensatedProcess.png -------------------------------------------------------------------------------- /docs/demo-images/SpecialTripsUIform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/SpecialTripsUIform.png -------------------------------------------------------------------------------- /docs/demo-images/SuccessBookingLog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/SuccessBookingLog.png -------------------------------------------------------------------------------- /docs/demo-images/calculate-process.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/calculate-process.png -------------------------------------------------------------------------------- /docs/demo-images/microservices-video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/microservices-video.png -------------------------------------------------------------------------------- /docs/fuse-images/fuse01-underruntime.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/fuse01-underruntime.png -------------------------------------------------------------------------------- /docs/fuse-images/fuse05-bookingroute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/fuse05-bookingroute.png -------------------------------------------------------------------------------- /docs/fuse-images/microserivces-arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/microserivces-arch.png -------------------------------------------------------------------------------- /docs/fuse-images/microservices-hotel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/microservices-hotel.png -------------------------------------------------------------------------------- /docs/demo-images/compensation-process.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/compensation-process.png -------------------------------------------------------------------------------- /docs/demo-images/complete-booking-task.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/complete-booking-task.png -------------------------------------------------------------------------------- /docs/fuse-images/microserivces-scaling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/microserivces-scaling.png -------------------------------------------------------------------------------- /docs/fuse-images/microservices-flight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/microservices-flight.png -------------------------------------------------------------------------------- /docs/fuse-images/microservices-layers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/microservices-layers.png -------------------------------------------------------------------------------- /docs/fuse-images/microservices-arch-setup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/microservices-arch-setup.png -------------------------------------------------------------------------------- /docs/fuse-images/microservices-design-ide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/microservices-design-ide.png -------------------------------------------------------------------------------- /docs/fuse-images/fuse06-cancelbookingroute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/fuse06-cancelbookingroute.png -------------------------------------------------------------------------------- /docs/demo-images/CheckLogsForCompensationPath.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/demo-images/CheckLogsForCompensationPath.png -------------------------------------------------------------------------------- /docs/fuse-images/fuse07-promotionflightroute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/fuse07-promotionflightroute.png -------------------------------------------------------------------------------- /docs/fuse-images/microservices-booking-route.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/microservices-booking-route.png -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/specialtripsagency.git/info/refs: -------------------------------------------------------------------------------- 1 | c1fecbbb72ae09fc98b4f63fe65468d137e28a7d refs/heads/master 2 | 7bc67efc5cde4b68e23f98ef4fc86dd23f6b7af5 refs/remotes/origin/master 3 | -------------------------------------------------------------------------------- /docs/fuse-images/microservices-cancel-booking-route.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/docs/fuse-images/microservices-cancel-booking-route.png -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/acme/service/soap/hotelws/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://soap.service.acme/HotelWS/") 2 | package acme.service.soap.hotelws; 3 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/plugins.git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | symlinks = false 3 | repositoryformatversion = 0 4 | filemode = true 5 | bare = true 6 | logallrefupdates = false 7 | precomposeunicode = true 8 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | symlinks = false 3 | repositoryformatversion = 0 4 | filemode = true 5 | bare = true 6 | logallrefupdates = false 7 | precomposeunicode = true 8 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/src/main/java/acme/service/soap/hotelws/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://soap.service.acme/HotelWS/") 2 | package acme.service.soap.hotelws; 3 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/specialtripsagency.git/packed-refs: -------------------------------------------------------------------------------- 1 | # pack-refs with: peeled 2 | dcd9eadb031d8b30c12b70319dc0dbcdc16e49d6 refs/heads/master 3 | 7bc67efc5cde4b68e23f98ef4fc86dd23f6b7af5 refs/remotes/origin/master 4 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/com/jboss/soap/service/acmedemo/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://service.soap.jboss.com/AcmeDemo/") 2 | package com.jboss.soap.service.acmedemo; 3 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/src/main/java/com/jboss/soap/service/acmedemo/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://service.soap.jboss.com/AcmeDemo/") 2 | package com.jboss.soap.service.acmedemo; 3 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/specialtripsagency.git/FETCH_HEAD: -------------------------------------------------------------------------------- 1 | 7bc67efc5cde4b68e23f98ef4fc86dd23f6b7af5 not-for-merge branch 'master' of file:///Users/erics/demo-projects/bpms/bpms-travel-agency-demo/support/bpm-suite-demo-niogit/specialtripsagency.git 2 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/01/702c6a2e9d32a6bfc5554dbc0e1e5581b7a97b: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/01/702c6a2e9d32a6bfc5554dbc0e1e5581b7a97b -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/0b/8269b5079f43a1efda1130a80852cdf29c7405: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/0b/8269b5079f43a1efda1130a80852cdf29c7405 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/0c/82b99cddddbc8103463d89eb8295deaee675fb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/0c/82b99cddddbc8103463d89eb8295deaee675fb -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/13/242f658bb12faca60bde092009c584b30064c7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/13/242f658bb12faca60bde092009c584b30064c7 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/16/a01a4936fd467a1eda4a68700da4f646f46dda: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/16/a01a4936fd467a1eda4a68700da4f646f46dda -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/1b/d9fafb5ced98a74956b2709b5b8684955c3ae6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/1b/d9fafb5ced98a74956b2709b5b8684955c3ae6 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/20/44ed9ff5a8686cb5440dfd3ef18446d4cbc01d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/20/44ed9ff5a8686cb5440dfd3ef18446d4cbc01d -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/3c/c15db626f2b770d7886cb40feebbe675cad18a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/3c/c15db626f2b770d7886cb40feebbe675cad18a -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/41/7c36115594b4d075bd1428c7d14a8e27add1c1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/41/7c36115594b4d075bd1428c7d14a8e27add1c1 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/4e/7ae45f4b17494582b32d1924ffe15f4e81f557: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/4e/7ae45f4b17494582b32d1924ffe15f4e81f557 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/5a/d1e6f0b86022bd09fb8c270a5e6425b560edbc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/5a/d1e6f0b86022bd09fb8c270a5e6425b560edbc -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/73/80164e4c2da4582da487612699c43e616e5dd8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/73/80164e4c2da4582da487612699c43e616e5dd8 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/74/086761f5e0c29d8917039d7cac00d6833372ec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/74/086761f5e0c29d8917039d7cac00d6833372ec -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/80/a467e3c3f8220917165f683e5db3a5bd155f47: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/80/a467e3c3f8220917165f683e5db3a5bd155f47 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/8f/6aa830143d75f0d574a529f801a179704c59a3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/8f/6aa830143d75f0d574a529f801a179704c59a3 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/9e/785821c2ad88187bc82f2a5e74e92ea76bf2eb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/9e/785821c2ad88187bc82f2a5e74e92ea76bf2eb -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/a6/60d4906aeb348e805ec605a50471cf0475e4e8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/a6/60d4906aeb348e805ec605a50471cf0475e4e8 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/ae/51691d1c67f8b9bc7f29cf467027226dbf6172: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/ae/51691d1c67f8b9bc7f29cf467027226dbf6172 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/ae/6850818d91023d7511793acd036a0517404254: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/ae/6850818d91023d7511793acd036a0517404254 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/b1/99c326e3c72f4e33cd76d7b6df2c838763c4ea: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/b1/99c326e3c72f4e33cd76d7b6df2c838763c4ea -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/b6/a28e7be7ca07834f25ec3c81814254561d90ed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/b6/a28e7be7ca07834f25ec3c81814254561d90ed -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/bc/705e32e8713a907b71596f0f75f2f287829097: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/bc/705e32e8713a907b71596f0f75f2f287829097 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/c2/4f7f2a3448fcd84d43485384d00badad4c9a79: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/c2/4f7f2a3448fcd84d43485384d00badad4c9a79 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/db/4db66dd0677de032b6c400c4198f3729366fdd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/db/4db66dd0677de032b6c400c4198f3729366fdd -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/f8/c755cf59319c1dd11d94a9250268edd7a66980: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/f8/c755cf59319c1dd11d94a9250268edd7a66980 -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/fc/bd235c258c53e688535ae6e654ed54a98dd90b: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/fc/bd235c258c53e688535ae6e654ed54a98dd90b -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/plugins.git/objects/pack/pack-59b16ea54f59eb0f343bcc06b691af1dc1929704.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/plugins.git/objects/pack/pack-59b16ea54f59eb0f343bcc06b691af1dc1929704.idx -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/plugins.git/objects/pack/pack-59b16ea54f59eb0f343bcc06b691af1dc1929704.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/plugins.git/objects/pack/pack-59b16ea54f59eb0f343bcc06b691af1dc1929704.pack -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/pack/pack-095fb1d8df0c2b6f509b009697bac6673bf000e7.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/pack/pack-095fb1d8df0c2b6f509b009697bac6673bf000e7.idx -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/pack/pack-095fb1d8df0c2b6f509b009697bac6673bf000e7.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/pack/pack-095fb1d8df0c2b6f509b009697bac6673bf000e7.pack -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/plugins.git/objects/pack/pack-59b16ea54f59eb0f343bcc06b691af1dc1929704.bitmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/plugins.git/objects/pack/pack-59b16ea54f59eb0f343bcc06b691af1dc1929704.bitmap -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/objects/pack/pack-095fb1d8df0c2b6f509b009697bac6673bf000e7.bitmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/system.git/objects/pack/pack-095fb1d8df0c2b6f509b009697bac6673bf000e7.bitmap -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/info/refs: -------------------------------------------------------------------------------- 1 | 670d505dc8d982c73ff93eead61ef4dfacc54cac refs/heads/erics-uf-user 2 | c204c5d3af96fb100aff826cf794867a3b82a3d0 refs/heads/mailman-uf-user 3 | 712903f98047fee661ef103ae9322bba3d093ea6 refs/heads/master 4 | 118c316fd21183220820498950694ae07098c066 refs/heads/social 5 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/specialtripsagency.git/objects/pack/pack-511e0684c65896fa2054ba57d7abfa61f7073aa7.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/specialtripsagency.git/objects/pack/pack-511e0684c65896fa2054ba57d7abfa61f7073aa7.idx -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/specialtripsagency.git/objects/pack/pack-511e0684c65896fa2054ba57d7abfa61f7073aa7.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/specialtripsagency.git/objects/pack/pack-511e0684c65896fa2054ba57d7abfa61f7073aa7.pack -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/specialtripsagency.git/objects/pack/pack-511e0684c65896fa2054ba57d7abfa61f7073aa7.bitmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo/HEAD/support/bpm-suite-demo-niogit/specialtripsagency.git/objects/pack/pack-511e0684c65896fa2054ba57d7abfa61f7073aa7.bitmap -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/system.git/packed-refs: -------------------------------------------------------------------------------- 1 | # pack-refs with: peeled 2 | 68fb6ff51984f90cc403f43362d36fd97dacd520 refs/heads/erics-uf-user 3 | a645cb8385b5150de35a2ddddf79c66fff2d1264 refs/heads/mailman-uf-user 4 | 712903f98047fee661ef103ae9322bba3d093ea6 refs/heads/master 5 | afd81175ae08f6a7806d422386c3dc817859ad29 refs/heads/social 6 | -------------------------------------------------------------------------------- /projects/acme-data-model/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | special-trips 4 | acmeDataModel 5 | 1.0 6 | -------------------------------------------------------------------------------- /support/data/message.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | RHT 6 | 7 | 8 | -------------------------------------------------------------------------------- /support/CustomWorkItemHandlers.conf: -------------------------------------------------------------------------------- 1 | [ 2 | "Log": new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(), 3 | "WebService": new org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler(ksession), 4 | "Rest": new org.jbpm.process.workitem.rest.RESTWorkItemHandler(), 5 | "Email" : new org.jbpm.process.workitem.email.EmailWorkItemHandler("mail.chengeta.net", "26", "jboss@chengeta.net", "cx!&m^,%lP-k") 6 | 7 | ] 8 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | demo 4 | acme-hotel-service 5 | 1.0 6 | war 7 | 8 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | demo 4 | acme-flight-service 5 | 1.0 6 | war 7 | 8 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/src/main/java/acme/service/soap/hotelws/impl/SessionIdentifierGenerator.java: -------------------------------------------------------------------------------- 1 | package acme.service.soap.hotelws.impl; 2 | 3 | import java.math.BigInteger; 4 | import java.security.SecureRandom; 5 | 6 | public final class SessionIdentifierGenerator { 7 | private SecureRandom random = new SecureRandom(); 8 | 9 | public String nextSessionId() { 10 | return new BigInteger(130, random).toString(32); 11 | } 12 | } -------------------------------------------------------------------------------- /projects/fuseparent/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Travel Agency Fuse Demo 2 | ========================================= 3 | Under this folder, you will find all the projects related to JBoss Fuse. 4 | These services includes Hotel, and Flight promotion services, 5 | and book, canceling of Flight and Hotels. 6 | 7 | To build this project use 8 | 9 | mvn clean install 10 | 11 | To deploy these project into JBoss Fuse 12 | 13 | mvn fabric8:deploy 14 | 15 | 16 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/src/main/java/com/jboss/soap/service/acmedemo/impl/SessionIdentifierGenerator.java: -------------------------------------------------------------------------------- 1 | package com.jboss.soap.service.acmedemo.impl; 2 | 3 | import java.math.BigInteger; 4 | import java.security.SecureRandom; 5 | 6 | public final class SessionIdentifierGenerator { 7 | private SecureRandom random = new SecureRandom(); 8 | 9 | public String nextSessionId() { 10 | return new BigInteger(130, random).toString(32); 11 | } 12 | } -------------------------------------------------------------------------------- /support/userinfo.properties: -------------------------------------------------------------------------------- 1 | erics=erics@domain.com:en-UK:erics 2 | Administrator=administrator@domain.com:en-UK:Administrator 3 | Administrators=administrators@domain.com:en-UK:Administrators:[Administrator] 4 | manager=manager@domain.com:en-UK:manager:[erics] 5 | reviewerrole=reviewerrole@domain.com:en-UK:reviewerrole:[erics] 6 | employeebookingrole=employeebookingrole@domain.com:en-UK:employeebookingrole:[erics] 7 | taskuser=taskuser@domain.com:en-UK:taskuser:[erics] 8 | -------------------------------------------------------------------------------- /support/bpm-suite-demo-niogit/specialtripsagency.git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | symlinks = false 3 | repositoryformatversion = 0 4 | filemode = true 5 | bare = true 6 | logallrefupdates = false 7 | precomposeunicode = true 8 | [remote "origin"] 9 | url = file:///Users/erics/demo-projects/bpms/bpms-travel-agency-demo/support/bpm-suite-demo-niogit/specialtripsagency.git 10 | fetch = +refs/heads/*:refs/heads/* 11 | [branch "master"] 12 | remote = origin 13 | merge = refs/heads/master 14 | -------------------------------------------------------------------------------- /projects/fuseparent/webendpoint/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Camel Router Project for Blueprint (OSGi) 2 | ========================================= 3 | 4 | To build this project use 5 | 6 | mvn install 7 | 8 | To run the project you can execute the following Maven goal 9 | 10 | mvn camel:run 11 | 12 | To deploy the project in OSGi. For example using Apache ServiceMix 13 | or Apache Karaf. You can run the following command from its shell: 14 | 15 | osgi:install -s mvn:org.blogdemo/travelagency/1.0.0-SNAPSHOT 16 | 17 | For more help see the Apache Camel documentation 18 | 19 | http://camel.apache.org/ 20 | -------------------------------------------------------------------------------- /projects/fuseparent/features/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Camel Router Project for Blueprint (OSGi) 2 | ========================================= 3 | 4 | To build this project use 5 | 6 | mvn install 7 | 8 | To run the project you can execute the following Maven goal 9 | 10 | mvn camel:run 11 | 12 | To deploy the project in OSGi. For example using Apache ServiceMix 13 | or Apache Karaf. You can run the following command from its shell: 14 | 15 | osgi:install -s mvn:org.blogdemo.travelagency/features/1.0.0-SNAPSHOT 16 | 17 | For more help see the Apache Camel documentation 18 | 19 | http://camel.apache.org/ 20 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionhotel/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Camel Router Project for Blueprint (OSGi) 2 | ========================================= 3 | 4 | To build this project use 5 | 6 | mvn install 7 | 8 | To run the project you can execute the following Maven goal 9 | 10 | mvn camel:run 11 | 12 | To deploy the project in OSGi. For example using Apache ServiceMix 13 | or Apache Karaf. You can run the following command from its shell: 14 | 15 | osgi:install -s mvn:org.blogdemo/promotionhotel/1.0.0-SNAPSHOT 16 | 17 | For more help see the Apache Camel documentation 18 | 19 | http://camel.apache.org/ 20 | -------------------------------------------------------------------------------- /projects/fuseparent/hotelwebendpoint/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Camel Router Project for Blueprint (OSGi) 2 | ========================================= 3 | 4 | To build this project use 5 | 6 | mvn install 7 | 8 | To run the project you can execute the following Maven goal 9 | 10 | mvn camel:run 11 | 12 | To deploy the project in OSGi. For example using Apache ServiceMix 13 | or Apache Karaf. You can run the following command from its shell: 14 | 15 | osgi:install -s mvn:org.blueprint/hotelwsendpoint/1.0.0-SNAPSHOT 16 | 17 | For more help see the Apache Camel documentation 18 | 19 | http://camel.apache.org/ 20 | -------------------------------------------------------------------------------- /projects/fuseparent/bookingservice/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Camel Router Project for Blueprint (OSGi) 2 | ========================================= 3 | 4 | To build this project use 5 | 6 | mvn install 7 | 8 | To run the project you can execute the following Maven goal 9 | 10 | mvn camel:run 11 | 12 | To deploy the project in OSGi. For example using Apache ServiceMix 13 | or Apache Karaf. You can run the following command from its shell: 14 | 15 | osgi:install -s mvn:org.blogdemo.travelagency/persistenceData/1.0.0-SNAPSHOT 16 | 17 | For more help see the Apache Camel documentation 18 | 19 | http://camel.apache.org/ 20 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionflights/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Camel Router Project for Blueprint (OSGi) 2 | ========================================= 3 | 4 | To build this project use 5 | 6 | mvn install 7 | 8 | To run the project you can execute the following Maven goal 9 | 10 | mvn camel:run 11 | 12 | To deploy the project in OSGi. For example using Apache ServiceMix 13 | or Apache Karaf. You can run the following command from its shell: 14 | 15 | osgi:install -s mvn:org.blogdemo.travelagency/promtionflights/1.0.0-SNAPSHOT 16 | 17 | For more help see the Apache Camel documentation 18 | 19 | http://camel.apache.org/ 20 | -------------------------------------------------------------------------------- /projects/fuseparent/hotelbookingservice/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Camel Router Project for Blueprint (OSGi) 2 | ========================================= 3 | 4 | To build this project use 5 | 6 | mvn install 7 | 8 | To run the project you can execute the following Maven goal 9 | 10 | mvn camel:run 11 | 12 | To deploy the project in OSGi. For example using Apache ServiceMix 13 | or Apache Karaf. You can run the following command from its shell: 14 | 15 | osgi:install -s mvn:org.blogdemo.travelagency/hotelbookingservice/1.0.0-SNAPSHOT 16 | 17 | For more help see the Apache Camel documentation 18 | 19 | http://camel.apache.org/ 20 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/META-INF/kmodule.xml: -------------------------------------------------------------------------------- 1 | ; 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /installs/README: -------------------------------------------------------------------------------- 1 | Download the following from the JBoss Customer Portal 2 | 3 | * EAP installer (jboss-eap-6.4.0-installer.jar) 4 | * EAP patch (jboss-eap-6.4.4-patch.zip) 5 | * BPM Suite installer (jboss-bpmsuite-installer-6.2.0.BZ-1299002.jar) 6 | * Fuse (jboss-fuse-full-6.2.0.redhat-133.zip) 7 | 8 | and copy to this directory for the init.sh script to work. 9 | 10 | Ensure that this file is executable by running: 11 | 12 | chmod +x /installs/jboss-eap-6.4.0-installer.jar 13 | chmod +x /installs/jboss-eap-6.4.4-patch.zip 14 | chmod +x /installs/jboss-bpmsuite-installer-6.2.0.BZ-1299002.jar 15 | chmod +x /installs/jboss-fuse-full-6.2.0.redhat-133.zip 16 | 17 | -------------------------------------------------------------------------------- /.demo.yaml: -------------------------------------------------------------------------------- 1 | id: jbossdemocentral-bpms-fuse-travel-agency-integration 2 | title: JBoss BPM Suite and Fuse Travel Agency Integration Demo 3 | github_repo_url: https://github.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo 4 | technologies: 5 | - JBoss EAP 6 | - JBoss BPM Suite 7 | - JBoss Fuse 8 | summary: Demo based on JBoss BPM Suite and JBoss Fuse products to highlight migration to micro-services. The installation will take some time as the Fuse containers are provisioned automatically for you during the installation phase so that the micro-services only need to be started before running the JBoss Travel Agency process. 9 | level: Intermediate 10 | product: bpmsuite 11 | author: Christina Lin, Andrew Block, Eric D. Schabell 12 | -------------------------------------------------------------------------------- /projects/instance-generator/src/main/java/org/jboss/jbpm/api/Response.java: -------------------------------------------------------------------------------- 1 | package org.jboss.jbpm.api; 2 | 3 | import javax.xml.bind.annotation.XmlElement; 4 | import javax.xml.bind.annotation.XmlRootElement; 5 | 6 | import org.apache.commons.lang.builder.ToStringBuilder; 7 | 8 | @XmlRootElement(name = "response") 9 | public class Response { 10 | private String status; 11 | private String url; 12 | public Response(String status, String url) { 13 | super(); 14 | this.status = status; 15 | this.url = url; 16 | } 17 | 18 | @XmlElement public String getStatus(){ return status; } 19 | @XmlElement public String getUrl(){ return url; } 20 | 21 | public String toString(){ 22 | return ToStringBuilder.reflectionToString(this); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /support/fuse/jmx.acl.whitelist.cfg: -------------------------------------------------------------------------------- 1 | # open this up so we can check available plugins before authenticating 2 | hawtio.plugin=bypass 3 | # open this up so that permissions can validated by anyone 4 | org.apache.karaf.security.jmx=bypass 5 | io.fabric8.cxf;getAddress=bypass 6 | io.fabric8.cxf;getState=bypass 7 | io.fabric8.cxf;getServletContext=bypass 8 | io.fabric8.cxf;isWADL=bypass 9 | io.fabric8.cxf;isWSDL=bypass 10 | io.fabric8.cxf;isSwagger=bypass 11 | org.apache.activemq.Broker;getBrokerVersion=bypass 12 | 13 | #Camel Counter 14 | org.apache.camel;getIndex=bypass 15 | org.apache.camel;getRouteId=bypass 16 | org.apache.camel;getState=bypass 17 | org.apache.camel;dumpStatsAsXml=bypass 18 | org.apache.camel;getExchangesInflight=bypass 19 | org.apache.camel;getProcessorId=bypass -------------------------------------------------------------------------------- /projects/fuseparent/features/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # The logging properties used for testing 3 | # 4 | log4j.rootLogger=INFO, out 5 | 6 | #log4j.logger.org.apache.camel=DEBUG 7 | 8 | # CONSOLE appender not used by default 9 | log4j.appender.out=org.apache.log4j.ConsoleAppender 10 | log4j.appender.out.layout=org.apache.log4j.PatternLayout 11 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n 12 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n 13 | 14 | # File appender 15 | log4j.appender.file=org.apache.log4j.FileAppender 16 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 17 | log4j.appender.file.layout.ConversionPattern=%d %-5p %c{1} - %m %n 18 | log4j.appender.file.file=target/camel-test.log 19 | -------------------------------------------------------------------------------- /support/fuse/jmx.acl.whitelist.properties: -------------------------------------------------------------------------------- 1 | # open this up so we can check available plugins before authenticating 2 | hawtio.plugin=bypass 3 | # open this up so that permissions can validated by anyone 4 | org.apache.karaf.security.jmx=bypass 5 | io.fabric8.cxf;getAddress=bypass 6 | io.fabric8.cxf;getState=bypass 7 | io.fabric8.cxf;getServletContext=bypass 8 | io.fabric8.cxf;isWADL=bypass 9 | io.fabric8.cxf;isWSDL=bypass 10 | io.fabric8.cxf;isSwagger=bypass 11 | org.apache.activemq.Broker;getBrokerVersion=bypass 12 | 13 | 14 | #Camel Counter 15 | org.apache.camel;getIndex=bypass 16 | org.apache.camel;getRouteId=bypass 17 | org.apache.camel;getState=bypass 18 | org.apache.camel;dumpStatsAsXml=bypass 19 | org.apache.camel;getExchangesInflight=bypass 20 | org.apache.camel;getProcessorId=bypass -------------------------------------------------------------------------------- /projects/fuseparent/webendpoint/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # The logging properties used for testing 3 | # 4 | log4j.rootLogger=INFO, out 5 | 6 | #log4j.logger.org.apache.camel=DEBUG 7 | 8 | # CONSOLE appender not used by default 9 | log4j.appender.out=org.apache.log4j.ConsoleAppender 10 | log4j.appender.out.layout=org.apache.log4j.PatternLayout 11 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n 12 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n 13 | 14 | # File appender 15 | log4j.appender.file=org.apache.log4j.FileAppender 16 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 17 | log4j.appender.file.layout.ConversionPattern=%d %-5p %c{1} - %m %n 18 | log4j.appender.file.file=target/camel-test.log 19 | -------------------------------------------------------------------------------- /projects/external-client-ui-form/WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SimpleServlet 5 | com.externalui.example.SimpleServlet 6 | 7 | 8 | SimpleServlet 9 | /SimpleServlet 10 | 11 | 12 | Home.jsp 13 | 14 | -------------------------------------------------------------------------------- /projects/fuseparent/bookingservice/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # The logging properties used for testing 3 | # 4 | log4j.rootLogger=INFO, out 5 | 6 | #log4j.logger.org.apache.camel=DEBUG 7 | 8 | # CONSOLE appender not used by default 9 | log4j.appender.out=org.apache.log4j.ConsoleAppender 10 | log4j.appender.out.layout=org.apache.log4j.PatternLayout 11 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n 12 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n 13 | 14 | # File appender 15 | log4j.appender.file=org.apache.log4j.FileAppender 16 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 17 | log4j.appender.file.layout.ConversionPattern=%d %-5p %c{1} - %m %n 18 | log4j.appender.file.file=target/camel-test.log 19 | -------------------------------------------------------------------------------- /projects/fuseparent/hotelwebendpoint/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # The logging properties used for testing 3 | # 4 | log4j.rootLogger=INFO, out 5 | 6 | #log4j.logger.org.apache.camel=DEBUG 7 | 8 | # CONSOLE appender not used by default 9 | log4j.appender.out=org.apache.log4j.ConsoleAppender 10 | log4j.appender.out.layout=org.apache.log4j.PatternLayout 11 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n 12 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n 13 | 14 | # File appender 15 | log4j.appender.file=org.apache.log4j.FileAppender 16 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 17 | log4j.appender.file.layout.ConversionPattern=%d %-5p %c{1} - %m %n 18 | log4j.appender.file.file=target/camel-test.log 19 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionflights/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # The logging properties used for testing 3 | # 4 | log4j.rootLogger=INFO, out 5 | 6 | #log4j.logger.org.apache.camel=DEBUG 7 | 8 | # CONSOLE appender not used by default 9 | log4j.appender.out=org.apache.log4j.ConsoleAppender 10 | log4j.appender.out.layout=org.apache.log4j.PatternLayout 11 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n 12 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n 13 | 14 | # File appender 15 | log4j.appender.file=org.apache.log4j.FileAppender 16 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 17 | log4j.appender.file.layout.ConversionPattern=%d %-5p %c{1} - %m %n 18 | log4j.appender.file.file=target/camel-test.log 19 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionhotel/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # The logging properties used for testing 3 | # 4 | log4j.rootLogger=INFO, out 5 | 6 | #log4j.logger.org.apache.camel=DEBUG 7 | 8 | # CONSOLE appender not used by default 9 | log4j.appender.out=org.apache.log4j.ConsoleAppender 10 | log4j.appender.out.layout=org.apache.log4j.PatternLayout 11 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n 12 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n 13 | 14 | # File appender 15 | log4j.appender.file=org.apache.log4j.FileAppender 16 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 17 | log4j.appender.file.layout.ConversionPattern=%d %-5p %c{1} - %m %n 18 | log4j.appender.file.file=target/camel-test.log 19 | -------------------------------------------------------------------------------- /projects/fuseparent/hotelbookingservice/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # The logging properties used for testing 3 | # 4 | log4j.rootLogger=INFO, out 5 | 6 | #log4j.logger.org.apache.camel=DEBUG 7 | 8 | # CONSOLE appender not used by default 9 | log4j.appender.out=org.apache.log4j.ConsoleAppender 10 | log4j.appender.out.layout=org.apache.log4j.PatternLayout 11 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n 12 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n 13 | 14 | # File appender 15 | log4j.appender.file=org.apache.log4j.FileAppender 16 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 17 | log4j.appender.file.layout.ConversionPattern=%d %-5p %c{1} - %m %n 18 | log4j.appender.file.file=target/camel-test.log 19 | -------------------------------------------------------------------------------- /support/windows/README: -------------------------------------------------------------------------------- 1 | WINDOWS INSTALLATION: 2 | ==================== 3 | This directory contains a Windows Batch file and a corresponding VBScript file which is used as a 4 | utility to unzip files (since Windows has no native unzip functionality within Batch files). 5 | 6 | unzip.vsb - utility to unzip files. 7 | 8 | Notes and tips: 9 | - you might run into some issues while extracting some of the BRMS components because the 10 | file path of the extracted file became greater than 255 chars (yet another windows 11 | headache). By putting the project in a higher directory (c:\demo), the issue can be 12 | resolved. 13 | - if you find errors with the installation, please fix and push back to project, we don't have 14 | a windows environment to test and keep these scripts updated. 15 | -------------------------------------------------------------------------------- /.demo-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "name":"JBoss BPM Suite & JBoss Fuse Travel Agency Integration Demo", 3 | "summary":"Demo based on JBoss BPM Suite and JBoss Fuse products that highlights the JBoss Travel Agency project migration from traditional web services to micro-services. Install options - local.", 4 | "author":"Christina Lin, Eric D. Schabell", 5 | "categories":["fuse","multi"], 6 | "level":"Easy Peasy", 7 | "published":true, 8 | "prerequisites":"Java 1.7, Maven", 9 | "targetProduct":"JBoss BPM Suite and JBoss Fuse", 10 | "productVersion":"JBoss BPM Suite 6.1, JBoss Fuse 6.2.0", 11 | "technologies": ["JBoss BPM Suite","JBoss Fuse"], 12 | "links": [ 13 | { 14 | "name":"Code", 15 | "url":"https://github.com/jbossdemocentral/bpms-fuse-travel-agency-integration-demo" 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /projects/instance-generator/src/main/java/org/jboss/jbpm/api/Jbpm6Client.java: -------------------------------------------------------------------------------- 1 | package org.jboss.jbpm.api; 2 | 3 | import org.apache.http.HttpException; 4 | 5 | import java.util.Map; 6 | 7 | public interface Jbpm6Client { 8 | public enum TasksBy{potentialOwner, taskOwner, processInstanceId, taskId, workItemId} 9 | 10 | public String getTasks(TasksBy by, String value) throws HttpException; 11 | public String startProcess(String deploymentId, String processId, String mapOfParams) throws HttpException; 12 | public String claimTask(String id) throws HttpException; 13 | public String startTask(String id) throws HttpException; 14 | public String completeTask(String id, String commaSeparatedListOfParams) throws HttpException; 15 | public String completeTaskWithMap(String id, Map params) throws HttpException; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /projects/instance-generator/src/main/java/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: guava-14.0.1.jar rest-assured-common-1.8.1.jar commons-lan 3 | g3-3.1.jar asm-commons-4.0.jar antlr-2.7.7.jar httpcore-4.2.4.jar tag 4 | soup-1.2.1.jar hamcrest-core-1.2.1.jar commons-lang-2.4.jar json-simp 5 | le-1.1.jar groovy-xml-2.1.2.jar httpmime-4.2.1.jar hamcrest-library-1 6 | .2.1.jar gson-1.7.2.jar jackson-core-asl-1.8.5.jar httpclient-4.2.5.j 7 | ar xml-path-1.8.1.jar asm-4.0.jar commons-logging-1.1.1.jar jackson-m 8 | apper-asl-1.8.5.jar groovy-2.1.2.jar asm-tree-4.0.jar groovy-json-2.1 9 | .2.jar asm-analysis-4.0.jar json-path-1.8.1.jar commons-codec-1.6.jar 10 | asm-util-4.0.jar jackson-databind-2.0.5.jar rest-assured-1.8.1.jar j 11 | ackson-annotations-2.0.5.jar jackson-core-2.0.5.jar 12 | Main-Class: org.jboss.jbpm.bpmsClientMain 13 | 14 | -------------------------------------------------------------------------------- /projects/fuseparent/hotelwebendpoint/src/main/java/org/blogdemo/travelagency/hotelwsendpoint/ListHotelBean.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.hotelwsendpoint; 2 | 3 | import java.util.Map; 4 | 5 | import acme.service.soap.hotelws.Resort; 6 | 7 | public class ListHotelBean { 8 | 9 | public Resort getResort(Map promotedResorts){ 10 | Resort resort = new Resort(); 11 | resort.setHotelId((Integer)promotedResorts.get("hotelId")); 12 | resort.setHotelName((String)promotedResorts.get("hotelName")); 13 | resort.setHotelCity((String)promotedResorts.get("hotelCity")); 14 | resort.setAvailableFrom((String)promotedResorts.get("availableFrom")); 15 | resort.setAvailableTo((String)promotedResorts.get("availableTo")); 16 | resort.setRatePerPerson(((Double)promotedResorts.get("ratePerPerson"))); 17 | 18 | return resort; 19 | } 20 | 21 | 22 | 23 | } 24 | -------------------------------------------------------------------------------- /projects/external-client-ui-form/src/com/externalui/example/client/jbpm/interfaces/Jbpm6Client.java: -------------------------------------------------------------------------------- 1 | package com.externalui.example.client.jbpm.interfaces; 2 | 3 | import org.apache.http.HttpException; 4 | 5 | import java.util.Map; 6 | 7 | public interface Jbpm6Client { 8 | public enum TasksBy{potentialOwner, taskOwner, processInstanceId, taskId, workItemId} 9 | 10 | public String getTasks(TasksBy by, String value) throws HttpException; 11 | public String startProcess(String deploymentId, String processId, String mapOfParams) throws HttpException; 12 | public String claimTask(String id) throws HttpException; 13 | public String startTask(String id) throws HttpException; 14 | public String completeTask(String id, String commaSeparatedListOfParams) throws HttpException; 15 | public String completeTaskWithMap(String id, Map params) throws HttpException; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /projects/fuseparent/hotelbookingservice/src/main/java/org/blogdemo/travelagency/hotelbookingservice/CancelBooking.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.hotelbookingservice; 2 | 3 | import java.util.Date; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.Id; 8 | import javax.persistence.Table; 9 | 10 | @Entity 11 | @Table(name = "cancelhotelbooking") 12 | public class CancelBooking { 13 | @Column(name = "bookingid") 14 | @Id 15 | String bookingid; 16 | 17 | @Column(name = "recieveDate") 18 | Date recieveDate; 19 | 20 | public String getBookingid() { 21 | return bookingid; 22 | } 23 | 24 | public void setBookingid(String bookingid) { 25 | this.bookingid = bookingid; 26 | } 27 | 28 | public Date getRecieveDate() { 29 | return recieveDate; 30 | } 31 | 32 | public void setRecieveDate(Date recieveDate) { 33 | this.recieveDate = recieveDate; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /projects/fuseparent/webendpoint/src/main/java/org/blogdemo/travelagency/ListFlightBean.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency; 2 | 3 | import java.math.BigDecimal; 4 | import java.util.Map; 5 | 6 | import com.jboss.soap.service.acmedemo.Flight; 7 | 8 | public class ListFlightBean { 9 | 10 | 11 | public Flight getFlights(Map promotedflight){ 12 | Flight flightFound = new Flight(); 13 | 14 | flightFound.setPlaneId((Integer)promotedflight.get("flightid")); 15 | flightFound.setCompany((String)promotedflight.get("airline")); 16 | flightFound.setRatePerPerson(BigDecimal.valueOf((Double)promotedflight.get("price"))); 17 | flightFound.setStartCity((String)promotedflight.get("departure")); 18 | flightFound.setTargetCity((String)promotedflight.get("destination")); 19 | flightFound.setTravelDate((String)promotedflight.get("departuretime")); 20 | 21 | return flightFound; 22 | } 23 | 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /projects/external-client-ui-form/WebContent/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Error!!! 5 | 6 | 25 | 26 | 27 | 28 | 29 | 32 | 33 |
34 | 35 |
Failed to start Business Process!!! 36 |

Please contact BPMS SYSTEMS ADMINISTRATOR for more details 37 |

38 |
39 |
40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | acmeHotel 4 | 5 | index.html 6 | index.htm 7 | index.jsp 8 | default.html 9 | default.htm 10 | default.jsp 11 | 12 | 13 | HotelWS 14 | HotelWS 15 | acme.service.soap.hotelws.impl.HotelWSImpl 16 | 17 | 18 | HotelWS 19 | /HotelWS 20 | 21 | -------------------------------------------------------------------------------- /projects/instance-generator/src/main/java/org/jboss/jbpm/bpmsClientMain.java: -------------------------------------------------------------------------------- 1 | package org.jboss.jbpm; 2 | 3 | import org.jboss.jbpm.impl.bpmsClientConfig; 4 | 5 | /** 6 | * Created by aubbiali on 05/11/14. 7 | */ 8 | 9 | 10 | public class bpmsClientMain { 11 | 12 | // private static bpmsClientApp app; 13 | 14 | // final static int MAX_INSTANCES=1; 15 | 16 | 17 | static bpmsClientConfig config; 18 | 19 | 20 | public static void main(String[] args) { 21 | 22 | String s=null; 23 | if (args.length> 0) s=args[0]; 24 | 25 | config = new bpmsClientConfig(); 26 | 27 | config.parseJSON(s); 28 | 29 | 30 | for (int i=0; i < config.MAX_INSTANCES.intValue(); i++) { 31 | bpmsClientThread3 t = new bpmsClientThread3("t"+i, config); 32 | 33 | // bpmsClientThread t = new bpmsClientThread("t"+i); 34 | 35 | } 36 | 37 | 38 | 39 | 40 | // app = new bpmsClientApp(); 41 | 42 | // app.run(); 43 | 44 | } 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /projects/external-client-ui-form/WebContent/success_response.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Request Submitted 5 | 6 | 25 | 26 | 27 | 28 | 29 | 32 | 33 |
34 | 35 |
Thank you for filling out the form. Your request has been processed successfully! 36 |

Your Unique Process ID is: [CHANGEMEPROCESSID] 37 |

Our team will get in touch with you shortly with a Quote.. 38 |

39 |
40 |
41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | acmeFlight 4 | 5 | index.html 6 | index.htm 7 | index.jsp 8 | default.html 9 | default.htm 10 | default.jsp 11 | 12 | 13 | AcmeDemoInterface 14 | AcmeDemoInterface 15 | com.jboss.soap.service.acmedemo.impl.AcmeDemoInterfaceImpl 16 | 17 | 18 | AcmeDemoInterface 19 | /AcmeDemoInterface 20 | 21 | -------------------------------------------------------------------------------- /projects/fuseparent/bookingservice/src/main/resources/h2script/tables: -------------------------------------------------------------------------------- 1 | 2 | drop table avaliableflights; 3 | Create table avaliableflights( 4 | flightid int not null, 5 | airline varchar(255) not null, 6 | departure varchar(255) not null, 7 | destination varchar(255) not null, 8 | departuretime timestamp not null, 9 | arrivaltime timestamp not null, 10 | flightclass varchar(255) not null, 11 | price DECIMAL(20, 2) not null 12 | ); 13 | 14 | Insert into avaliableflights VALUES (1001,'Delta','Boston','London','2015-5-20 18:25:00','2015-5-21 11:50:00','E',1200.00); 15 | Insert into avaliableflights VALUES (1002,'Icelandair','London','San Fransico','2015-5-20 06:30:00','2015-5-20 12:45:00','E',999.00); 16 | Insert into avaliableflights VALUES (1003,'Air Canada','London','Toronto','2015-5-20 12:00:00','2015-5-20 15:10:00','E',835.00); 17 | Insert into avaliableflights VALUES (1004,'British Airway','London','Washinton','2015-5-20 07:30:00','2015-5-20 09:35:00','E',1300.00); 18 | Insert into avaliableflights VALUES (1005,'Eva Air','London','Taipei','2015-5-20 21:20:00','2015-5-21 17:15:00','E',900.00); 19 | 20 | select * from avaliableflights 21 | 22 | Create table bookedflight( 23 | 24 | ); -------------------------------------------------------------------------------- /projects/fuseparent/bookingservice/src/main/java/org/blogdemo/travelagency/persistenceData/BookingVO.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.persistenceData; 2 | 3 | import static javax.persistence.LockModeType.PESSIMISTIC_WRITE; 4 | 5 | import java.util.Date; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.Id; 10 | import javax.persistence.NamedQuery; 11 | import javax.persistence.Table; 12 | 13 | @Entity 14 | @NamedQuery(name = "queryById", query = "select booking from BookingVO booking where booking.bookingid=:bookingid " , lockMode = PESSIMISTIC_WRITE) 15 | @Table(name = "booking") 16 | public class BookingVO { 17 | 18 | @Column(name = "bookingid") 19 | @Id 20 | protected String bookingid; 21 | 22 | @Column(name = "recieveDate") 23 | protected Date recieveDate; 24 | 25 | public String getBookingid() { 26 | return bookingid; 27 | } 28 | 29 | public void setBookingid(String bookingid) { 30 | this.bookingid = bookingid; 31 | } 32 | 33 | public Date getRecieveDate() { 34 | return recieveDate; 35 | } 36 | 37 | public void setRecieveDate(Date recieveDate) { 38 | this.recieveDate = recieveDate; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /projects/fuseparent/bookingservice/src/main/java/org/blogdemo/travelagency/persistenceData/CancelBookingVO.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.persistenceData; 2 | 3 | import static javax.persistence.LockModeType.PESSIMISTIC_WRITE; 4 | 5 | import java.util.Date; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.Id; 10 | import javax.persistence.NamedQuery; 11 | import javax.persistence.Table; 12 | @Entity 13 | @NamedQuery(name = "queryCancelById", query = "select cb from CancelBookingVO cb where cb.bookingid=:bookingid " , lockMode = PESSIMISTIC_WRITE) 14 | @Table(name = "Cancelbooking") 15 | public class CancelBookingVO { 16 | @Column(name = "bookingid") 17 | @Id 18 | protected String bookingid; 19 | 20 | @Column(name = "recieveDate") 21 | protected Date recieveDate; 22 | 23 | public String getBookingid() { 24 | return bookingid; 25 | } 26 | 27 | public void setBookingid(String bookingid) { 28 | this.bookingid = bookingid; 29 | } 30 | 31 | public Date getRecieveDate() { 32 | return recieveDate; 33 | } 34 | 35 | public void setRecieveDate(Date recieveDate) { 36 | this.recieveDate = recieveDate; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /projects/fuseparent/hotelbookingservice/src/main/java/org/blogdemo/travelagency/hotelbookingservice/Booking.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.hotelbookingservice; 2 | 3 | import static javax.persistence.LockModeType.PESSIMISTIC_WRITE; 4 | 5 | import java.util.Date; 6 | 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.Id; 10 | import javax.persistence.NamedQuery; 11 | import javax.persistence.Table; 12 | 13 | @Entity 14 | @NamedQuery(name = "queryHotelBookingById", query = "select hotelbooking from Booking hotelbooking where hotelbooking.bookingid=:bookingid " , lockMode = PESSIMISTIC_WRITE) 15 | @Table(name = "hotelbooking") 16 | public class Booking { 17 | 18 | @Column(name = "bookingid") 19 | @Id 20 | String bookingid; 21 | 22 | @Column(name = "recieveDate") 23 | Date recieveDate; 24 | 25 | public String getBookingid() { 26 | return bookingid; 27 | } 28 | 29 | public void setBookingid(String bookingid) { 30 | this.bookingid = bookingid; 31 | } 32 | 33 | public Date getRecieveDate() { 34 | return recieveDate; 35 | } 36 | 37 | public void setRecieveDate(Date recieveDate) { 38 | this.recieveDate = recieveDate; 39 | } 40 | 41 | } -------------------------------------------------------------------------------- /projects/external-client-ui-form/README.md: -------------------------------------------------------------------------------- 1 | External Client UI Form 2 | ======================= 3 | This project covers a use case when customer wants to start a business process in BPMS using a REST call externally. 4 | 5 | This project uses a simple JSP and Servlet combination to build a front end. The form you see when you access the following URL is a simple JSP page which gathers information/requirements about a customer and submits it to BPMS via a REST call so that BPMS can kick start the process. 6 | 7 | http://:8080/external-client-ui-form-1.0/ (is you are accessing from outside the server) 8 | or 9 | http://localhost:8080/external-client-ui-form-1.0/ (if you are accessing from within the server) 10 | 11 | 12 | Build and deploy 13 | ---------------- 14 | You could build the project by right clicking on the project name and selecting "Run As" --> "maven Install".. If your maven build is successful then it should create a .jar file in target folder of your project. This is done automatically if you installed the Travel Agency demo project using the provided installation scripts. 15 | 16 | Then deploy the .jar to the following location: 17 | 18 | $JBOSS_BPMS_SERVER_HOME/standalone/deployments/ 19 | 20 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/acme/service/soap/hotelws/clientsample/ClientSample.java: -------------------------------------------------------------------------------- 1 | package acme.service.soap.hotelws.clientsample; 2 | 3 | import acme.service.soap.hotelws.*; 4 | 5 | public class ClientSample { 6 | 7 | public static void main(String[] args) { 8 | System.out.println("***********************"); 9 | System.out.println("Create Web Service Client..."); 10 | HotelWS_Service service1 = new HotelWS_Service(); 11 | System.out.println("Create Web Service..."); 12 | HotelWS port1 = service1.getHotelWSImplPort(); 13 | System.out.println("Call Web Service Operation..."); 14 | System.out.println("Server said: " + port1.getAvailableHotel(null)); 15 | //Please input the parameters instead of 'null' for the upper method! 16 | 17 | System.out.println("Create Web Service..."); 18 | HotelWS port2 = service1.getHotelWSImplPort(); 19 | System.out.println("Call Web Service Operation..."); 20 | System.out.println("Server said: " + port2.getAvailableHotel(null)); 21 | //Please input the parameters instead of 'null' for the upper method! 22 | 23 | System.out.println("***********************"); 24 | System.out.println("Call Over!"); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /projects/fuseparent/hotelbookingservice/src/main/java/org/blogdemo/travelagency/hotelbookingservice/BookingService.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.hotelbookingservice; 2 | 3 | import java.math.BigInteger; 4 | import java.security.SecureRandom; 5 | import java.util.Calendar; 6 | import java.util.Random; 7 | 8 | public class BookingService { 9 | 10 | private SecureRandom secureRandom = new SecureRandom(); 11 | 12 | public Booking createBooking(String someStringFromBPMS){ 13 | Calendar cal = Calendar.getInstance(); 14 | 15 | Booking booking = new Booking(); 16 | booking.setBookingid(genBookingId()); 17 | booking.setRecieveDate(cal.getTime()); 18 | 19 | return booking; 20 | } 21 | 22 | public CancelBooking createCancelBooking(String id){ 23 | Calendar cal = Calendar.getInstance(); 24 | 25 | CancelBooking cancelbooking = new CancelBooking(); 26 | cancelbooking.setBookingid(id); 27 | cancelbooking.setRecieveDate(cal.getTime()); 28 | 29 | return cancelbooking; 30 | } 31 | 32 | private String genBookingId(){ 33 | 34 | return new BigInteger(130, secureRandom).toString(32); 35 | 36 | } 37 | 38 | public int cancelCharge(){ 39 | 40 | final Random random = new Random(); 41 | return random.nextInt((10-5)+1) + 5; 42 | 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /projects/instance-generator/src/main/java/org/jboss/jbpm/impl/bpmsClientVars.java: -------------------------------------------------------------------------------- 1 | package org.jboss.jbpm.impl; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Random; 5 | import org.apache.commons.lang.text.StrSubstitutor; 6 | import org.json.simple.JSONArray; 7 | 8 | /** 9 | * Created by aubbiali on 27/11/14. 10 | */ 11 | public class bpmsClientVars { 12 | public String name; 13 | public String type; 14 | public Number min; 15 | public Number max; 16 | public ArrayList choice; 17 | 18 | private String rndChoice(ArrayList a) { 19 | int idx = new Random().nextInt(a.size()); 20 | return a.get(idx); 21 | } 22 | 23 | private String rndInt (Number min, Number max) { 24 | Integer value = new Random().nextInt( max.intValue() - min.intValue()); 25 | return value.toString() + "i"; 26 | } 27 | 28 | 29 | 30 | public bpmsClientVars() { 31 | choice = new ArrayList(); 32 | } 33 | 34 | public String getValue() { 35 | if (type.equals("int")) { 36 | return rndInt(min,max); 37 | } 38 | else if (type.equals("choice")) { 39 | return rndChoice(choice); 40 | } 41 | else return null; 42 | 43 | } 44 | 45 | 46 | } 47 | -------------------------------------------------------------------------------- /support/application-roles.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Properties declaration of users roles for the realm 'ApplicationRealm'. 3 | # 4 | # This includes the following protocols: remote ejb, remote jndi, web, remote jms 5 | # 6 | # Users can be added to this properties file at any time, updates after the server has started 7 | # will be automatically detected. 8 | # 9 | # The format of this file is as follows: - 10 | # username=role1,role2,role3 11 | # 12 | # A utility script is provided which can be executed from the bin folder to add the users: - 13 | # - Linux 14 | # bin/add-user.sh 15 | # 16 | # - Windows 17 | # bin\add-user.bat 18 | # 19 | # The following illustrates how an admin user could be defined. 20 | # 21 | #admin=PowerUser,BillingAdmin, 22 | #guest=guest 23 | # 24 | # 25 | # Default BPM Suite roles: analyst, manager, developer, user 26 | # 27 | # * "admin" is everything 28 | # 29 | # * "developer" is everything except administration (under authoring) 30 | # 31 | # * "analyst" is same as "developer", though without asset repository and deployments 32 | # 33 | # * "user" hide authoring completely, so be the process management, tasks and dashboards sections only 34 | # 35 | # * "manager" only be the dashboards 36 | # 37 | erics=analyst,admin,user,manager,taskuser,reviewerrole,employeebookingrole,kie-server 38 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionhotel/src/main/java/org/blogdemo/travelagency/promotionhotel/RandomHotelBean.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.promotionhotel; 2 | 3 | import java.math.BigDecimal; 4 | import java.util.List; 5 | import java.util.Random; 6 | 7 | import org.apache.camel.Exchange; 8 | import org.apache.camel.Processor; 9 | 10 | public class RandomHotelBean implements Processor{ 11 | 12 | @Override 13 | public void process(Exchange exchange) throws Exception { 14 | List resorts = (List)exchange.getIn().getBody(); 15 | System.out.println("resorts =>"+resorts); 16 | 17 | ResortInfo resort; 18 | 19 | if(resorts == null || resorts.size() == 0){ 20 | resort = new ResortInfo(); 21 | resort.setHotelId(201); 22 | resort.setHotelName("The Grand Default Hotel"); 23 | resort.setHotelCity((String)exchange.getIn().getHeader("requestCity")); 24 | resort.setAvailableFrom((String)exchange.getIn().getHeader("requestStartDate")); 25 | resort.setAvailableTo((String)exchange.getIn().getHeader("requestEndDate")); 26 | resort.setRatePerPerson(new BigDecimal("109.99")); 27 | }else{ 28 | 29 | Random rand = new Random(); 30 | int n = rand.nextInt(resorts.size()); 31 | resort = resorts.get(n); 32 | } 33 | exchange.getOut().setBody(resort); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/com/jboss/soap/service/acmedemo/clientsample/ClientSample.java: -------------------------------------------------------------------------------- 1 | package com.jboss.soap.service.acmedemo.clientsample; 2 | 3 | import com.jboss.soap.service.acmedemo.*; 4 | 5 | public class ClientSample { 6 | 7 | public static void main(String[] args) { 8 | System.out.println("***********************"); 9 | System.out.println("Create Web Service Client..."); 10 | AcmeDemoService service1 = new AcmeDemoService(); 11 | System.out.println("Create Web Service..."); 12 | AcmeDemoInterface port1 = service1.getAcmeDemoInterfaceImplPort(); 13 | System.out.println("Call Web Service Operation..."); 14 | System.out.println("Server said: " + port1.listAvailablePlanes(null)); 15 | //Please input the parameters instead of 'null' for the upper method! 16 | 17 | System.out.println("Create Web Service..."); 18 | AcmeDemoInterface port2 = service1.getAcmeDemoInterfaceImplPort(); 19 | System.out.println("Call Web Service Operation..."); 20 | System.out.println("Server said: " + port2.listAvailablePlanes(null)); 21 | //Please input the parameters instead of 'null' for the upper method! 22 | 23 | System.out.println("***********************"); 24 | System.out.println("Call Over!"); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionflights/src/main/java/org/blogdemo/travelagency/promtionflights/RandomFlightBean.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.promtionflights; 2 | 3 | import java.math.BigDecimal; 4 | import java.util.List; 5 | import java.util.Random; 6 | 7 | import org.apache.camel.Exchange; 8 | import org.apache.camel.Processor; 9 | 10 | 11 | 12 | public class RandomFlightBean implements Processor{ 13 | 14 | 15 | @Override 16 | public void process(Exchange exchange) throws Exception { 17 | List flights = (List)exchange.getIn().getBody(); 18 | System.out.println("flights =>"+flights); 19 | FlightInfo flight; 20 | if(flights == null || flights.size() == 0){ 21 | flight = new FlightInfo(); 22 | flight.setFlightid(200001); 23 | flight.setAirline("The Grand Default Airline"); 24 | flight.setDeparture((String)exchange.getIn().getHeader("requestDeparture")); 25 | flight.setDestination((String)exchange.getIn().getHeader("requestDestination")); 26 | flight.setDeparturetime((String)exchange.getIn().getHeader("requestDepartureDate")); 27 | flight.setPrice(new BigDecimal("888.88")); 28 | flight.setArrivaltime((String)exchange.getIn().getHeader("requestArrivalDate")); 29 | }else{ 30 | 31 | Random rand = new Random(); 32 | int n = rand.nextInt(flights.size()); 33 | flight = flights.get(n); 34 | } 35 | 36 | exchange.getOut().setBody(flight); 37 | 38 | } 39 | 40 | 41 | } 42 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionhotel/src/main/java/org/blogdemo/travelagency/promotionhotel/ResortDataConvertor.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.promotionhotel; 2 | 3 | import java.math.BigDecimal; 4 | import java.text.SimpleDateFormat; 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | public class ResortDataConvertor { 10 | 11 | /** 12 | * Will be a lot easier in Fuse 6.2 with Camel 2.15 13 | * */ 14 | public List processResultSet(List> resultset){ 15 | List avaliableResorts = new ArrayList(); 16 | System.out.println("resultset:["+resultset.size()+"]"); 17 | for(Map obj:resultset){ 18 | 19 | ResortInfo resortInfo = new ResortInfo(); 20 | resortInfo.setHotelId((Integer)obj.get("HOTELID")); 21 | resortInfo.setHotelName((String)obj.get("HOTELNAME")); 22 | resortInfo.setHotelCity((String)obj.get("HOTELCITY")); 23 | resortInfo.setAvailableFrom(new SimpleDateFormat("MM-dd-yyyy HH:mm:ss").format(obj.get("AVAILABLEFROM"))); 24 | resortInfo.setAvailableTo(new SimpleDateFormat("MM-dd-yyyy HH:mm:ss").format(obj.get("AVAILABLETO"))); 25 | resortInfo.setRatePerPerson((BigDecimal)obj.get("RATEPERPERSON")); 26 | 27 | avaliableResorts.add(resortInfo); 28 | } 29 | 30 | System.out.println("avaliableFlights:["+avaliableResorts.size()+"]"); 31 | return avaliableResorts; 32 | } 33 | 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /support/fuse/users.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2005-2014 Red Hat, Inc. 3 | # 4 | # Red Hat licenses this file to you under the Apache License, version 5 | # 2.0 (the "License"); you may not use this file except in compliance 6 | # with the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 13 | # implied. See the License for the specific language governing 14 | # permissions and limitations under the License. 15 | # 16 | 17 | # 18 | # This file contains the valid users who can log into Fabric. Each line have to be of 19 | # the format: 20 | # 21 | # USER=PASSWORD,ROLE1,ROLE2,... 22 | # 23 | # All users and roles entered in this file are available after Fabric startup 24 | # and modifiable via the JAAS command group. These users reside in a JAAS domain 25 | # with the name "karaf".. 26 | # 27 | 28 | #All users specified in this file, will be uploaded to the fabric registry and will 29 | #be available to all containers that join the fabric. 30 | #The password of the first user in the file will also be used as a registry (zookeeper) password 31 | #unless a password is explicitly specified. 32 | admin=admin,admin,manager,viewer,Monitor, Operator, Maintainer, Deployer, Auditor, Administrator, SuperUser 33 | -------------------------------------------------------------------------------- /projects/instance-generator/src/test/java/org/jboss/jbpm/Jbpm6ClientITest.java: -------------------------------------------------------------------------------- 1 | package org.jboss.jbpm; 2 | 3 | import org.jboss.jbpm.api.Jbpm6Client.TasksBy; 4 | import org.jboss.jbpm.impl.Jbpm6ClientImpl; 5 | import org.jboss.jbpm.impl.Jbpm6ClientObjects; 6 | import org.junit.Assert; 7 | import org.junit.Before; 8 | import org.junit.Test; 9 | 10 | public class Jbpm6ClientITest { 11 | private static final String server="http://localhost:8080/business-central/"; 12 | private static final String username="restclient"; 13 | private static final String password="passw0rd-1"; 14 | private Jbpm6ClientImpl client; 15 | private Jbpm6ClientObjects clientObjects; 16 | 17 | @Before 18 | public void init(){ 19 | client=new Jbpm6ClientImpl(server, username, password, true); 20 | clientObjects=new Jbpm6ClientObjects(server,username,password); 21 | } 22 | 23 | // @Test 24 | public void test() throws Exception{ 25 | Assert.assertTrue(client.getTasks(TasksBy.potentialOwner,"mat").contains("task-summary-list")); 26 | Assert.assertTrue(clientObjects.getTasks(TasksBy.potentialOwner,"mat").size()==0); 27 | client.startProcess("org.specialtripsagency:specialtripsagencyproject:2.0.0", 28 | "org.specialtripsagency.specialtripsagencyprocess", 29 | "applicantName=AndreaUbbiali,emailAddress=ubbiali.com,numberOfTravelers=2i,otherDetails=NO,fromDestination=London,toDestination=Edinburgh" 30 | ); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /support/windows/unzip.vbs: -------------------------------------------------------------------------------- 1 | '* Script name: unzip.vbs 2 | '* Created on: 4/8/2013 3 | '* Author: Andrew Block 4 | '* Purpose: Extracts the contents of a specified compressed file 5 | '* to a specified folder 6 | 7 | 8 | Dim pathToZipFile 9 | Dim dirToExtractFiles 10 | 11 | If WScript.Arguments.Count = 2 Then 12 | pathToZipFile = WScript.Arguments.Item(0) 13 | dirToExtractFiles = WScript.Arguments.Item(1) 14 | Else 15 | WScript.Echo "2 Parameters are Required" 16 | WScript.Quit(99) 17 | End If 18 | 19 | Dim fso 20 | Set fso = CreateObject("Scripting.FileSystemObject") 21 | 22 | pathToZipFile = fso.GetAbsolutePathName(pathToZipFile) 23 | dirToExtractFiles = fso.GetAbsolutePathName(dirToExtractFiles) 24 | 25 | If (Not fso.FileExists(pathToZipFile)) Then 26 | WScript.Echo "Zip file does not exist: " & pathToZipFile 27 | WScript.Quit(99) 28 | End If 29 | 30 | If Not fso.FolderExists(dirToExtractFiles) Then 31 | WScript.Echo "Directory does not exist: " & dirToExtractFiles 32 | WScript.Quit(99) 33 | End If 34 | 35 | dim sa 36 | set sa = CreateObject("Shell.Application") 37 | 38 | Dim zip 39 | Set zip = sa.NameSpace(pathToZipFile) 40 | 41 | Dim d 42 | Set d = sa.NameSpace(dirToExtractFiles) 43 | 44 | 'd.CopyHere zip.items, 4 45 | d.CopyHere zip.items, 20 46 | 47 | Do Until zip.Items.Count <= d.Items.Count 48 | Wscript.Sleep(200) 49 | Loop -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/acme/service/soap/hotelws/CancelBookingResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlRootElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for anonymous complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType>
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *       <sequence>
20 |  *         <element name="out" type="{http://www.w3.org/2001/XMLSchema}double"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "", propOrder = { 31 | "out" 32 | }) 33 | @XmlRootElement(name = "cancelBookingResponse") 34 | public class CancelBookingResponse { 35 | 36 | protected int out; 37 | 38 | /** 39 | * Gets the value of the out property. 40 | * 41 | */ 42 | public int getOut() { 43 | return out; 44 | } 45 | 46 | /** 47 | * Sets the value of the out property. 48 | * 49 | */ 50 | public void setOut(int value) { 51 | this.out = value; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/com/jboss/soap/service/acmedemo/CancelBookingResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package com.jboss.soap.service.acmedemo; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlRootElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for anonymous complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType>
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *       <sequence>
20 |  *         <element name="out" type="{http://www.w3.org/2001/XMLSchema}int"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "", propOrder = { 31 | "out" 32 | }) 33 | @XmlRootElement(name = "cancelBookingResponse") 34 | public class CancelBookingResponse { 35 | 36 | protected int out; 37 | 38 | /** 39 | * Gets the value of the out property. 40 | * 41 | */ 42 | public int getOut() { 43 | return out; 44 | } 45 | 46 | /** 47 | * Sets the value of the out property. 48 | * 49 | */ 50 | public void setOut(int value) { 51 | this.out = value; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/src/main/java/acme/service/soap/hotelws/CancelBookingResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlRootElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for anonymous complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType>
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *       <sequence>
20 |  *         <element name="out" type="{http://www.w3.org/2001/XMLSchema}double"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "", propOrder = { 31 | "out" 32 | }) 33 | @XmlRootElement(name = "cancelBookingResponse") 34 | public class CancelBookingResponse { 35 | 36 | protected int out; 37 | 38 | /** 39 | * Gets the value of the out property. 40 | * 41 | */ 42 | public int getOut() { 43 | return out; 44 | } 45 | 46 | /** 47 | * Sets the value of the out property. 48 | * 49 | */ 50 | public void setOut(int value) { 51 | this.out = value; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /projects/fuseparent/bookingservice/src/main/java/org/blogdemo/travelagency/persistenceData/DebugBean.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.persistenceData; 2 | 3 | import java.util.Calendar; 4 | import java.util.Date; 5 | import java.util.List; 6 | 7 | import org.apache.camel.Exchange; 8 | import org.apache.camel.Processor; 9 | 10 | public class DebugBean implements Processor{ 11 | 12 | @Override 13 | public void process(Exchange exchange) throws Exception { 14 | //Object obj = exchange.getContext().getRegistry().lookupByName("entityManagerFactory"); 15 | 16 | //Object objclass = exchange.getContext().getRegistry().lookupByName("javax.persistence.EntityManagerFactory"); 17 | //LocalEntityManagerFactoryBean lemfb = (LocalEntityManagerFactoryBean) obj; 18 | //System.out.println("obj:["+lemfb+"]"); 19 | //System.out.println("PersistenceUnitName:["+lemfb.getPersistenceUnitName()+"]"); 20 | //System.out.println("PersistenceUnitInfo:["+lemfb.getPersistenceUnitInfo()+"]"); 21 | //System.out.println("objclass:["+objclass+"]"); 22 | } 23 | 24 | public void processResult(List result){ 25 | for(Object obj:result ){ 26 | //FlightInfo flightInfo = (FlightInfo) obj; 27 | System.out.println("Value:["+obj+"]" ); 28 | //System.out.println("flightInfo:["+flightInfo.getFlightid()+"] ["+flightInfo.getAirline()+"] ["+flightInfo.getDestination()+"]"); 29 | } 30 | } 31 | 32 | private Date getToday(){ 33 | Calendar cal = Calendar.getInstance(); 34 | return cal.getTime(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/src/main/java/com/jboss/soap/service/acmedemo/CancelBookingResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package com.jboss.soap.service.acmedemo; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlRootElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for anonymous complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType>
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *       <sequence>
20 |  *         <element name="out" type="{http://www.w3.org/2001/XMLSchema}int"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "", propOrder = { 31 | "out" 32 | }) 33 | @XmlRootElement(name = "cancelBookingResponse") 34 | public class CancelBookingResponse { 35 | 36 | protected int out; 37 | 38 | /** 39 | * Gets the value of the out property. 40 | * 41 | */ 42 | public int getOut() { 43 | return out; 44 | } 45 | 46 | /** 47 | * Sets the value of the out property. 48 | * 49 | */ 50 | public void setOut(int value) { 51 | this.out = value; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /projects/fuseparent/bookingservice/src/main/java/org/blogdemo/travelagency/persistenceData/BookingService.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.persistenceData; 2 | 3 | import java.math.BigInteger; 4 | import java.security.SecureRandom; 5 | import java.util.Calendar; 6 | import java.util.HashMap; 7 | import java.util.Map; 8 | import java.util.Random; 9 | 10 | public class BookingService { 11 | private SecureRandom secureRandom = new SecureRandom(); 12 | 13 | 14 | public BookingVO createBooking(String someStringFromBPMS){ 15 | Calendar cal = Calendar.getInstance(); 16 | 17 | BookingVO booking = new BookingVO(); 18 | booking.setBookingid(genBookingId()); 19 | booking.setRecieveDate(cal.getTime()); 20 | 21 | return booking; 22 | } 23 | 24 | public Map setBookingIdParam(String id){ 25 | Map param = new HashMap(); 26 | param.put("bookingid", id); 27 | 28 | return param; 29 | } 30 | 31 | public CancelBookingVO createCancelBooking(String id){ 32 | Calendar cal = Calendar.getInstance(); 33 | 34 | CancelBookingVO cancelbooking = new CancelBookingVO(); 35 | cancelbooking.setBookingid(id); 36 | cancelbooking.setRecieveDate(cal.getTime()); 37 | 38 | return cancelbooking; 39 | } 40 | 41 | private String genBookingId(){ 42 | 43 | return new BigInteger(130, secureRandom).toString(32); 44 | 45 | } 46 | 47 | public int cancelCharge(){ 48 | 49 | final Random random = new Random(); 50 | return random.nextInt((10-5)+1) + 5; 51 | 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /projects/fuseparent/bookingservice/src/main/resources/META-INF/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | org.hibernate.ejb.HibernatePersistence 9 | org.blogdemo.travelagency.persistenceData.BookingVO 10 | org.blogdemo.travelagency.persistenceData.CancelBookingVO 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /projects/fuseparent/hotelbookingservice/src/main/resources/META-INF/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | org.hibernate.ejb.HibernatePersistence 8 | 9 | org.blogdemo.travelagency.hotelbookingservice.Booking 10 | org.blogdemo.travelagency.hotelbookingservice.CancelBooking 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/wsdl/HotelWS_schema1.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionhotel/src/main/java/org/blogdemo/travelagency/promotionhotel/ResortInfo.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.promotionhotel; 2 | 3 | import java.io.Serializable; 4 | import java.math.BigDecimal; 5 | 6 | public class ResortInfo implements Serializable{ 7 | 8 | private static final long serialVersionUID = 6313854994010205L; 9 | 10 | int hotelId; 11 | String hotelName; 12 | BigDecimal ratePerPerson; 13 | String hotelCity; 14 | String availableFrom; 15 | String availableTo; 16 | public int getHotelId() { 17 | return hotelId; 18 | } 19 | public void setHotelId(int hotelId) { 20 | this.hotelId = hotelId; 21 | } 22 | public String getHotelName() { 23 | return hotelName; 24 | } 25 | public void setHotelName(String hotelName) { 26 | this.hotelName = hotelName; 27 | } 28 | public BigDecimal getRatePerPerson() { 29 | return ratePerPerson; 30 | } 31 | public void setRatePerPerson(BigDecimal ratePerPerson) { 32 | this.ratePerPerson = ratePerPerson; 33 | } 34 | public String getHotelCity() { 35 | return hotelCity; 36 | } 37 | public void setHotelCity(String hotelCity) { 38 | this.hotelCity = hotelCity; 39 | } 40 | public String getAvailableFrom() { 41 | return availableFrom; 42 | } 43 | public void setAvailableFrom(String availableFrom) { 44 | this.availableFrom = availableFrom; 45 | } 46 | public String getAvailableTo() { 47 | return availableTo; 48 | } 49 | public void setAvailableTo(String availableTo) { 50 | this.availableTo = availableTo; 51 | } 52 | 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/src/main/java/acme/service/soap/hotelws/impl/HotelWSImpl.java: -------------------------------------------------------------------------------- 1 | package acme.service.soap.hotelws.impl; 2 | 3 | 4 | import java.util.Random; 5 | 6 | import javax.jws.WebService; 7 | 8 | import acme.service.soap.hotelws.HotelRequest; 9 | import acme.service.soap.hotelws.HotelWS; 10 | import acme.service.soap.hotelws.Resort; 11 | 12 | @WebService(serviceName = "HotelWS", endpointInterface = "acme.service.soap.hotelws.HotelWS", targetNamespace = "http://soap.service.acme/HotelWS/") 13 | public class HotelWSImpl implements HotelWS { 14 | public String bookHotel(String in) { 15 | System.out.println("YOUR BOOKING HAS BEEN SUCCESSFUL"); 16 | 17 | SessionIdentifierGenerator bookingRef = new SessionIdentifierGenerator(); 18 | String refNum = bookingRef.nextSessionId(); 19 | 20 | System.out.println("YOUR BOOKING REFERENCE IS: "+ refNum); 21 | 22 | return refNum; 23 | } 24 | 25 | public int cancelBooking(String in) { 26 | int cancelCharge = 0; 27 | final Random random = new Random(); 28 | 29 | if (in == null) 30 | throw new IllegalArgumentException("No booking found"); 31 | 32 | cancelCharge = random.nextInt((10-5)+1) + 5; 33 | 34 | return cancelCharge; 35 | } 36 | 37 | public Resort getAvailableHotel(HotelRequest in) { 38 | Resort hotel = new Resort(); 39 | 40 | String hotelCity = in.getTargetCity(); 41 | 42 | hotel.setHotelId(395); 43 | hotel.setHotelName("Holiday Inn"); 44 | hotel.setRatePerPerson(200); 45 | hotel.setHotelCity(hotelCity); 46 | hotel.setAvailableFrom(in.getStartDate()); 47 | hotel.setAvailableTo(in.getEndDate()); 48 | 49 | return hotel; 50 | } 51 | } -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/acme/service/soap/hotelws/GetAvailableHotel.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlType; 7 | 8 | 9 | /** 10 | *

Java class for getAvailableHotel complex type. 11 | * 12 | *

The following schema fragment specifies the expected content contained within this class. 13 | * 14 | *

15 |  * <complexType name="getAvailableHotel">
16 |  *   <complexContent>
17 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18 |  *       <sequence>
19 |  *         <element name="in" type="{http://soap.service.acme/HotelWS/}hotelRequest" minOccurs="0"/>
20 |  *       </sequence>
21 |  *     </restriction>
22 |  *   </complexContent>
23 |  * </complexType>
24 |  * 
25 | * 26 | * 27 | */ 28 | @XmlAccessorType(XmlAccessType.FIELD) 29 | @XmlType(name = "getAvailableHotel", propOrder = { 30 | "in" 31 | }) 32 | public class GetAvailableHotel { 33 | 34 | protected HotelRequest in; 35 | 36 | /** 37 | * Gets the value of the in property. 38 | * 39 | * @return 40 | * possible object is 41 | * {@link HotelRequest } 42 | * 43 | */ 44 | public HotelRequest getIn() { 45 | return in; 46 | } 47 | 48 | /** 49 | * Sets the value of the in property. 50 | * 51 | * @param value 52 | * allowed object is 53 | * {@link HotelRequest } 54 | * 55 | */ 56 | public void setIn(HotelRequest value) { 57 | this.in = value; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/src/main/java/acme/service/soap/hotelws/GetAvailableHotel.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlType; 7 | 8 | 9 | /** 10 | *

Java class for getAvailableHotel complex type. 11 | * 12 | *

The following schema fragment specifies the expected content contained within this class. 13 | * 14 | *

15 |  * <complexType name="getAvailableHotel">
16 |  *   <complexContent>
17 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18 |  *       <sequence>
19 |  *         <element name="in" type="{http://soap.service.acme/HotelWS/}hotelRequest" minOccurs="0"/>
20 |  *       </sequence>
21 |  *     </restriction>
22 |  *   </complexContent>
23 |  * </complexType>
24 |  * 
25 | * 26 | * 27 | */ 28 | @XmlAccessorType(XmlAccessType.FIELD) 29 | @XmlType(name = "getAvailableHotel", propOrder = { 30 | "in" 31 | }) 32 | public class GetAvailableHotel { 33 | 34 | protected HotelRequest in; 35 | 36 | /** 37 | * Gets the value of the in property. 38 | * 39 | * @return 40 | * possible object is 41 | * {@link HotelRequest } 42 | * 43 | */ 44 | public HotelRequest getIn() { 45 | return in; 46 | } 47 | 48 | /** 49 | * Sets the value of the in property. 50 | * 51 | * @param value 52 | * allowed object is 53 | * {@link HotelRequest } 54 | * 55 | */ 56 | public void setIn(HotelRequest value) { 57 | this.in = value; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/com/jboss/soap/service/acmedemo/ListAvailablePlanes.java: -------------------------------------------------------------------------------- 1 | 2 | package com.jboss.soap.service.acmedemo; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlType; 7 | 8 | 9 | /** 10 | *

Java class for listAvailablePlanes complex type. 11 | * 12 | *

The following schema fragment specifies the expected content contained within this class. 13 | * 14 | *

15 |  * <complexType name="listAvailablePlanes">
16 |  *   <complexContent>
17 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18 |  *       <sequence>
19 |  *         <element name="in" type="{http://service.soap.jboss.com/AcmeDemo/}flightRequest" minOccurs="0"/>
20 |  *       </sequence>
21 |  *     </restriction>
22 |  *   </complexContent>
23 |  * </complexType>
24 |  * 
25 | * 26 | * 27 | */ 28 | @XmlAccessorType(XmlAccessType.FIELD) 29 | @XmlType(name = "listAvailablePlanes", propOrder = { 30 | "in" 31 | }) 32 | public class ListAvailablePlanes { 33 | 34 | protected FlightRequest in; 35 | 36 | /** 37 | * Gets the value of the in property. 38 | * 39 | * @return 40 | * possible object is 41 | * {@link FlightRequest } 42 | * 43 | */ 44 | public FlightRequest getIn() { 45 | return in; 46 | } 47 | 48 | /** 49 | * Sets the value of the in property. 50 | * 51 | * @param value 52 | * allowed object is 53 | * {@link FlightRequest } 54 | * 55 | */ 56 | public void setIn(FlightRequest value) { 57 | this.in = value; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/src/main/java/com/jboss/soap/service/acmedemo/ListAvailablePlanes.java: -------------------------------------------------------------------------------- 1 | 2 | package com.jboss.soap.service.acmedemo; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlType; 7 | 8 | 9 | /** 10 | *

Java class for listAvailablePlanes complex type. 11 | * 12 | *

The following schema fragment specifies the expected content contained within this class. 13 | * 14 | *

15 |  * <complexType name="listAvailablePlanes">
16 |  *   <complexContent>
17 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18 |  *       <sequence>
19 |  *         <element name="in" type="{http://service.soap.jboss.com/AcmeDemo/}flightRequest" minOccurs="0"/>
20 |  *       </sequence>
21 |  *     </restriction>
22 |  *   </complexContent>
23 |  * </complexType>
24 |  * 
25 | * 26 | * 27 | */ 28 | @XmlAccessorType(XmlAccessType.FIELD) 29 | @XmlType(name = "listAvailablePlanes", propOrder = { 30 | "in" 31 | }) 32 | public class ListAvailablePlanes { 33 | 34 | protected FlightRequest in; 35 | 36 | /** 37 | * Gets the value of the in property. 38 | * 39 | * @return 40 | * possible object is 41 | * {@link FlightRequest } 42 | * 43 | */ 44 | public FlightRequest getIn() { 45 | return in; 46 | } 47 | 48 | /** 49 | * Sets the value of the in property. 50 | * 51 | * @param value 52 | * allowed object is 53 | * {@link FlightRequest } 54 | * 55 | */ 56 | public void setIn(FlightRequest value) { 57 | this.in = value; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionflights/src/main/java/org/blogdemo/travelagency/promtionflights/DataProcessor.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.promtionflights; 2 | 3 | import java.math.BigDecimal; 4 | import java.util.ArrayList; 5 | import java.util.Date; 6 | import java.util.HashMap; 7 | import java.util.List; 8 | import java.util.Map; 9 | 10 | public class DataProcessor { 11 | 12 | 13 | /** 14 | * Will be a lot easier in Fuse 6.2 with Camel 2.15 15 | * */ 16 | public List processResultSet(List> resultset){ 17 | List avaliableFlights = new ArrayList(); 18 | System.out.println("resultset:["+resultset.size()+"]"); 19 | for(Map obj:resultset){ 20 | FlightInfo flightInfo = new FlightInfo(); 21 | flightInfo.setFlightid((Integer)obj.get("FLIGHTID")); 22 | flightInfo.setDeparture((String)obj.get("DEPARTURE")); 23 | flightInfo.setDestination((String)obj.get("DESTINATION")); 24 | flightInfo.setDeparturetime(obj.get("DEPARTURETIME").toString()); 25 | flightInfo.setArrivaltime(obj.get("ARRIVALTIME").toString()); 26 | flightInfo.setPrice((BigDecimal)obj.get("PRICE")); 27 | flightInfo.setAirline((String)obj.get("AIRLINE")); 28 | flightInfo.setFlightclass((String)obj.get("FLIGHTCLASS")); 29 | avaliableFlights.add(flightInfo); 30 | } 31 | 32 | System.out.println("avaliableFlights:["+avaliableFlights.size()+"]"); 33 | return avaliableFlights; 34 | } 35 | 36 | public HashMap checkup(HashMap input){ 37 | 38 | System.out.println("input:["+input+"]"); 39 | System.out.println("startcity:["+input.get("startcity")+"]"); 40 | System.out.println("endcity:["+input.get("endcity")+"]"); 41 | return input; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionhotel/src/main/resources/h2script/hotelsqlscript.sql: -------------------------------------------------------------------------------- 1 | drop table avaliablehotels; 2 | 3 | Create table avaliablehotels( 4 | hotelid int not null, 5 | hotelname varchar(255) not null, 6 | hotelcity varchar(255) not null, 7 | availableFrom timestamp not null, 8 | availableTo timestamp not null, 9 | ratePerPerson DECIMAL(20, 2) not null 10 | ); 11 | 12 | Insert into avaliablehotels VALUES (101,'The Hide London','London','2015-1-1 00:00:00','2015-12-31 00:00:00',140.00); 13 | Insert into avaliablehotels VALUES (102,'Premier Inn London Edmonton','London','2015-1-1 00:00:00','2015-12-31 00:00:00',150.00); 14 | Insert into avaliablehotels VALUES (103,'Travelodge London Wembley High Road','London','2015-1-1 00:00:00','2015-12-31 00:00:00',160.00); 15 | Insert into avaliablehotels VALUES (104,'The Prescott Hotel','San Fransico','2015-1-1 00:00:00','2015-12-31 00:00:00',209.00); 16 | Insert into avaliablehotels VALUES (105,'Old Mill Toronto','Toronto','2015-1-1 00:00:00','2015-12-31 00:00:00',235.00); 17 | Insert into avaliablehotels VALUES (106,'The St. Regis Washington','Washinton','2015-1-1 00:00:00','2015-12-31 00:00:00',150.00); 18 | Insert into avaliablehotels VALUES (107,'W TAIPEI','Taipei','2015-1-1 00:00:00','2015-12-31 00:00:00',120.00); 19 | Insert into avaliablehotels VALUES (108,'Grand Pacific Le Daiba','Tokyo','2015-1-1 00:00:00','2015-12-31 00:00:00',350.00); 20 | 21 | 22 | select * from avaliablehotels; 23 | 24 | 25 | create table hotelbooking( 26 | bookingid varchar(255) not null, 27 | recieveDate timestamp not null 28 | ); 29 | 30 | select * from hotelbooking; 31 | 32 | create table cancelhotelbooking( 33 | bookingid varchar(255) not null, 34 | recieveDate timestamp not null 35 | ); 36 | 37 | select * from cancelhotelbooking; -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/acme/service/soap/hotelws/BookHotelResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="out" type="{http://www.w3.org/2001/XMLSchema}string"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "out" 33 | }) 34 | @XmlRootElement(name = "bookHotelResponse") 35 | public class BookHotelResponse { 36 | 37 | @XmlElement(required = true) 38 | protected String out; 39 | 40 | /** 41 | * Gets the value of the out property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getOut() { 49 | return out; 50 | } 51 | 52 | /** 53 | * Sets the value of the out property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setOut(String value) { 61 | this.out = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/src/main/java/acme/service/soap/hotelws/BookHotelResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="out" type="{http://www.w3.org/2001/XMLSchema}string"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "out" 33 | }) 34 | @XmlRootElement(name = "bookHotelResponse") 35 | public class BookHotelResponse { 36 | 37 | @XmlElement(required = true) 38 | protected String out; 39 | 40 | /** 41 | * Gets the value of the out property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getOut() { 49 | return out; 50 | } 51 | 52 | /** 53 | * Sets the value of the out property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setOut(String value) { 61 | this.out = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/com/jboss/soap/service/acmedemo/BookFlightsResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package com.jboss.soap.service.acmedemo; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="out" type="{http://www.w3.org/2001/XMLSchema}string"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "out" 33 | }) 34 | @XmlRootElement(name = "bookFlightsResponse") 35 | public class BookFlightsResponse { 36 | 37 | @XmlElement(required = true) 38 | protected String out; 39 | 40 | /** 41 | * Gets the value of the out property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getOut() { 49 | return out; 50 | } 51 | 52 | /** 53 | * Sets the value of the out property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setOut(String value) { 61 | this.out = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/src/main/java/com/jboss/soap/service/acmedemo/BookFlightsResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package com.jboss.soap.service.acmedemo; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="out" type="{http://www.w3.org/2001/XMLSchema}string"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "out" 33 | }) 34 | @XmlRootElement(name = "bookFlightsResponse") 35 | public class BookFlightsResponse { 36 | 37 | @XmlElement(required = true) 38 | protected String out; 39 | 40 | /** 41 | * Gets the value of the out property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getOut() { 49 | return out; 50 | } 51 | 52 | /** 53 | * Sets the value of the out property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setOut(String value) { 61 | this.out = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/acme/service/soap/hotelws/BookHotel.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import java.io.Serializable; 5 | 6 | import javax.xml.bind.annotation.XmlAccessType; 7 | import javax.xml.bind.annotation.XmlAccessorType; 8 | import javax.xml.bind.annotation.XmlElement; 9 | import javax.xml.bind.annotation.XmlRootElement; 10 | import javax.xml.bind.annotation.XmlType; 11 | 12 | 13 | /** 14 | *

Java class for anonymous complex type. 15 | * 16 | *

The following schema fragment specifies the expected content contained within this class. 17 | * 18 | *

19 |  * <complexType>
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="in" type="{http://www.w3.org/2001/XMLSchema}string"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | * 30 | * 31 | */ 32 | @XmlAccessorType(XmlAccessType.FIELD) 33 | @XmlType(name = "", propOrder = { 34 | "in" 35 | }) 36 | @XmlRootElement(name = "bookHotel") 37 | public class BookHotel implements Serializable { 38 | 39 | @XmlElement(required = true) 40 | protected String in; 41 | 42 | /** 43 | * Gets the value of the in property. 44 | * 45 | * @return 46 | * possible object is 47 | * {@link String } 48 | * 49 | */ 50 | public String getIn() { 51 | return in; 52 | } 53 | 54 | /** 55 | * Sets the value of the in property. 56 | * 57 | * @param value 58 | * allowed object is 59 | * {@link String } 60 | * 61 | */ 62 | public void setIn(String value) { 63 | this.in = value; 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/acme/service/soap/hotelws/GetAvailableHotelResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for getAvailableHotelResponse complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType name="getAvailableHotelResponse">
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *       <sequence>
20 |  *         <element name="return" type="{http://soap.service.acme/HotelWS/}resort" minOccurs="0"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "getAvailableHotelResponse", propOrder = { 31 | "_return" 32 | }) 33 | public class GetAvailableHotelResponse { 34 | 35 | @XmlElement(name = "return") 36 | protected Resort _return; 37 | 38 | /** 39 | * Gets the value of the return property. 40 | * 41 | * @return 42 | * possible object is 43 | * {@link Resort } 44 | * 45 | */ 46 | public Resort getReturn() { 47 | return _return; 48 | } 49 | 50 | /** 51 | * Sets the value of the return property. 52 | * 53 | * @param value 54 | * allowed object is 55 | * {@link Resort } 56 | * 57 | */ 58 | public void setReturn(Resort value) { 59 | this._return = value; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/acme/service/soap/hotelws/CancelBooking.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import java.io.Serializable; 5 | 6 | import javax.xml.bind.annotation.XmlAccessType; 7 | import javax.xml.bind.annotation.XmlAccessorType; 8 | import javax.xml.bind.annotation.XmlElement; 9 | import javax.xml.bind.annotation.XmlRootElement; 10 | import javax.xml.bind.annotation.XmlType; 11 | 12 | 13 | /** 14 | *

Java class for anonymous complex type. 15 | * 16 | *

The following schema fragment specifies the expected content contained within this class. 17 | * 18 | *

19 |  * <complexType>
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="in" type="{http://www.w3.org/2001/XMLSchema}string"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | * 30 | * 31 | */ 32 | @XmlAccessorType(XmlAccessType.FIELD) 33 | @XmlType(name = "", propOrder = { 34 | "in" 35 | }) 36 | @XmlRootElement(name = "cancelBooking") 37 | public class CancelBooking implements Serializable { 38 | 39 | @XmlElement(required = true) 40 | protected String in; 41 | 42 | /** 43 | * Gets the value of the in property. 44 | * 45 | * @return 46 | * possible object is 47 | * {@link String } 48 | * 49 | */ 50 | public String getIn() { 51 | return in; 52 | } 53 | 54 | /** 55 | * Sets the value of the in property. 56 | * 57 | * @param value 58 | * allowed object is 59 | * {@link String } 60 | * 61 | */ 62 | public void setIn(String value) { 63 | this.in = value; 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/src/main/java/acme/service/soap/hotelws/BookHotel.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import java.io.Serializable; 5 | 6 | import javax.xml.bind.annotation.XmlAccessType; 7 | import javax.xml.bind.annotation.XmlAccessorType; 8 | import javax.xml.bind.annotation.XmlElement; 9 | import javax.xml.bind.annotation.XmlRootElement; 10 | import javax.xml.bind.annotation.XmlType; 11 | 12 | 13 | /** 14 | *

Java class for anonymous complex type. 15 | * 16 | *

The following schema fragment specifies the expected content contained within this class. 17 | * 18 | *

19 |  * <complexType>
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="in" type="{http://www.w3.org/2001/XMLSchema}string"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | * 30 | * 31 | */ 32 | @XmlAccessorType(XmlAccessType.FIELD) 33 | @XmlType(name = "", propOrder = { 34 | "in" 35 | }) 36 | @XmlRootElement(name = "bookHotel") 37 | public class BookHotel implements Serializable { 38 | 39 | @XmlElement(required = true) 40 | protected String in; 41 | 42 | /** 43 | * Gets the value of the in property. 44 | * 45 | * @return 46 | * possible object is 47 | * {@link String } 48 | * 49 | */ 50 | public String getIn() { 51 | return in; 52 | } 53 | 54 | /** 55 | * Sets the value of the in property. 56 | * 57 | * @param value 58 | * allowed object is 59 | * {@link String } 60 | * 61 | */ 62 | public void setIn(String value) { 63 | this.in = value; 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/src/main/java/acme/service/soap/hotelws/GetAvailableHotelResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for getAvailableHotelResponse complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType name="getAvailableHotelResponse">
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *       <sequence>
20 |  *         <element name="return" type="{http://soap.service.acme/HotelWS/}resort" minOccurs="0"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "getAvailableHotelResponse", propOrder = { 31 | "_return" 32 | }) 33 | public class GetAvailableHotelResponse { 34 | 35 | @XmlElement(name = "return") 36 | protected Resort _return; 37 | 38 | /** 39 | * Gets the value of the return property. 40 | * 41 | * @return 42 | * possible object is 43 | * {@link Resort } 44 | * 45 | */ 46 | public Resort getReturn() { 47 | return _return; 48 | } 49 | 50 | /** 51 | * Sets the value of the return property. 52 | * 53 | * @param value 54 | * allowed object is 55 | * {@link Resort } 56 | * 57 | */ 58 | public void setReturn(Resort value) { 59 | this._return = value; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/com/jboss/soap/service/acmedemo/BookFlights.java: -------------------------------------------------------------------------------- 1 | 2 | package com.jboss.soap.service.acmedemo; 3 | 4 | import java.io.Serializable; 5 | 6 | import javax.xml.bind.annotation.XmlAccessType; 7 | import javax.xml.bind.annotation.XmlAccessorType; 8 | import javax.xml.bind.annotation.XmlElement; 9 | import javax.xml.bind.annotation.XmlRootElement; 10 | import javax.xml.bind.annotation.XmlType; 11 | 12 | 13 | /** 14 | *

Java class for anonymous complex type. 15 | * 16 | *

The following schema fragment specifies the expected content contained within this class. 17 | * 18 | *

19 |  * <complexType>
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="in" type="{http://www.w3.org/2001/XMLSchema}string"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | * 30 | * 31 | */ 32 | @XmlAccessorType(XmlAccessType.FIELD) 33 | @XmlType(name = "", propOrder = { 34 | "in" 35 | }) 36 | @XmlRootElement(name = "bookFlights") 37 | public class BookFlights implements Serializable { 38 | 39 | @XmlElement(required = true) 40 | protected String in; 41 | 42 | /** 43 | * Gets the value of the in property. 44 | * 45 | * @return 46 | * possible object is 47 | * {@link String } 48 | * 49 | */ 50 | public String getIn() { 51 | return in; 52 | } 53 | 54 | /** 55 | * Sets the value of the in property. 56 | * 57 | * @param value 58 | * allowed object is 59 | * {@link String } 60 | * 61 | */ 62 | public void setIn(String value) { 63 | this.in = value; 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/src/main/java/acme/service/soap/hotelws/CancelBooking.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import java.io.Serializable; 5 | 6 | import javax.xml.bind.annotation.XmlAccessType; 7 | import javax.xml.bind.annotation.XmlAccessorType; 8 | import javax.xml.bind.annotation.XmlElement; 9 | import javax.xml.bind.annotation.XmlRootElement; 10 | import javax.xml.bind.annotation.XmlType; 11 | 12 | 13 | /** 14 | *

Java class for anonymous complex type. 15 | * 16 | *

The following schema fragment specifies the expected content contained within this class. 17 | * 18 | *

19 |  * <complexType>
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="in" type="{http://www.w3.org/2001/XMLSchema}string"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | * 30 | * 31 | */ 32 | @XmlAccessorType(XmlAccessType.FIELD) 33 | @XmlType(name = "", propOrder = { 34 | "in" 35 | }) 36 | @XmlRootElement(name = "cancelBooking") 37 | public class CancelBooking implements Serializable { 38 | 39 | @XmlElement(required = true) 40 | protected String in; 41 | 42 | /** 43 | * Gets the value of the in property. 44 | * 45 | * @return 46 | * possible object is 47 | * {@link String } 48 | * 49 | */ 50 | public String getIn() { 51 | return in; 52 | } 53 | 54 | /** 55 | * Sets the value of the in property. 56 | * 57 | * @param value 58 | * allowed object is 59 | * {@link String } 60 | * 61 | */ 62 | public void setIn(String value) { 63 | this.in = value; 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/com/jboss/soap/service/acmedemo/CancelBooking.java: -------------------------------------------------------------------------------- 1 | 2 | package com.jboss.soap.service.acmedemo; 3 | 4 | import java.io.Serializable; 5 | 6 | import javax.xml.bind.annotation.XmlAccessType; 7 | import javax.xml.bind.annotation.XmlAccessorType; 8 | import javax.xml.bind.annotation.XmlElement; 9 | import javax.xml.bind.annotation.XmlRootElement; 10 | import javax.xml.bind.annotation.XmlType; 11 | 12 | 13 | /** 14 | *

Java class for anonymous complex type. 15 | * 16 | *

The following schema fragment specifies the expected content contained within this class. 17 | * 18 | *

19 |  * <complexType>
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="in" type="{http://www.w3.org/2001/XMLSchema}string"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | * 30 | * 31 | */ 32 | @XmlAccessorType(XmlAccessType.FIELD) 33 | @XmlType(name = "", propOrder = { 34 | "in" 35 | }) 36 | @XmlRootElement(name = "cancelBooking") 37 | public class CancelBooking implements Serializable { 38 | 39 | @XmlElement(required = true) 40 | protected String in; 41 | 42 | /** 43 | * Gets the value of the in property. 44 | * 45 | * @return 46 | * possible object is 47 | * {@link String } 48 | * 49 | */ 50 | public String getIn() { 51 | return in; 52 | } 53 | 54 | /** 55 | * Sets the value of the in property. 56 | * 57 | * @param value 58 | * allowed object is 59 | * {@link String } 60 | * 61 | */ 62 | public void setIn(String value) { 63 | this.in = value; 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/src/main/java/com/jboss/soap/service/acmedemo/BookFlights.java: -------------------------------------------------------------------------------- 1 | 2 | package com.jboss.soap.service.acmedemo; 3 | 4 | import java.io.Serializable; 5 | 6 | import javax.xml.bind.annotation.XmlAccessType; 7 | import javax.xml.bind.annotation.XmlAccessorType; 8 | import javax.xml.bind.annotation.XmlElement; 9 | import javax.xml.bind.annotation.XmlRootElement; 10 | import javax.xml.bind.annotation.XmlType; 11 | 12 | 13 | /** 14 | *

Java class for anonymous complex type. 15 | * 16 | *

The following schema fragment specifies the expected content contained within this class. 17 | * 18 | *

19 |  * <complexType>
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="in" type="{http://www.w3.org/2001/XMLSchema}string"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | * 30 | * 31 | */ 32 | @XmlAccessorType(XmlAccessType.FIELD) 33 | @XmlType(name = "", propOrder = { 34 | "in" 35 | }) 36 | @XmlRootElement(name = "bookFlights") 37 | public class BookFlights implements Serializable { 38 | 39 | @XmlElement(required = true) 40 | protected String in; 41 | 42 | /** 43 | * Gets the value of the in property. 44 | * 45 | * @return 46 | * possible object is 47 | * {@link String } 48 | * 49 | */ 50 | public String getIn() { 51 | return in; 52 | } 53 | 54 | /** 55 | * Sets the value of the in property. 56 | * 57 | * @param value 58 | * allowed object is 59 | * {@link String } 60 | * 61 | */ 62 | public void setIn(String value) { 63 | this.in = value; 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/com/jboss/soap/service/acmedemo/ListAvailablePlanesResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package com.jboss.soap.service.acmedemo; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for listAvailablePlanesResponse complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType name="listAvailablePlanesResponse">
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *       <sequence>
20 |  *         <element name="return" type="{http://service.soap.jboss.com/AcmeDemo/}flight" minOccurs="0"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "listAvailablePlanesResponse", propOrder = { 31 | "_return" 32 | }) 33 | public class ListAvailablePlanesResponse { 34 | 35 | @XmlElement(name = "return") 36 | protected Flight _return; 37 | 38 | /** 39 | * Gets the value of the return property. 40 | * 41 | * @return 42 | * possible object is 43 | * {@link Flight } 44 | * 45 | */ 46 | public Flight getReturn() { 47 | return _return; 48 | } 49 | 50 | /** 51 | * Sets the value of the return property. 52 | * 53 | * @param value 54 | * allowed object is 55 | * {@link Flight } 56 | * 57 | */ 58 | public void setReturn(Flight value) { 59 | this._return = value; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/src/main/java/com/jboss/soap/service/acmedemo/CancelBooking.java: -------------------------------------------------------------------------------- 1 | 2 | package com.jboss.soap.service.acmedemo; 3 | 4 | import java.io.Serializable; 5 | 6 | import javax.xml.bind.annotation.XmlAccessType; 7 | import javax.xml.bind.annotation.XmlAccessorType; 8 | import javax.xml.bind.annotation.XmlElement; 9 | import javax.xml.bind.annotation.XmlRootElement; 10 | import javax.xml.bind.annotation.XmlType; 11 | 12 | 13 | /** 14 | *

Java class for anonymous complex type. 15 | * 16 | *

The following schema fragment specifies the expected content contained within this class. 17 | * 18 | *

19 |  * <complexType>
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="in" type="{http://www.w3.org/2001/XMLSchema}string"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | * 30 | * 31 | */ 32 | @XmlAccessorType(XmlAccessType.FIELD) 33 | @XmlType(name = "", propOrder = { 34 | "in" 35 | }) 36 | @XmlRootElement(name = "cancelBooking") 37 | public class CancelBooking implements Serializable { 38 | 39 | @XmlElement(required = true) 40 | protected String in; 41 | 42 | /** 43 | * Gets the value of the in property. 44 | * 45 | * @return 46 | * possible object is 47 | * {@link String } 48 | * 49 | */ 50 | public String getIn() { 51 | return in; 52 | } 53 | 54 | /** 55 | * Sets the value of the in property. 56 | * 57 | * @param value 58 | * allowed object is 59 | * {@link String } 60 | * 61 | */ 62 | public void setIn(String value) { 63 | this.in = value; 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/src/main/java/com/jboss/soap/service/acmedemo/ListAvailablePlanesResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package com.jboss.soap.service.acmedemo; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for listAvailablePlanesResponse complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType name="listAvailablePlanesResponse">
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *       <sequence>
20 |  *         <element name="return" type="{http://service.soap.jboss.com/AcmeDemo/}flight" minOccurs="0"/>
21 |  *       </sequence>
22 |  *     </restriction>
23 |  *   </complexContent>
24 |  * </complexType>
25 |  * 
26 | * 27 | * 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "listAvailablePlanesResponse", propOrder = { 31 | "_return" 32 | }) 33 | public class ListAvailablePlanesResponse { 34 | 35 | @XmlElement(name = "return") 36 | protected Flight _return; 37 | 38 | /** 39 | * Gets the value of the return property. 40 | * 41 | * @return 42 | * possible object is 43 | * {@link Flight } 44 | * 45 | */ 46 | public Flight getReturn() { 47 | return _return; 48 | } 49 | 50 | /** 51 | * Sets the value of the return property. 52 | * 53 | * @param value 54 | * allowed object is 55 | * {@link Flight } 56 | * 57 | */ 58 | public void setReturn(Flight value) { 59 | this._return = value; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /projects/instance-generator/bpmsClient.json.v2: -------------------------------------------------------------------------------- 1 | { 2 | "url": "http://localhost:8080/business-central/", 3 | "username": "erics", 4 | "password": "bpmsuite1!", 5 | "max_task_delay": 10000, 6 | "n_instances": 1, 7 | 8 | "price": 5000, 9 | 10 | "travellers" : ["1i","1i","2i","2i","2i","3i","4i"], 11 | 12 | "review": ["False","False","True"], 13 | 14 | "names": ["Kiara Z. Hanson", 15 | "Jordan X. May", 16 | "Castor Lewis", 17 | "Ainsley B. Griffin", 18 | "Yael W. Dotson", 19 | "Cyrus Burke", 20 | "Martina L. Palmer", 21 | "Lareina Castro", 22 | "Leroy F. Blanchard", 23 | "Jared Middleton", 24 | "Kirby Hayden", 25 | "Rinah Anthony", 26 | "Aquila E. Howell", 27 | "Jennifer Ortiz", 28 | "Macaulay H. Morrison", 29 | "Shellie Merrill", 30 | "Jarrod Estrada", 31 | "Ursula Hines", 32 | "Armando P. Ruiz", 33 | "Kirestin W. Head", 34 | "Pamela D. Hammond", 35 | "Dawn M. Kane"], 36 | 37 | "vars": [ 38 | { 39 | "name": "price", 40 | "type": "int", 41 | "value": { "min":2400, 42 | "max":7000} 43 | }, 44 | { 45 | "name": "travellers", 46 | "type": "choice", 47 | "value": ["1i","1i","2i","2i","2i","3i","4i"] 48 | }, 49 | { 50 | "name": "review", 51 | "type": "choice", 52 | "value": ["False","False","True"] 53 | } 54 | ], 55 | 56 | 57 | 58 | "tasks": [ 59 | { 60 | "name":"Employee Booking", 61 | "out": "reviewRequiredOut=${review},reviewRequiredDetailsOut=No Details,bookingConfirmedOut=NO" 62 | }, 63 | { 64 | "name":"Price Review", 65 | "out": "totalPriceOut=${price},reviewerCommentOut=No Comments" 66 | }, 67 | { 68 | "name":"Booking Complete", 69 | "out": "" 70 | } 71 | 72 | 73 | 74 | ] 75 | 76 | } 77 | 78 | -------------------------------------------------------------------------------- /projects/external-client-ui-form/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | demo 4 | external-client-ui-form 5 | 1.0 6 | war 7 | 8 | src 9 | 10 | 11 | maven-compiler-plugin 12 | 3.1 13 | 14 | 1.6 15 | 1.6 16 | 17 | 18 | 19 | maven-war-plugin 20 | 2.3 21 | 22 | WebContent 23 | false 24 | 25 | 26 | 27 | 28 | 29 | 30 | javax.servlet 31 | javax.servlet-api 32 | 3.1.0 33 | 34 | 35 | org.apache.httpcomponents 36 | httpclient 37 | 4.2.5 38 | 39 | 40 | com.jayway.restassured 41 | rest-assured 42 | 1.8.1 43 | 44 | 45 | commons-lang 46 | commons-lang 47 | 2.4 48 | 49 | 50 | com.google.guava 51 | guava 52 | 14.0.1 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /projects/fuseparent/bookingservice/src/main/resources/h2script/sqlscript: -------------------------------------------------------------------------------- 1 | 2 | drop table avaliableflights; 3 | Create table avaliableflights( 4 | flightid int not null, 5 | airline varchar(255) not null, 6 | departure varchar(255) not null, 7 | destination varchar(255) not null, 8 | departuretime timestamp not null, 9 | arrivaltime timestamp not null, 10 | flightclass varchar(255) not null, 11 | price DECIMAL(20, 2) not null 12 | ); 13 | 14 | Insert into avaliableflights VALUES (1001,'Delta','Boston','London','2015-5-20 18:25:00','2015-5-21 11:50:00','E',1100.00); 15 | Insert into avaliableflights VALUES (1002,'KLM','Boston','London','2015-5-19 21:25:00','2015-5-20 9:50:00','E',1200.00); 16 | Insert into avaliableflights VALUES (1003,'British Airway','Boston','London','2015-5-18 20:35:00','2015-5-19 15:10:00','E',1250.00); 17 | Insert into avaliableflights VALUES (1004,'Icelandair','London','San Fransico','2015-5-20 06:30:00','2015-5-20 12:45:00','E',999.00); 18 | Insert into avaliableflights VALUES (1005,'Air Canada','London','Toronto','2015-5-20 12:00:00','2015-5-20 15:10:00','E',835.00); 19 | Insert into avaliableflights VALUES (1006,'British Airway','London','Washinton','2015-5-20 07:30:00','2015-5-20 09:35:00','E',1300.00); 20 | Insert into avaliableflights VALUES (1007,'Eva Air','London','Taipei','2015-5-20 21:20:00','2015-5-21 17:15:00','E',900.00); 21 | Insert into avaliableflights VALUES (1008,'Japan airlines','London','Tokyo','2015-5-20 19:35:00','2015-5-21 13:45:00','E',950.00); 22 | 23 | select * from avaliableflights; 24 | 25 | create table booking( 26 | bookingid varchar(255) not null, 27 | recieveDate timestamp not null 28 | ); 29 | 30 | select * from booking; 31 | 32 | create table cancelbooking( 33 | bookingid varchar(255) not null, 34 | recieveDate timestamp not null 35 | ); 36 | 37 | select * from cancelbooking; 38 | 39 | 40 | SELECT * from avaliableflights where departure='London' and destination='Taipei' 41 | and departuretime>='' and arrivaltime<='2015-12-01 00:00:00' 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionflights/src/main/java/org/blogdemo/travelagency/promtionflights/FlightInfo.java: -------------------------------------------------------------------------------- 1 | package org.blogdemo.travelagency.promtionflights; 2 | 3 | import java.io.Serializable; 4 | import java.math.BigDecimal; 5 | import java.util.Date; 6 | 7 | public class FlightInfo implements Serializable { 8 | 9 | private static final long serialVersionUID = 7868156868993544851L; 10 | 11 | 12 | private int flightid; 13 | private String airline; 14 | private String departure; 15 | private String destination; 16 | private String departuretime; 17 | private String arrivaltime; 18 | private String flightclass; 19 | private BigDecimal price; 20 | 21 | public int getFlightid() { 22 | return flightid; 23 | } 24 | 25 | public void setFlightid(int flightid) { 26 | this.flightid = flightid; 27 | } 28 | 29 | public String getAirline() { 30 | return airline; 31 | } 32 | 33 | public void setAirline(String airline) { 34 | this.airline = airline; 35 | } 36 | 37 | public String getDeparture() { 38 | return departure; 39 | } 40 | 41 | public void setDeparture(String departure) { 42 | this.departure = departure; 43 | } 44 | 45 | public String getDestination() { 46 | return destination; 47 | } 48 | 49 | public void setDestination(String destination) { 50 | this.destination = destination; 51 | } 52 | 53 | public String getDeparturetime() { 54 | return departuretime; 55 | } 56 | 57 | public void setDeparturetime(String departuretime) { 58 | this.departuretime = departuretime; 59 | } 60 | 61 | public String getArrivaltime() { 62 | return arrivaltime; 63 | } 64 | 65 | public void setArrivaltime(String arrivaltime) { 66 | this.arrivaltime = arrivaltime; 67 | } 68 | 69 | public String getFlightclass() { 70 | return flightclass; 71 | } 72 | 73 | public void setFlightclass(String flightclass) { 74 | this.flightclass = flightclass; 75 | } 76 | 77 | public BigDecimal getPrice() { 78 | return price; 79 | } 80 | 81 | public void setPrice(BigDecimal price) { 82 | this.price = price; 83 | } 84 | 85 | public static long getSerialversionuid() { 86 | return serialVersionUID; 87 | } 88 | 89 | 90 | 91 | 92 | } 93 | -------------------------------------------------------------------------------- /projects/instance-generator/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | org.jboss.jbpm 5 | instance-generator 6 | 1.0 7 | jar 8 | 9 | 10 | 11 | com.googlecode.json-simple 12 | json-simple 13 | 1.1 14 | 15 | 16 | com.google.guava 17 | guava 18 | 14.0.1 19 | 20 | 21 | commons-lang 22 | commons-lang 23 | 2.4 24 | 25 | 26 | org.apache.httpcomponents 27 | httpclient 28 | 4.2.5 29 | 30 | 31 | com.jayway.restassured 32 | rest-assured 33 | 1.8.1 34 | 35 | 36 | junit 37 | junit 38 | 4.11 39 | test 40 | 41 | 42 | 43 | 44 | 45 | 46 | maven-assembly-plugin 47 | 48 | 49 | 50 | org.jboss.jbpm.bpmsClientMain 51 | 52 | 53 | 54 | jar-with-dependencies 55 | 56 | 57 | 58 | 59 | make-assembly 60 | package 61 | 62 | single 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /support/installation-bpms: -------------------------------------------------------------------------------- 1 | 2 | 3 | BPMS 4 | 6.1.0 5 | 6 | 7 | target/jboss-eap-6.4 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/acme/service/soap/hotelws/HotelWS.java: -------------------------------------------------------------------------------- 1 | package acme.service.soap.hotelws; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.xml.bind.annotation.XmlSeeAlso; 8 | import javax.xml.ws.RequestWrapper; 9 | import javax.xml.ws.ResponseWrapper; 10 | 11 | /** 12 | * This class was generated by Apache CXF 2.7.10 13 | * 2014-11-05T11:20:36.714Z 14 | * Generated source version: 2.7.10 15 | * 16 | */ 17 | @WebService(targetNamespace = "http://soap.service.acme/HotelWS/", name = "HotelWS") 18 | @XmlSeeAlso({ObjectFactory.class}) 19 | public interface HotelWS { 20 | 21 | @WebResult(name = "out", targetNamespace = "") 22 | @RequestWrapper(localName = "bookHotel", targetNamespace = "http://soap.service.acme/HotelWS/", className = "acme.service.soap.hotelws.BookHotel") 23 | @WebMethod 24 | @ResponseWrapper(localName = "bookHotelResponse", targetNamespace = "http://soap.service.acme/HotelWS/", className = "acme.service.soap.hotelws.BookHotelResponse") 25 | public java.lang.String bookHotel( 26 | @WebParam(name = "in", targetNamespace = "") 27 | java.lang.String in 28 | ); 29 | 30 | @WebResult(name = "out", targetNamespace = "") 31 | @RequestWrapper(localName = "cancelBooking", targetNamespace = "http://soap.service.acme/HotelWS/", className = "acme.service.soap.hotelws.CancelBooking") 32 | @WebMethod 33 | @ResponseWrapper(localName = "cancelBookingResponse", targetNamespace = "http://soap.service.acme/HotelWS/", className = "acme.service.soap.hotelws.CancelBookingResponse") 34 | public int cancelBooking( 35 | @WebParam(name = "in", targetNamespace = "") 36 | java.lang.String in 37 | ); 38 | 39 | @WebResult(name = "return", targetNamespace = "") 40 | @RequestWrapper(localName = "getAvailableHotel", targetNamespace = "http://soap.service.acme/HotelWS/", className = "acme.service.soap.hotelws.GetAvailableHotel") 41 | @WebMethod(action = "http://soap.service.acme/HotelWS/getAvailableHotel") 42 | @ResponseWrapper(localName = "getAvailableHotelResponse", targetNamespace = "http://soap.service.acme/HotelWS/", className = "acme.service.soap.hotelws.GetAvailableHotelResponse") 43 | public acme.service.soap.hotelws.Resort getAvailableHotel( 44 | @WebParam(name = "in", targetNamespace = "") 45 | acme.service.soap.hotelws.HotelRequest in 46 | ); 47 | } 48 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/src/main/java/acme/service/soap/hotelws/HotelWS.java: -------------------------------------------------------------------------------- 1 | package acme.service.soap.hotelws; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.xml.bind.annotation.XmlSeeAlso; 8 | import javax.xml.ws.RequestWrapper; 9 | import javax.xml.ws.ResponseWrapper; 10 | 11 | /** 12 | * This class was generated by Apache CXF 2.7.10 13 | * 2014-11-05T11:20:36.714Z 14 | * Generated source version: 2.7.10 15 | * 16 | */ 17 | @WebService(targetNamespace = "http://soap.service.acme/HotelWS/", name = "HotelWS") 18 | @XmlSeeAlso({ObjectFactory.class}) 19 | public interface HotelWS { 20 | 21 | @WebResult(name = "out", targetNamespace = "") 22 | @RequestWrapper(localName = "bookHotel", targetNamespace = "http://soap.service.acme/HotelWS/", className = "acme.service.soap.hotelws.BookHotel") 23 | @WebMethod 24 | @ResponseWrapper(localName = "bookHotelResponse", targetNamespace = "http://soap.service.acme/HotelWS/", className = "acme.service.soap.hotelws.BookHotelResponse") 25 | public java.lang.String bookHotel( 26 | @WebParam(name = "in", targetNamespace = "") 27 | java.lang.String in 28 | ); 29 | 30 | @WebResult(name = "out", targetNamespace = "") 31 | @RequestWrapper(localName = "cancelBooking", targetNamespace = "http://soap.service.acme/HotelWS/", className = "acme.service.soap.hotelws.CancelBooking") 32 | @WebMethod 33 | @ResponseWrapper(localName = "cancelBookingResponse", targetNamespace = "http://soap.service.acme/HotelWS/", className = "acme.service.soap.hotelws.CancelBookingResponse") 34 | public int cancelBooking( 35 | @WebParam(name = "in", targetNamespace = "") 36 | java.lang.String in 37 | ); 38 | 39 | @WebResult(name = "return", targetNamespace = "") 40 | @RequestWrapper(localName = "getAvailableHotel", targetNamespace = "http://soap.service.acme/HotelWS/", className = "acme.service.soap.hotelws.GetAvailableHotel") 41 | @WebMethod(action = "http://soap.service.acme/HotelWS/getAvailableHotel") 42 | @ResponseWrapper(localName = "getAvailableHotelResponse", targetNamespace = "http://soap.service.acme/HotelWS/", className = "acme.service.soap.hotelws.GetAvailableHotelResponse") 43 | public acme.service.soap.hotelws.Resort getAvailableHotel( 44 | @WebParam(name = "in", targetNamespace = "") 45 | acme.service.soap.hotelws.HotelRequest in 46 | ); 47 | } 48 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/wsdl/AcmeDemoService_schema1.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/com/jboss/soap/service/acmedemo/AcmeDemoInterface.java: -------------------------------------------------------------------------------- 1 | package com.jboss.soap.service.acmedemo; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.xml.bind.annotation.XmlSeeAlso; 8 | import javax.xml.ws.RequestWrapper; 9 | import javax.xml.ws.ResponseWrapper; 10 | 11 | /** 12 | * This class was generated by Apache CXF 2.7.10 13 | * 2014-11-05T10:51:47.239Z 14 | * Generated source version: 2.7.10 15 | * 16 | */ 17 | @WebService(targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", name = "AcmeDemoInterface") 18 | @XmlSeeAlso({ObjectFactory.class}) 19 | public interface AcmeDemoInterface { 20 | 21 | @WebResult(name = "return", targetNamespace = "") 22 | @RequestWrapper(localName = "listAvailablePlanes", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", className = "com.jboss.soap.service.acmedemo.ListAvailablePlanes") 23 | @WebMethod(action = "http://service.soap.jboss.com/AcmeDemo/listAvailablePlanes") 24 | @ResponseWrapper(localName = "listAvailablePlanesResponse", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", className = "com.jboss.soap.service.acmedemo.ListAvailablePlanesResponse") 25 | public Flight listAvailablePlanes( 26 | @WebParam(name = "in", targetNamespace = "") 27 | FlightRequest in 28 | ); 29 | 30 | @WebResult(name = "out", targetNamespace = "") 31 | @RequestWrapper(localName = "bookFlights", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", className = "com.jboss.soap.service.acmedemo.BookFlights") 32 | @WebMethod 33 | @ResponseWrapper(localName = "bookFlightsResponse", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", className = "com.jboss.soap.service.acmedemo.BookFlightsResponse") 34 | public String bookFlights( 35 | @WebParam(name = "in", targetNamespace = "") 36 | String in 37 | ); 38 | 39 | @WebResult(name = "out", targetNamespace = "") 40 | @RequestWrapper(localName = "cancelBooking", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", className = "com.jboss.soap.service.acmedemo.CancelBooking") 41 | @WebMethod 42 | @ResponseWrapper(localName = "cancelBookingResponse", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", className = "com.jboss.soap.service.acmedemo.CancelBookingResponse") 43 | public int cancelBooking( 44 | @WebParam(name = "in", targetNamespace = "") 45 | String in 46 | ); 47 | } 48 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/src/main/java/com/jboss/soap/service/acmedemo/AcmeDemoInterface.java: -------------------------------------------------------------------------------- 1 | package com.jboss.soap.service.acmedemo; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.xml.bind.annotation.XmlSeeAlso; 8 | import javax.xml.ws.RequestWrapper; 9 | import javax.xml.ws.ResponseWrapper; 10 | 11 | /** 12 | * This class was generated by Apache CXF 2.7.10 13 | * 2014-11-05T10:51:47.239Z 14 | * Generated source version: 2.7.10 15 | * 16 | */ 17 | @WebService(targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", name = "AcmeDemoInterface") 18 | @XmlSeeAlso({ObjectFactory.class}) 19 | public interface AcmeDemoInterface { 20 | 21 | @WebResult(name = "return", targetNamespace = "") 22 | @RequestWrapper(localName = "listAvailablePlanes", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", className = "com.jboss.soap.service.acmedemo.ListAvailablePlanes") 23 | @WebMethod(action = "http://service.soap.jboss.com/AcmeDemo/listAvailablePlanes") 24 | @ResponseWrapper(localName = "listAvailablePlanesResponse", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", className = "com.jboss.soap.service.acmedemo.ListAvailablePlanesResponse") 25 | public Flight listAvailablePlanes( 26 | @WebParam(name = "in", targetNamespace = "") 27 | FlightRequest in 28 | ); 29 | 30 | @WebResult(name = "out", targetNamespace = "") 31 | @RequestWrapper(localName = "bookFlights", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", className = "com.jboss.soap.service.acmedemo.BookFlights") 32 | @WebMethod 33 | @ResponseWrapper(localName = "bookFlightsResponse", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", className = "com.jboss.soap.service.acmedemo.BookFlightsResponse") 34 | public String bookFlights( 35 | @WebParam(name = "in", targetNamespace = "") 36 | String in 37 | ); 38 | 39 | @WebResult(name = "out", targetNamespace = "") 40 | @RequestWrapper(localName = "cancelBooking", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", className = "com.jboss.soap.service.acmedemo.CancelBooking") 41 | @WebMethod 42 | @ResponseWrapper(localName = "cancelBookingResponse", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/", className = "com.jboss.soap.service.acmedemo.CancelBookingResponse") 43 | public int cancelBooking( 44 | @WebParam(name = "in", targetNamespace = "") 45 | String in 46 | ); 47 | } 48 | -------------------------------------------------------------------------------- /projects/acme-demo-flight-service/src/main/java/com/jboss/soap/service/acmedemo/impl/AcmeDemoInterfaceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jboss.soap.service.acmedemo.impl; 2 | 3 | 4 | import java.math.BigDecimal; 5 | import java.util.Random; 6 | 7 | import javax.jws.WebService; 8 | 9 | import com.jboss.soap.service.acmedemo.AcmeDemoInterface; 10 | import com.jboss.soap.service.acmedemo.Flight; 11 | import com.jboss.soap.service.acmedemo.FlightRequest; 12 | 13 | @WebService(serviceName = "AcmeDemoService", endpointInterface = "com.jboss.soap.service.acmedemo.AcmeDemoInterface", targetNamespace = "http://service.soap.jboss.com/AcmeDemo/") 14 | public class AcmeDemoInterfaceImpl implements AcmeDemoInterface { 15 | public Flight listAvailablePlanes(FlightRequest in) { 16 | // TODO Auto-generated method stub 17 | String startCity = in.getStartCity(); 18 | String endCity = in.getEndCity(); 19 | BigDecimal outboundBD = new BigDecimal(525); 20 | // BigDecimal inboundBD = new BigDecimal(119); 21 | 22 | 23 | 24 | Flight outbound = new Flight(); 25 | outbound.setCompany("EasyJet"); 26 | outbound.setPlaneId(12345); 27 | outbound.setRatePerPerson(outboundBD); 28 | outbound.setStartCity(startCity); 29 | outbound.setTargetCity(endCity); 30 | outbound.setTravelDate(in.getStartDate()); 31 | 32 | System.out.println("OUTBOUND FLIGHT variables set"); 33 | 34 | // Flight inbound = new Flight(); 35 | // inbound.setCompany("EasyJet"); 36 | // inbound.setPlaneId(12345); 37 | // inbound.setRatePerPerson(inboundBD); 38 | // inbound.setStartCity(endCity); 39 | // inbound.setTargetCity(startCity); 40 | // inbound.setTravelDate(in.getEndDate()); 41 | // 42 | // System.out.println("INBOUND FLIGHT variables set"); 43 | // 44 | // 45 | // List itinery = new ArrayList(); 46 | // itinery.add(outbound); 47 | 48 | return outbound; 49 | } 50 | 51 | public String bookFlights(String in) { 52 | System.out.println("SUCCESS: Your flights are now reserved."); 53 | System.out.println(); 54 | 55 | SessionIdentifierGenerator bookingRef = new SessionIdentifierGenerator(); 56 | String refNum = bookingRef.nextSessionId(); 57 | 58 | System.out.println("Your RESERVATION NUMBER is: "+ refNum); 59 | 60 | return refNum; 61 | } 62 | 63 | 64 | public int cancelBooking(String in) { 65 | int cancelCharge = 0; 66 | final Random random = new Random(); 67 | 68 | if (in == null) 69 | throw new IllegalArgumentException("No booking found"); 70 | 71 | cancelCharge = random.nextInt((10-5)+1) + 5; 72 | 73 | 74 | return cancelCharge; 75 | } 76 | } -------------------------------------------------------------------------------- /projects/fuseparent/features/src/main/resources/features.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | mvn:org.apache.camel.karaf/apache-camel/2.15.1.redhat-620133/xml/features 5 | mvn:org.apache.activemq/activemq-karaf/5.11.0.redhat-620133/xml/features 6 | mvn:org.apache.activemq/activemq-karaf/5.11.0.redhat-620133/xml/features-core 7 | mvn:org.apache.cxf.karaf/apache-cxf/3.0.4.redhat-620133/xml/features 8 | mvn:io.fabric8/fabric8-karaf/1.2.0.redhat-133/xml/features 9 | mvn:org.apache.karaf.assemblies.features/enterprise/2.4.0.redhat-620133/xml/features 10 | 11 | 12 | 13 | mvn:com.h2database/h2/1.4.181 14 | camel-jpa 15 | activemq-camel 16 | hibernate 17 | jdbc 18 | 19 | 20 | 21 | 22 | mvn:com.h2database/h2/1.4.181 23 | wrap:mvn:commons-dbcp/commons-dbcp/1.4 24 | camel-jdbc 25 | activemq-camel 26 | camel-jackson 27 | 28 | 29 | 30 | 31 | camel-cxf 32 | activemq-camel 33 | camel-jackson 34 | camel-jms 35 | cxf-http-jetty 36 | fabric-cxf-registry 37 | fabric-cxf 38 | fabric-zookeeper 39 | fabric-groups 40 | 41 | -------------------------------------------------------------------------------- /projects/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 4.0.0 21 | 22 | 23 | org.jboss 24 | jboss-parent 25 | 10 26 | 27 | 28 | JBoss BPM Travel Agency parent 29 | bpm-travel-agency-parent 30 | org.jboss 31 | 1.0 32 | pom 33 | 34 | 35 | 40 | acme-data-model 41 | external-client-ui-form 42 | 43 | 44 | 45 | 46 | jboss-public-repository-group 47 | JBoss Public Repository Group 48 | http://maven.repository.redhat.com/techpreview/all/ 49 | 50 | true 51 | never 52 | 53 | 54 | true 55 | daily 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionhotel/src/main/resources/OSGI-INF/blueprint/blueprint.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | ${body[targetCity]} 35 | 36 | 37 | ${body[startDate]} 38 | 39 | 40 | ${body[endDate]} 41 | 42 | 43 | 44 | SELECT * from avaliablehotels where hotelcity='${header.requestCity}' 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /projects/fuseparent/promotionflights/src/main/resources/OSGI-INF/blueprint/blueprint.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | ${body[startCity]} 37 | 38 | 39 | ${body.[endCity]} 40 | 41 | 42 | ${body[startDate]} 43 | 44 | 45 | ${body[endDate]} 46 | 47 | 48 | 49 | SELECT * from avaliableflights where departure='${header.requestDeparture}' and destination='${header.requestDestination}' 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /projects/fuseparent/bookingservice/src/main/resources/OSGI-INF/blueprint/blueprint.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | ${body.bookingid} 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | ${body} != null 44 | 45 | 46 | 47 | bean:bookingService?method=cancelCharge 48 | 49 | 50 | 51 | 52 | 0 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /projects/fuseparent/hotelbookingservice/src/main/resources/OSGI-INF/blueprint/blueprint.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | ${body.bookingid} 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | ${body} != null 40 | 41 | 42 | 43 | bean:bookingService?method=cancelCharge 44 | 45 | 46 | 47 | 48 | 0 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /projects/instance-generator/src/main/java/org/jboss/jbpm/api/Task.java: -------------------------------------------------------------------------------- 1 | package org.jboss.jbpm.api; 2 | 3 | import javax.xml.bind.annotation.XmlElement; 4 | import javax.xml.bind.annotation.XmlRootElement; 5 | 6 | import org.apache.commons.lang.builder.ToStringBuilder; 7 | 8 | @XmlRootElement(name = "task") 9 | public class Task { 10 | private String id; 11 | private String name; 12 | private String subject; 13 | private String description; 14 | private String status; 15 | private String priority; 16 | private String skipable; 17 | private String actualOwner; 18 | private String createdBy; 19 | private String createdOn; 20 | private String activationTime; 21 | private String processInstanceId; 22 | private String processId; 23 | private String processSessionId; 24 | private String subTaskStrategy; 25 | private String parentId; 26 | 27 | @XmlElement public String getId(){ return id; } 28 | @XmlElement public String getName(){ return name; } 29 | @XmlElement public String getSubject(){ return subject; } 30 | @XmlElement public String getDescription(){ return description; } 31 | @XmlElement public String getStatus(){ return status; } 32 | @XmlElement public String getPrority(){ return priority; } 33 | @XmlElement public String getSkipable(){ return skipable; } 34 | @XmlElement public String getActualOwner(){ return actualOwner; } 35 | @XmlElement public String getCreatedBy(){ return createdBy; } 36 | @XmlElement public String getCreatedOn(){ return createdOn; } 37 | @XmlElement public String getActivationTime(){ return activationTime; } 38 | @XmlElement public String getProcessInstanceId(){ return processInstanceId; } 39 | @XmlElement public String getProcessId(){ return processId; } 40 | @XmlElement public String getProcessSessionId(){ return processSessionId; } 41 | @XmlElement public String getSubTaskStrategy(){ return subTaskStrategy; } 42 | @XmlElement public String getParentId(){ return parentId; } 43 | 44 | public Task(String id, String name, String subject, String description, String status, String priority, String skipable, String actualOwner, 45 | String createdBy, String createdOn, String activationTime, String processInstanceId, String processId, String processSessionId, 46 | String subTaskStrategy, String parentId) { 47 | super(); 48 | this.id = id; 49 | this.name = name; 50 | this.subject = subject; 51 | this.description = description; 52 | this.status = status; 53 | this.priority = priority; 54 | this.skipable = skipable; 55 | this.actualOwner = actualOwner; 56 | this.createdBy = createdBy; 57 | this.createdOn = createdOn; 58 | this.activationTime = activationTime; 59 | this.processInstanceId = processInstanceId; 60 | this.processId = processId; 61 | this.processSessionId = processSessionId; 62 | this.subTaskStrategy = subTaskStrategy; 63 | this.parentId = parentId; 64 | } 65 | 66 | public String toString(){ 67 | return ToStringBuilder.reflectionToString(this); 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /projects/fuseparent/bookingservice/src/main/fabric8/test.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | ${body.bookingid} 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | ${body} != null 48 | 49 | 50 | 51 | bean:bookingService?method=cancelCharge 52 | 53 | 54 | 55 | 56 | 0 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /projects/external-client-ui-form/src/com/externalui/example/SimpleServlet.java: -------------------------------------------------------------------------------- 1 | package com.externalui.example; 2 | 3 | import java.io.BufferedReader; 4 | import java.io.File; 5 | import java.io.FileReader; 6 | import java.io.IOException; 7 | import java.io.PrintWriter; 8 | import java.util.HashMap; 9 | 10 | import javax.servlet.ServletException; 11 | import javax.servlet.http.HttpServlet; 12 | import javax.servlet.http.HttpServletRequest; 13 | import javax.servlet.http.HttpServletResponse; 14 | 15 | import com.externalui.example.client.jbpm.BpmsClientThread; 16 | 17 | public class SimpleServlet extends HttpServlet { 18 | 19 | /** 20 | * Auto generated code 21 | */ 22 | private static final long serialVersionUID = 1L; 23 | private String processId = null; 24 | 25 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 26 | throws ServletException, IOException { 27 | 28 | String color = null; 29 | 30 | // reading user inputs 31 | HashMap hm = new HashMap(); 32 | hm.put("applicantName", request.getParameter("applicantName")); 33 | hm.put("emailAddress", request.getParameter("emailAddress")); 34 | hm.put("numberOfTravelers", request.getParameter("numberOfTravelers") + "i"); // special case where the integer value should be submitted by appending "i" in the end to avoid java.lang.ClassCastException 35 | hm.put("fromDestination", request.getParameter("fromDestination")); 36 | hm.put("toDestination", request.getParameter("toDestination")); 37 | hm.put("preferredDateOfArrival", request.getParameter("preferredDateOfArrival")); 38 | hm.put("preferredDateOfDeparture", request.getParameter("preferredDateOfDeparture")); 39 | hm.put("otherDetails", request.getParameter("otherDetails")); 40 | 41 | System.out.println("=====> Before sending request: HashMap values are: \n" + hm); 42 | BpmsClientThread t = new BpmsClientThread(); 43 | processId = t.starBusinessProcess(hm); 44 | System.out.println("=====> After sending request: "); 45 | 46 | response.setCharacterEncoding("ISO-8859-1"); 47 | response.setContentType("text/html"); 48 | PrintWriter out = response.getWriter(); 49 | 50 | String content = ""; 51 | 52 | if (processId == null) { 53 | content = getContent(getServletContext().getRealPath(File.separator) + "error.html"); 54 | } else { 55 | content = getContent(getServletContext().getRealPath(File.separator) + "success_response.html"); 56 | content = content.replace("CHANGEMEPROCESSID", processId); 57 | } 58 | 59 | out.println (content); 60 | } 61 | 62 | private String getContent(String file) { 63 | String tempContent = ""; 64 | try { 65 | BufferedReader in = new BufferedReader(new FileReader(file)); 66 | String str; 67 | 68 | while ((str = in.readLine()) != null) { 69 | tempContent +=str; 70 | } 71 | in.close(); 72 | } catch (IOException e) { 73 | System.out.println("IOException caught: "); 74 | e.printStackTrace(); 75 | } 76 | return tempContent; 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /projects/acme-data-model/src/main/java/acme/service/soap/hotelws/HotelRequest.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import java.io.Serializable; 5 | 6 | import javax.xml.bind.annotation.XmlAccessType; 7 | import javax.xml.bind.annotation.XmlAccessorType; 8 | import javax.xml.bind.annotation.XmlElement; 9 | import javax.xml.bind.annotation.XmlType; 10 | 11 | 12 | /** 13 | *

Java class for hotelRequest complex type. 14 | * 15 | *

The following schema fragment specifies the expected content contained within this class. 16 | * 17 | *

 18 |  * <complexType name="hotelRequest">
 19 |  *   <complexContent>
 20 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 21 |  *       <sequence>
 22 |  *         <element name="targetCity" type="{http://www.w3.org/2001/XMLSchema}string"/>
 23 |  *         <element name="startDate" type="{http://www.w3.org/2001/XMLSchema}string"/>
 24 |  *         <element name="endDate" type="{http://www.w3.org/2001/XMLSchema}string"/>
 25 |  *       </sequence>
 26 |  *     </restriction>
 27 |  *   </complexContent>
 28 |  * </complexType>
 29 |  * 
30 | * 31 | * 32 | */ 33 | @XmlAccessorType(XmlAccessType.FIELD) 34 | @XmlType(name = "hotelRequest", propOrder = { 35 | "targetCity", 36 | "startDate", 37 | "endDate" 38 | }) 39 | public class HotelRequest implements Serializable { 40 | 41 | @XmlElement(required = true) 42 | protected String targetCity; 43 | @XmlElement(required = true) 44 | protected String startDate; 45 | @XmlElement(required = true) 46 | protected String endDate; 47 | 48 | /** 49 | * Gets the value of the targetCity property. 50 | * 51 | * @return 52 | * possible object is 53 | * {@link String } 54 | * 55 | */ 56 | public String getTargetCity() { 57 | return targetCity; 58 | } 59 | 60 | /** 61 | * Sets the value of the targetCity property. 62 | * 63 | * @param value 64 | * allowed object is 65 | * {@link String } 66 | * 67 | */ 68 | public void setTargetCity(String value) { 69 | this.targetCity = value; 70 | } 71 | 72 | /** 73 | * Gets the value of the startDate property. 74 | * 75 | * @return 76 | * possible object is 77 | * {@link String } 78 | * 79 | */ 80 | public String getStartDate() { 81 | return startDate; 82 | } 83 | 84 | /** 85 | * Sets the value of the startDate property. 86 | * 87 | * @param value 88 | * allowed object is 89 | * {@link String } 90 | * 91 | */ 92 | public void setStartDate(String value) { 93 | this.startDate = value; 94 | } 95 | 96 | /** 97 | * Gets the value of the endDate property. 98 | * 99 | * @return 100 | * possible object is 101 | * {@link String } 102 | * 103 | */ 104 | public String getEndDate() { 105 | return endDate; 106 | } 107 | 108 | /** 109 | * Sets the value of the endDate property. 110 | * 111 | * @param value 112 | * allowed object is 113 | * {@link String } 114 | * 115 | */ 116 | public void setEndDate(String value) { 117 | this.endDate = value; 118 | } 119 | 120 | } 121 | -------------------------------------------------------------------------------- /projects/acme-demo-hotel-service/src/main/java/acme/service/soap/hotelws/HotelRequest.java: -------------------------------------------------------------------------------- 1 | 2 | package acme.service.soap.hotelws; 3 | 4 | import java.io.Serializable; 5 | 6 | import javax.xml.bind.annotation.XmlAccessType; 7 | import javax.xml.bind.annotation.XmlAccessorType; 8 | import javax.xml.bind.annotation.XmlElement; 9 | import javax.xml.bind.annotation.XmlType; 10 | 11 | 12 | /** 13 | *

Java class for hotelRequest complex type. 14 | * 15 | *

The following schema fragment specifies the expected content contained within this class. 16 | * 17 | *

 18 |  * <complexType name="hotelRequest">
 19 |  *   <complexContent>
 20 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 21 |  *       <sequence>
 22 |  *         <element name="targetCity" type="{http://www.w3.org/2001/XMLSchema}string"/>
 23 |  *         <element name="startDate" type="{http://www.w3.org/2001/XMLSchema}string"/>
 24 |  *         <element name="endDate" type="{http://www.w3.org/2001/XMLSchema}string"/>
 25 |  *       </sequence>
 26 |  *     </restriction>
 27 |  *   </complexContent>
 28 |  * </complexType>
 29 |  * 
30 | * 31 | * 32 | */ 33 | @XmlAccessorType(XmlAccessType.FIELD) 34 | @XmlType(name = "hotelRequest", propOrder = { 35 | "targetCity", 36 | "startDate", 37 | "endDate" 38 | }) 39 | public class HotelRequest implements Serializable { 40 | 41 | @XmlElement(required = true) 42 | protected String targetCity; 43 | @XmlElement(required = true) 44 | protected String startDate; 45 | @XmlElement(required = true) 46 | protected String endDate; 47 | 48 | /** 49 | * Gets the value of the targetCity property. 50 | * 51 | * @return 52 | * possible object is 53 | * {@link String } 54 | * 55 | */ 56 | public String getTargetCity() { 57 | return targetCity; 58 | } 59 | 60 | /** 61 | * Sets the value of the targetCity property. 62 | * 63 | * @param value 64 | * allowed object is 65 | * {@link String } 66 | * 67 | */ 68 | public void setTargetCity(String value) { 69 | this.targetCity = value; 70 | } 71 | 72 | /** 73 | * Gets the value of the startDate property. 74 | * 75 | * @return 76 | * possible object is 77 | * {@link String } 78 | * 79 | */ 80 | public String getStartDate() { 81 | return startDate; 82 | } 83 | 84 | /** 85 | * Sets the value of the startDate property. 86 | * 87 | * @param value 88 | * allowed object is 89 | * {@link String } 90 | * 91 | */ 92 | public void setStartDate(String value) { 93 | this.startDate = value; 94 | } 95 | 96 | /** 97 | * Gets the value of the endDate property. 98 | * 99 | * @return 100 | * possible object is 101 | * {@link String } 102 | * 103 | */ 104 | public String getEndDate() { 105 | return endDate; 106 | } 107 | 108 | /** 109 | * Sets the value of the endDate property. 110 | * 111 | * @param value 112 | * allowed object is 113 | * {@link String } 114 | * 115 | */ 116 | public void setEndDate(String value) { 117 | this.endDate = value; 118 | } 119 | 120 | } 121 | -------------------------------------------------------------------------------- /docs/compensation-howto/README-COMPENSATION.md: -------------------------------------------------------------------------------- 1 | JBoss BPM Suite Travel Agency Demo - COMPENSATION 2 | ================================================== 3 | The online travel booking process has been extended to include compensation. But what is Compensation? 4 | 5 | This is an online employee travel booking process project. It contains multimple web services for looking up data for the process 6 | and rules to calculate pricing. Furthermore, there are several tasks that can be activated to evaluate pricing and to review the 7 | final booking data before completing the booking. 8 | 9 | Welcome to the JBoss BPM Travel Agency! 10 | 11 | 12 | Compensation 13 | ------------- 14 | Compensation is a means for rolling back the effects of an action. For example, say you charge the amount of 10€ to a credit card. 15 | If you later detect that this was an error, you may want to undo this. One way of doing that is crediting the same account with the 16 | amount that would have been charged by the purchase that you are rolling back. 17 | 18 | This sounds like something that can be handled with transactions... only that there are a couple of problems: 19 | 20 | 1. The service you are using might not support transactions. 21 | 22 | 2. You might notice that it was a mistake to charge the credit card too late, at sometime past where the transaction already committed. 23 | 24 | In both cases we cannot simply go back in time and fix the action taken. On the contrary, we need to make something else happen, in order to compensate the effects of an action we erroneously committed. 25 | 26 | 27 | How it works in our process 28 | --------------------------- 29 | Compensation is set up in our process to roll back or return any flight seats and hotel rooms that have been booked in the event of 30 | a failure to collect payment from the customers credit card. The process books airline seats and hotel rooms before then proceeding 31 | to attmpt to collect payment from a credit card. 32 | 33 | In our process we have a built in fraudulent credit card check, if any credit card is fraudulent (i.e. begins with 1234...) then 34 | process will compensate the booked airline seats and hotel rooms. 35 | 36 | 37 | Starting the process and invoking compensation 38 | ------------------------------------------------ 39 | 1. Install project and start JBoss BPM Suite server. 40 | 41 | 2. Start a process with by entering the details below on the form on this link: [http://localhost:8080/external-client-ui-form-1.0/](http://localhost:8080/external-client-ui-form-1.0) 42 | 43 | ``` 44 | Name: [your-name] 45 | 46 | Email Adress: [any-email] MUST BE VALID 47 | 48 | Number of Travellers: 2 49 | 50 | From Destination: London 51 | 52 | To Destination: Edinburgh 53 | 54 | Preferred Date of Departure: 2014-12-20 55 | 56 | Preferred Data of Arrival: 2014-12-29 57 | 58 | Other Details / Notes: [any-text] 59 | ``` 60 | 61 | 3. Login to http://localhost:8080/business-central 62 | 63 | ``` 64 | - login for admin role (u:erics / p:bpmsuite1!) 65 | ``` 66 | 67 | 4. Navigate to the "Tasks" tab and click on it. From the task in the list, click on the "Lock" icon to claim the task 68 | 69 | 5. Click on the "Work" tab from the resulting right-side pane window that opened and select the 2nd option checkbox (isBookingConfirmed). 70 | 71 | 6. 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. 72 | 73 | 7. Check the logs and you will see that the process has been compensated. 74 | 75 | 8. 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.... 76 | 77 | -------------------------------------------------------------------------------- /projects/fuseparent/hotelwebendpoint/src/main/resources/OSGI-INF/blueprint/blueprint.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | direct:${header.operationName} 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /projects/external-client-ui-form/WebContent/Home.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Booking Form 8 | 9 | 67 | 68 | 69 | 70 | 71 | 74 | 75 |
76 |
77 |

Customer Details:

78 | 79 |
80 | 81 |
82 | 83 |
84 |
85 | 86 |
87 | 88 |
89 | 90 |
91 |
92 | 93 |

Travel Details:

94 |
95 | 96 |
97 | 98 |
99 |
100 | 101 |
102 | 103 |
104 | 107 |
108 |
109 | 110 |
111 | 112 |
113 | 116 |
117 |
118 | 119 |
120 | 121 |
122 | 123 |
124 |
125 | 126 |
127 | 128 | 129 |
130 | 131 |
132 |
133 | 134 |
135 | 136 | 137 |
138 | 139 |
140 |
141 | 142 |
143 |
144 |
145 | 146 | 147 | 148 | 149 | 150 | --------------------------------------------------------------------------------