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 |
145 |
146 |
147 |
148 |
149 |
150 |
--------------------------------------------------------------------------------