Author: alex.guizar(a)jboss.com
Date: 2009-11-20 05:49:57 -0500 (Fri, 20 Nov 2009)
New Revision: 288
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELTravelAgencyTestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Cancelation.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Detail.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Flight.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Hotel.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Invoice.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/ItemSet.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Order.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Penalty.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Query.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/RentalCar.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/TravelAgent.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/TravelService.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/package-info.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/bpel-deploy.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/ticket.wsdl
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.bpel
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.bpelex
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.wsdl
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/build.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/resources/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/resources/WEB-INF/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/resources/WEB-INF/web.xml
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer.java
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer_Impl.java
trunk/samples/quickstart/travel_agency/
trunk/samples/quickstart/travel_agency/bpel/
trunk/samples/quickstart/travel_agency/bpel/bpel-deploy.xml
trunk/samples/quickstart/travel_agency/bpel/ticket.wsdl
trunk/samples/quickstart/travel_agency/bpel/trip.bpel
trunk/samples/quickstart/travel_agency/bpel/trip.bpelex
trunk/samples/quickstart/travel_agency/bpel/trip.wsdl
trunk/samples/quickstart/travel_agency/build.xml
trunk/samples/quickstart/travel_agency/war/
trunk/samples/quickstart/travel_agency/war/resources/
trunk/samples/quickstart/travel_agency/war/resources/WEB-INF/
trunk/samples/quickstart/travel_agency/war/resources/WEB-INF/web.xml
trunk/samples/quickstart/travel_agency/war/src/
trunk/samples/quickstart/travel_agency/war/src/org/
trunk/samples/quickstart/travel_agency/war/src/org/jboss/
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer.java
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer_Impl.java
Modified:
trunk/integration-tests/build.xml
trunk/integration-tests/pom.xml
trunk/samples/quickstart/atm/bpel/bpel-deploy.xml
trunk/samples/quickstart/atm/build.xml
Log:
[RIFTSAW-34] post travel agency example
Modified: trunk/integration-tests/build.xml
===================================================================
--- trunk/integration-tests/build.xml 2009-11-20 10:03:23 UTC (rev 287)
+++ trunk/integration-tests/build.xml 2009-11-20 10:49:57 UTC (rev 288)
@@ -123,6 +123,7 @@
<ant
antfile="src/test/resources/samples/Quickstart_bpel_loan_approval/build.xml"
/>
<ant antfile="src/test/resources/samples/Quickstart_bpel_atm/build.xml"
/>
<ant
antfile="src/test/resources/samples/Quickstart_bpel_purchase/build.xml" />
+ <ant
antfile="src/test/resources/samples/Quickstart_bpel_travel_agency/build.xml"
/>
<ant
antfile="src/test/resources/samples/Quickstart_esb_bpel_hello_world/build.xml"
/>
<ant
antfile="src/test/resources/samples/Quickstart_esb_bpel_loan_fault/build.xml"
/>
Modified: trunk/integration-tests/pom.xml
===================================================================
--- trunk/integration-tests/pom.xml 2009-11-20 10:03:23 UTC (rev 287)
+++ trunk/integration-tests/pom.xml 2009-11-20 10:49:57 UTC (rev 288)
@@ -280,6 +280,7 @@
<excludes>
<exclude>org/jboss/soa/bpel/tests/samples/QuickstartBPELAtmTestCase.java</exclude>
<exclude>org/jboss/soa/bpel/tests/samples/QuickstartBPELPurchaseTestCase.java</exclude>
+
<exclude>org/jboss/soa/bpel/tests/samples/QuickstartBPELTravelAgencyTestCase.java</exclude>
</excludes>
</configuration>
<executions>
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELTravelAgencyTestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELTravelAgencyTestCase.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELTravelAgencyTestCase.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,141 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.tests.samples;
+
+import java.rmi.RemoteException;
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+import javax.xml.datatype.DatatypeFactory;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+import junit.framework.Test;
+
+import org.jboss.soa.bpel.tests.RiftSawTest;
+import org.jboss.soa.bpel.tests.RiftSawTestSetup;
+import org.jboss.soa.bpel.tests.samples.travel.Cancelation;
+import org.jboss.soa.bpel.tests.samples.travel.Detail;
+import org.jboss.soa.bpel.tests.samples.travel.Flight;
+import org.jboss.soa.bpel.tests.samples.travel.Hotel;
+import org.jboss.soa.bpel.tests.samples.travel.Invoice;
+import org.jboss.soa.bpel.tests.samples.travel.ItemSet;
+import org.jboss.soa.bpel.tests.samples.travel.Order;
+import org.jboss.soa.bpel.tests.samples.travel.Penalty;
+import org.jboss.soa.bpel.tests.samples.travel.Query;
+import org.jboss.soa.bpel.tests.samples.travel.RentalCar;
+import org.jboss.soa.bpel.tests.samples.travel.TravelAgent;
+import org.jboss.soa.bpel.tests.samples.travel.TravelService;
+
+/**
+ * @author Alejandro Guizar
+ */
+public class QuickstartBPELTravelAgencyTestCase extends RiftSawTest {
+
+ private TravelAgent travelAgent;
+
+ private Flight flight = new Flight();
+ private Hotel hotel = new Hotel();
+ private RentalCar car = new RentalCar();
+ private XMLGregorianCalendar tripDate;
+
+ private static final String TEST_NAME = "Quickstart_bpel_travel_agency";
+
+ public QuickstartBPELTravelAgencyTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return new RiftSawTestSetup(QuickstartBPELTravelAgencyTestCase.class,
+ TEST_NAME,
+ "Quickstart_bpel_travel_agency.war,Quickstart_bpel_travel_agency-1.jar");
+ }
+
+ protected void setUp() throws Exception {
+ TravelService tripService = new TravelService();
+ travelAgent = tripService.getTravelAgentPort();
+
+ flight.setAirline("AM");
+ flight.setNumber(637);
+ hotel.setName("Maria Isabel");
+ car.setCompany("Alamo");
+
+ GregorianCalendar now = new GregorianCalendar();
+ now.add(Calendar.SECOND, 10);
+ tripDate = DatatypeFactory.newInstance().newXMLGregorianCalendar(now);
+ }
+
+ public void testPurchaseTrip() throws RemoteException {
+ ItemSet items = new ItemSet();
+ items.setFlight(flight); // cost: 300
+ items.setHotel(hotel); // cost: 100
+
+ Order order = new Order();
+ order.setDate(tripDate);
+ order.setItems(items);
+
+ Invoice invoice = travelAgent.purchaseTrip(order);
+ assertEquals(300 + 100, invoice.getCost(), 0);
+ }
+
+ public void testGetTripDetails() throws RemoteException {
+ ItemSet items = new ItemSet();
+ items.setFlight(flight);
+ items.setHotel(hotel);
+ items.setRentalCar(car);
+
+ Order order = new Order();
+ order.setDate(tripDate);
+ order.setItems(items);
+
+ Invoice invoice = travelAgent.purchaseTrip(order);
+
+ Query query = new Query();
+ query.setLocator(invoice.getLocator());
+
+ Detail detail = travelAgent.getTripDetail(query);
+ items = detail.getItems();
+
+ assertEquals(flight.getAirline(), items.getFlight().getAirline());
+ assertEquals(flight.getNumber(), items.getFlight().getNumber());
+ assertEquals(hotel.getName(), items.getHotel().getName());
+ assertEquals(car.getCompany(), items.getRentalCar().getCompany());
+ assertEquals(invoice.getCost(), detail.getCost(), 0);
+ }
+
+ public void testCancelTrip() throws Exception {
+ ItemSet items = new ItemSet();
+ items.setFlight(flight); // fee: 100
+ items.setRentalCar(car); // fee: 5
+
+ Order order = new Order();
+ order.setDate(tripDate);
+ order.setItems(items);
+
+ Invoice invoice = travelAgent.purchaseTrip(order);
+
+ Cancelation reference = new Cancelation();
+ reference.setLocator(invoice.getLocator());
+
+ Penalty penalty = travelAgent.cancelTrip(reference);
+ assertEquals(100 + 5, penalty.getFee(), 0);
+ }
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartBPELTravelAgencyTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Cancelation.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Cancelation.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Cancelation.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,50 @@
+package org.jboss.soa.bpel.tests.samples.travel;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for anonymous complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * <attribute name="locator" use="required"
type="{http://www.w3.org/2001/XMLSchema}int" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "")
+@XmlRootElement(name = "cancelation")
+public class Cancelation {
+
+ @XmlAttribute(required = true)
+ protected int locator;
+
+ /**
+ * Gets the value of the locator property.
+ */
+ public int getLocator() {
+ return locator;
+ }
+
+ /**
+ * Sets the value of the locator property.
+ */
+ public void setLocator(int value) {
+ this.locator = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Cancelation.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Detail.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Detail.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Detail.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,72 @@
+package org.jboss.soa.bpel.tests.samples.travel;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for anonymous complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="items"
type="{http://jbpm.org/examples/trip}ItemSet"/>
+ * </sequence>
+ * <attribute name="cost" use="required"
type="{http://www.w3.org/2001/XMLSchema}double" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = { "items" })
+@XmlRootElement(name = "detail")
+public class Detail {
+
+ @XmlElement(required = true)
+ protected ItemSet items;
+ @XmlAttribute(required = true)
+ protected double cost;
+
+ /**
+ * Gets the value of the items property.
+ *
+ * @return possible object is {@link ItemSet }
+ */
+ public ItemSet getItems() {
+ return items;
+ }
+
+ /**
+ * Sets the value of the items property.
+ *
+ * @param value allowed object is {@link ItemSet }
+ */
+ public void setItems(ItemSet value) {
+ this.items = value;
+ }
+
+ /**
+ * Gets the value of the cost property.
+ */
+ public double getCost() {
+ return cost;
+ }
+
+ /**
+ * Sets the value of the cost property.
+ */
+ public void setCost(double value) {
+ this.cost = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Detail.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Flight.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Flight.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Flight.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,67 @@
+package org.jboss.soa.bpel.tests.samples.travel;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for Flight complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="Flight">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="airline" use="required"
type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="number" use="required"
type="{http://www.w3.org/2001/XMLSchema}int" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Flight")
+public class Flight {
+
+ @XmlAttribute(required = true)
+ protected String airline;
+ @XmlAttribute(required = true)
+ protected int number;
+
+ /**
+ * Gets the value of the airline property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getAirline() {
+ return airline;
+ }
+
+ /**
+ * Sets the value of the airline property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setAirline(String value) {
+ this.airline = value;
+ }
+
+ /**
+ * Gets the value of the number property.
+ */
+ public int getNumber() {
+ return number;
+ }
+
+ /**
+ * Sets the value of the number property.
+ */
+ public void setNumber(int value) {
+ this.number = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Flight.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Hotel.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Hotel.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Hotel.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,50 @@
+package org.jboss.soa.bpel.tests.samples.travel;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for Hotel complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="Hotel">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="name" use="required"
type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Hotel")
+public class Hotel {
+
+ @XmlAttribute(required = true)
+ protected String name;
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Hotel.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Invoice.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Invoice.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Invoice.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,67 @@
+package org.jboss.soa.bpel.tests.samples.travel;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for anonymous complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * <attribute name="locator" use="required"
type="{http://www.w3.org/2001/XMLSchema}int" />
+ * <attribute name="cost" use="required"
type="{http://www.w3.org/2001/XMLSchema}double" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "")
+@XmlRootElement(name = "invoice")
+public class Invoice {
+
+ @XmlAttribute(required = true)
+ protected int locator;
+ @XmlAttribute(required = true)
+ protected double cost;
+
+ /**
+ * Gets the value of the locator property.
+ */
+ public int getLocator() {
+ return locator;
+ }
+
+ /**
+ * Sets the value of the locator property.
+ */
+ public void setLocator(int value) {
+ this.locator = value;
+ }
+
+ /**
+ * Gets the value of the cost property.
+ */
+ public double getCost() {
+ return cost;
+ }
+
+ /**
+ * Sets the value of the cost property.
+ */
+ public void setCost(double value) {
+ this.cost = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Invoice.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/ItemSet.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/ItemSet.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/ItemSet.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,94 @@
+package org.jboss.soa.bpel.tests.samples.travel;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for ItemSet complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="ItemSet">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="flight"
type="{http://jbpm.org/examples/trip}Flight"/>
+ * <element name="hotel"
type="{http://jbpm.org/examples/trip}Hotel"/>
+ * <element name="rentalCar"
type="{http://jbpm.org/examples/trip}RentalCar"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ItemSet", propOrder = { "flight", "hotel",
"rentalCar" })
+public class ItemSet {
+
+ @XmlElement(required = true, nillable = true)
+ protected Flight flight;
+ @XmlElement(required = true, nillable = true)
+ protected Hotel hotel;
+ @XmlElement(required = true, nillable = true)
+ protected RentalCar rentalCar;
+
+ /**
+ * Gets the value of the flight property.
+ *
+ * @return possible object is {@link Flight }
+ */
+ public Flight getFlight() {
+ return flight;
+ }
+
+ /**
+ * Sets the value of the flight property.
+ *
+ * @param value allowed object is {@link Flight }
+ */
+ public void setFlight(Flight value) {
+ this.flight = value;
+ }
+
+ /**
+ * Gets the value of the hotel property.
+ *
+ * @return possible object is {@link Hotel }
+ */
+ public Hotel getHotel() {
+ return hotel;
+ }
+
+ /**
+ * Sets the value of the hotel property.
+ *
+ * @param value allowed object is {@link Hotel }
+ */
+ public void setHotel(Hotel value) {
+ this.hotel = value;
+ }
+
+ /**
+ * Gets the value of the rentalCar property.
+ *
+ * @return possible object is {@link RentalCar }
+ */
+ public RentalCar getRentalCar() {
+ return rentalCar;
+ }
+
+ /**
+ * Sets the value of the rentalCar property.
+ *
+ * @param value allowed object is {@link RentalCar }
+ */
+ public void setRentalCar(RentalCar value) {
+ this.rentalCar = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/ItemSet.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Order.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Order.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Order.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,78 @@
+package org.jboss.soa.bpel.tests.samples.travel;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+/**
+ * <p>
+ * Java class for anonymous complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="items"
type="{http://jbpm.org/examples/trip}ItemSet"/>
+ * <element name="date"
type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = { "items", "date" })
+@XmlRootElement(name = "order")
+public class Order {
+
+ @XmlElement(required = true)
+ protected ItemSet items;
+ @XmlElement(required = true)
+ @XmlSchemaType(name = "dateTime")
+ protected XMLGregorianCalendar date;
+
+ /**
+ * Gets the value of the items property.
+ *
+ * @return possible object is {@link ItemSet }
+ */
+ public ItemSet getItems() {
+ return items;
+ }
+
+ /**
+ * Sets the value of the items property.
+ *
+ * @param value allowed object is {@link ItemSet }
+ */
+ public void setItems(ItemSet value) {
+ this.items = value;
+ }
+
+ /**
+ * Gets the value of the date property.
+ *
+ * @return possible object is {@link XMLGregorianCalendar }
+ */
+ public XMLGregorianCalendar getDate() {
+ return date;
+ }
+
+ /**
+ * Sets the value of the date property.
+ *
+ * @param value allowed object is {@link XMLGregorianCalendar }
+ */
+ public void setDate(XMLGregorianCalendar value) {
+ this.date = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Order.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Penalty.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Penalty.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Penalty.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,50 @@
+package org.jboss.soa.bpel.tests.samples.travel;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for anonymous complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * <attribute name="fee" use="required"
type="{http://www.w3.org/2001/XMLSchema}double" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "")
+@XmlRootElement(name = "penalty")
+public class Penalty {
+
+ @XmlAttribute(required = true)
+ protected double fee;
+
+ /**
+ * Gets the value of the fee property.
+ */
+ public double getFee() {
+ return fee;
+ }
+
+ /**
+ * Sets the value of the fee property.
+ */
+ public void setFee(double value) {
+ this.fee = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Penalty.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Query.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Query.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Query.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,50 @@
+package org.jboss.soa.bpel.tests.samples.travel;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for anonymous complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * <attribute name="locator" use="required"
type="{http://www.w3.org/2001/XMLSchema}int" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "")
+@XmlRootElement(name = "query")
+public class Query {
+
+ @XmlAttribute(required = true)
+ protected int locator;
+
+ /**
+ * Gets the value of the locator property.
+ */
+ public int getLocator() {
+ return locator;
+ }
+
+ /**
+ * Sets the value of the locator property.
+ */
+ public void setLocator(int value) {
+ this.locator = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/Query.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/RentalCar.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/RentalCar.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/RentalCar.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,50 @@
+package org.jboss.soa.bpel.tests.samples.travel;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for RentalCar complex type.
+ * <p>
+ * The following schema fragment specifies the expected content contained within
+ * this class.
+ *
+ * <pre>
+ * <complexType name="RentalCar">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="company" use="required"
type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RentalCar")
+public class RentalCar {
+
+ @XmlAttribute(required = true)
+ protected String company;
+
+ /**
+ * Gets the value of the company property.
+ *
+ * @return possible object is {@link String }
+ */
+ public String getCompany() {
+ return company;
+ }
+
+ /**
+ * Sets the value of the company property.
+ *
+ * @param value allowed object is {@link String }
+ */
+ public void setCompany(String value) {
+ this.company = value;
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/RentalCar.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/TravelAgent.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/TravelAgent.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/TravelAgent.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,44 @@
+package org.jboss.soa.bpel.tests.samples.travel;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebService(name = "TravelAgent", targetNamespace =
"http://jbpm.org/examples/trip")
+@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public interface TravelAgent {
+
+ /**
+ * @param order
+ * @return returns org.jboss.soa.bpel.samples.quickstart.travel.Invoice
+ */
+ @WebMethod(action = "http://jbpm.org/examples/trip/purchaseTrip")
+ @WebResult(name = "invoice", targetNamespace =
"http://jbpm.org/examples/trip", partName = "invoice")
+ public Invoice purchaseTrip(
+ @WebParam(name = "order", targetNamespace =
"http://jbpm.org/examples/trip", partName = "order") Order order);
+
+ /**
+ * @param cancelation
+ * @return returns org.jboss.soa.bpel.samples.quickstart.travel.Penalty
+ */
+ @WebMethod(action = "http://jbpm.org/examples/trip/cancelTrip")
+ @WebResult(name = "penalty", targetNamespace =
"http://jbpm.org/examples/trip", partName = "penalty")
+ public Penalty cancelTrip(
+ @WebParam(name = "cancelation", targetNamespace =
"http://jbpm.org/examples/trip", partName = "cancelation") Cancelation
cancelation);
+
+ /**
+ * @param query
+ * @return returns org.jboss.soa.bpel.samples.quickstart.travel.Detail
+ */
+ @WebMethod(action = "http://jbpm.org/examples/trip/getTripDetail")
+ @WebResult(name = "detail", targetNamespace =
"http://jbpm.org/examples/trip", partName = "detail")
+ public Detail getTripDetail(
+ @WebParam(name = "query", targetNamespace =
"http://jbpm.org/examples/trip", partName = "query") Query query);
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/TravelAgent.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/TravelService.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/TravelService.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/TravelService.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,64 @@
+package org.jboss.soa.bpel.tests.samples.travel;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceFeature;
+
+/**
+ * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 Generated source
+ * version: 2.1
+ */
+@WebServiceClient(name = TravelService.SERVICE_NAME, targetNamespace =
TravelService.TARGET_NAMESPACE, wsdlLocation = TravelService.WSDL_LOCATION)
+public class TravelService extends Service {
+
+ private static final String TRAVEL_AGENT_PORT_NAME = "TravelAgentPort";
+ static final String SERVICE_NAME = "TravelService";
+ static final String TARGET_NAMESPACE = "http://jbpm.org/examples/trip";
+ static final String WSDL_LOCATION =
+ "file:/home/aguizar/riftsaw/trunk/samples/quickstart/travel_agency/bpel/trip.wsdl";
+
+ private final static URL WSDL_URL = createURL(WSDL_LOCATION);
+
+ private static URL createURL(String location) {
+ try {
+ return new URL(location);
+ }
+ catch (MalformedURLException e) {
+ throw new IllegalArgumentException(location, e);
+ }
+ }
+
+ public TravelService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public TravelService() {
+ super(WSDL_URL, new QName(TARGET_NAMESPACE, SERVICE_NAME));
+ }
+
+ /**
+ * @return returns TravelAgent
+ */
+ @WebEndpoint(name = TRAVEL_AGENT_PORT_NAME)
+ public TravelAgent getTravelAgentPort() {
+ return super.getPort(new QName(TARGET_NAMESPACE, TRAVEL_AGENT_PORT_NAME),
+ TravelAgent.class);
+ }
+
+ /**
+ * @param features A list of {@link javax.xml.ws.WebServiceFeature} to
+ * configure on the proxy. Supported features not in the
<code>features</code>
+ * parameter will have their default values.
+ * @return returns TravelAgent
+ */
+ @WebEndpoint(name = TRAVEL_AGENT_PORT_NAME)
+ public TravelAgent getTravelAgentPort(WebServiceFeature... features) {
+ return super.getPort(new QName(TARGET_NAMESPACE, TRAVEL_AGENT_PORT_NAME),
+ TravelAgent.class, features);
+ }
+
+}
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/TravelService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/package-info.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/package-info.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/package-info.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,3 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://jbpm.org/examples/trip")
+package org.jboss.soa.bpel.tests.samples.travel;
+
Property changes on:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/travel/package-info.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/bpel-deploy.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/bpel-deploy.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/bpel-deploy.xml 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:trp="http://jbpm.org/examples/trip"
+
xmlns:tic="http://jbpm.org/examples/ticket"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <process name="trp:TripReservation">
+ <active>true</active>
+
+ <provide partnerLink="traveler">
+ <service name="trp:TravelService" port="TravelAgentPort" />
+ </provide>
+
+ <invoke partnerLink="ticket">
+ <service name="tic:TicketService" port="TicketIssuerPort"
/>
+ </invoke>
+ </process>
+</deploy>
\ No newline at end of file
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/bpel-deploy.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/ticket.wsdl
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/ticket.wsdl
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/ticket.wsdl 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
targetNamespace="http://jbpm.org/examples/ticket"
+
xmlns:tns="http://jbpm.org/examples/ticket"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+ <message name="ticketRequest">
+ <documentation>ticket creation request</documentation>
+ </message>
+
+ <message name="ticketMessage">
+ <documentation>ticket number wrapper</documentation>
+ <part name="ticketNo" type="xsd:int" />
+ </message>
+
+ <portType name="TicketIssuer">
+ <documentation>interface to ticket issuer service</documentation>
+
+ <operation name="createTicket">
+ <documentation>generate a ticket number, distinct from previous calls
+ </documentation>
+ <input message="tns:ticketRequest" />
+ <output message="tns:ticketMessage" />
+ </operation>
+ </portType>
+
+ <binding name="TicketIssuerBinding" type="tns:TicketIssuer">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
+
+ <operation name="createTicket">
+ <soap:operation
soapAction="http://jbpm.org/examples/ticket#createTicket"
/>
+ <input>
+ <soap:body use="literal"
namespace="http://jbpm.org/examples/ticket" />
+ </input>
+ <output>
+ <soap:body use="literal"
namespace="http://jbpm.org/examples/ticket" />
+ </output>
+ </operation>
+ </binding>
+
+ <service name="TicketService">
+ <port name="TicketIssuerPort"
binding="tns:TicketIssuerBinding">
+ <soap:address
location="http://127.0.0.1:8080/Quickstart_bpel_travel_agency/ticketIssuer"
/>
+ </port>
+ </service>
+
+</definitions>
\ No newline at end of file
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/ticket.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.bpel
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.bpel
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.bpel 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,218 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bpws:process exitOnStandardFault="yes" name="TripReservation"
+
targetNamespace="http://jbpm.org/examples/trip"
+
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable...
+
xmlns:tic="http://jbpm.org/examples/ticket"
+
xmlns:tns="http://jbpm.org/examples/trip"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <bpws:import
importType="http://schemas.xmlsoap.org/wsdl/"
+ location="trip.wsdl"
namespace="http://jbpm.org/examples/trip"/>
+ <bpws:import
importType="http://schemas.xmlsoap.org/wsdl/"
+ location="ticket.wsdl"
namespace="http://jbpm.org/examples/ticket"/>
+ <bpws:partnerLinks>
+ <bpws:partnerLink myRole="Agent" name="traveler"
partnerLinkType="tns:Traveler-Agent"/>
+ <bpws:partnerLink name="ticket"
+ partnerLinkType="tns:Agent-Ticket"
partnerRole="TicketIssuer"/>
+ </bpws:partnerLinks>
+ <bpws:variables>
+ <bpws:variable messageType="tns:purchaseRequest"
name="purchaseRequest"/>
+ <bpws:variable name="cost" type="xsd:double"/>
+ <bpws:variable name="items" type="tns:ItemSet"/>
+ <bpws:variable name="dateReached" type="xsd:boolean"/>
+ <bpws:variable messageType="tns:detailRequest"
name="detailRequest"/>
+ <bpws:variable messageType="tns:detailResponse"
name="detailResponse"/>
+ <bpws:variable messageType="tns:cancelRequest"
name="cancelRequest"/>
+ <bpws:variable messageType="tns:cancelResponse"
name="cancelResponse"/>
+ </bpws:variables>
+ <bpws:correlationSets>
+ <bpws:correlationSet name="trip"
properties="tns:tripLocator"/>
+ </bpws:correlationSets>
+ <bpws:faultHandlers>
+ <bpws:catch faultName="tns:cancelation">
+ <bpws:sequence name="Cancel">
+ <bpws:compensateScope name="UndoPurchase"
target="TripPurchase" />
+ <bpws:assign name="PreparePenalty"
validate="no">
+ <bpws:copy>
+ <bpws:from variable="cost"/>
+ <bpws:to part="penalty"
variable="cancelResponse">
+ <bpws:query><![CDATA[@fee]]></bpws:query>
+ </bpws:to>
+ </bpws:copy>
+ </bpws:assign>
+ <bpws:reply name="SendPenalty"
operation="cancelTrip"
+ partnerLink="traveler" portType="tns:TravelAgent"
variable="cancelResponse"/>
+ </bpws:sequence>
+ </bpws:catch>
+ </bpws:faultHandlers>
+ <bpws:sequence name="Main">
+ <bpws:scope name="TripPurchase">
+ <bpws:variables>
+ <bpws:variable messageType="tic:ticketRequest"
name="ticketRequest"/>
+ <bpws:variable messageType="tic:ticketMessage"
name="ticketMessage"/>
+ <bpws:variable messageType="tns:purchaseResponse"
name="purchaseResponse"/>
+ </bpws:variables>
+ <bpws:sequence name="PurchaseTrip">
+ <bpws:receive createInstance="yes"
+ name="ReceiveTripOrder" operation="purchaseTrip"
+ partnerLink="traveler" portType="tns:TravelAgent"
variable="purchaseRequest"/>
+ <bpws:flow>
+ <bpws:invoke inputVariable="ticketRequest"
+ name="CreateTicket" operation="createTicket"
+ outputVariable="ticketMessage"
+ partnerLink="ticket"
portType="tic:TicketIssuer">
+ <bpws:correlations>
+ <bpws:correlation initiate="yes"
+ pattern="in" set="trip"/>
+ </bpws:correlations>
+ </bpws:invoke>
+ <bpws:sequence name="EvaluateCost">
+ <bpws:assign name="InitializeCost"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[0]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ <bpws:copy>
+ <bpws:from part="order"
variable="purchaseRequest">
+
<bpws:query><![CDATA[items]]></bpws:query>
+ </bpws:from>
+ <bpws:to variable="items"/>
+ </bpws:copy>
+ </bpws:assign>
+ <bpws:if name="FlightDecision">
+ <bpws:condition><![CDATA[$items/flight and
string($items/flight/@xsi:nil) != '1']]></bpws:condition>
+ <bpws:scope name="FlightReservation">
+ <bpws:compensationHandler>
+ <bpws:assign name="ReimburseFlight"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[$cost - 300 +
100]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:compensationHandler>
+ <bpws:assign name="ChargeFlight"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[$cost +
300]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:scope>
+ </bpws:if>
+ <bpws:if name="HotelDecision">
+ <bpws:condition><![CDATA[$items/hotel and
string($items/hotel/@xsi:nil) != '1']]></bpws:condition>
+ <bpws:scope name="HotelReservation">
+ <bpws:compensationHandler>
+ <bpws:assign name="ReimburseHotel"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[$cost - 100 +
25]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:compensationHandler>
+ <bpws:assign name="ChargeHotel"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[$cost +
100]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:scope>
+ </bpws:if>
+ <bpws:if name="CarDecision">
+ <bpws:condition><![CDATA[$items/rentalCar and
string($items/rentalCar/@xsi:nil) != '1']]></bpws:condition>
+ <bpws:scope name="CarReservation">
+ <bpws:compensationHandler>
+ <bpws:assign name="reimburseCar"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[$cost - 50 +
5]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:compensationHandler>
+ <bpws:assign name="ChargeCar"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[$cost +
50]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:scope>
+ </bpws:if>
+ </bpws:sequence>
+ </bpws:flow>
+ <bpws:assign name="PrepareInvoice"
validate="no">
+ <bpws:copy>
+ <bpws:from part="ticketNo"
variable="ticketMessage"/>
+ <bpws:to part="invoice"
variable="purchaseResponse">
+
<bpws:query><![CDATA[@locator]]></bpws:query>
+ </bpws:to>
+ </bpws:copy>
+ <bpws:copy>
+ <bpws:from variable="cost"/>
+ <bpws:to part="invoice"
variable="purchaseResponse">
+ <bpws:query><![CDATA[@cost]]></bpws:query>
+ </bpws:to>
+ </bpws:copy>
+ </bpws:assign>
+ <bpws:reply name="SendInvoice"
operation="purchaseTrip"
+ partnerLink="traveler" portType="tns:TravelAgent"
variable="purchaseResponse">
+ <bpws:correlations>
+ <bpws:correlation initiate="no"
set="trip"/>
+ </bpws:correlations>
+ </bpws:reply>
+ </bpws:sequence>
+ </bpws:scope>
+ <bpws:assign name="SetDateNotReached" validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[false()]]></bpws:from>
+ <bpws:to variable="dateReached"/>
+ </bpws:copy>
+ </bpws:assign>
+ <bpws:while name="PredateLoop">
+ <bpws:condition><![CDATA[$dateReached =
'false']]></bpws:condition>
+ <bpws:pick name="PredateMenu">
+ <bpws:onMessage operation="getTripDetail"
+ partnerLink="traveler" portType="tns:TravelAgent"
variable="detailRequest">
+ <bpws:correlations>
+ <bpws:correlation initiate="no"
set="trip"/>
+ </bpws:correlations>
+ <bpws:sequence name="GetTripDetail">
+ <bpws:assign name="PrepareTripDetail"
validate="no">
+ <bpws:copy>
+ <bpws:from part="order"
variable="purchaseRequest">
+
<bpws:query><![CDATA[items]]></bpws:query>
+ </bpws:from>
+ <bpws:to part="detail"
variable="detailResponse">
+
<bpws:query><![CDATA[items]]></bpws:query>
+ </bpws:to>
+ </bpws:copy>
+ <bpws:copy>
+ <bpws:from variable="cost"/>
+ <bpws:to part="detail"
variable="detailResponse">
+
<bpws:query><![CDATA[@cost]]></bpws:query>
+ </bpws:to>
+ </bpws:copy>
+ </bpws:assign>
+ <bpws:reply name="SendTripDetail"
+ operation="getTripDetail"
+ partnerLink="traveler"
+ portType="tns:TravelAgent"
variable="detailResponse"/>
+ </bpws:sequence>
+ </bpws:onMessage>
+ <bpws:onMessage operation="cancelTrip"
+ partnerLink="traveler" portType="tns:TravelAgent"
variable="cancelRequest">
+ <bpws:correlations>
+ <bpws:correlation initiate="no"
set="trip"/>
+ </bpws:correlations>
+ <bpws:throw faultName="tns:cancelation"
name="CancelTrip"/>
+ </bpws:onMessage>
+ <bpws:onAlarm>
+
<bpws:until><![CDATA[$purchaseRequest.order/date]]></bpws:until>
+ <bpws:assign name="SetDateReached"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[true()]]></bpws:from>
+ <bpws:to variable="dateReached"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:onAlarm>
+ </bpws:pick>
+ </bpws:while>
+ </bpws:sequence>
+</bpws:process>
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.bpelex
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.bpelex
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.bpelex 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,259 @@
+<?xml version="1.0" encoding="ASCII"?>
+<extensionmodel:ExtensionMap xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:extensionmodel="http:///extensionmodel.ecore"
xmlns:org.eclipse.bpel.ui.uiextensionmodel="http:///org/eclipse/bpel/ui/uiextensionmodel.ecore"
namespace="http://org.eclipse.bpel.ui/">
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.4"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.5"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.6"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.7"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"
x="8" y="8"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"
x="178" y="8"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.0/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.0/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.1/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.1/@activity/@compensationHandler/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.1/@activity/@compensationHandler/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.1/@activity/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.1/@activity/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.2/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.2/@activity/@compensationHandler/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.2/@activity/@compensationHandler/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.2/@activity/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.2/@activity/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/(a)activities.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.3/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.3/@activity/@compensationHandler/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.3/@activity/@compensationHandler/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.3/@activity/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.3/@activity/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.2/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.2/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/(a)activities.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@variables/(a)children.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@variables/(a)children.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@variables/(a)children.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@activity/@activities.1/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@activity/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/(a)messages.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:OnMessageExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@messages.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@messages.0/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@messages.0/@activity/@activities.0/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@messages.0/@activity/@activities.0/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@messages.0/@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/(a)messages.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:OnMessageExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@messages.1/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/(a)alarm.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:OnAlarmExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@alarm.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@alarm.0/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@faultHandlers/@catch.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@faultHandlers/@catch.0/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@faultHandlers/@catch.0/@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@faultHandlers/@catch.0/@activity/@activities.1/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@faultHandlers/@catch.0/@activity/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#/"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ProcessExtension"
modificationStamp="1258689763000"/>
+ </extensions>
+</extensionmodel:ExtensionMap>
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.wsdl
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.wsdl
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.wsdl 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,192 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name="trip"
targetNamespace="http://jbpm.org/examples/trip"
+
xmlns:tns="http://jbpm.org/examples/trip"
xmlns:tic="http://jbpm.org/examples/ticket"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:plt="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <import
namespace="http://jbpm.org/examples/ticket"
location="ticket.wsdl" />
+
+ <types>
+ <xsd:schema
targetNamespace="http://jbpm.org/examples/trip">
+ <xsd:complexType name="Flight">
+ <xsd:attribute name="airline" type="xsd:string"
use="required" />
+ <xsd:attribute name="number" type="xsd:int"
use="required" />
+ </xsd:complexType>
+
+ <xsd:complexType name="Hotel">
+ <xsd:attribute name="name" type="xsd:string"
use="required" />
+ </xsd:complexType>
+
+ <xsd:complexType name="RentalCar">
+ <xsd:attribute name="company" type="xsd:string"
use="required" />
+ </xsd:complexType>
+
+ <xsd:complexType name="ItemSet">
+ <xsd:sequence>
+ <xsd:element name="flight" type="tns:Flight"
nillable="true" />
+ <xsd:element name="hotel" type="tns:Hotel"
nillable="true" />
+ <xsd:element name="rentalCar" type="tns:RentalCar"
nillable="true" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:element name="order">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="items" type="tns:ItemSet" />
+ <xsd:element name="date" type="xsd:dateTime" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+
+ <xsd:element name="invoice">
+ <xsd:complexType>
+ <xsd:sequence />
+ <xsd:attribute name="locator" type="xsd:int"
use="required" />
+ <xsd:attribute name="cost" type="xsd:double"
use="required" />
+ </xsd:complexType>
+ </xsd:element>
+
+ <xsd:element name="cancelation">
+ <xsd:complexType>
+ <xsd:sequence />
+ <xsd:attribute name="locator" type="xsd:int"
use="required" />
+ </xsd:complexType>
+ </xsd:element>
+
+ <xsd:element name="penalty">
+ <xsd:complexType>
+ <xsd:sequence />
+ <xsd:attribute name="fee" type="xsd:double"
use="required" />
+ </xsd:complexType>
+ </xsd:element>
+
+ <xsd:element name="query">
+ <xsd:complexType>
+ <xsd:sequence />
+ <xsd:attribute name="locator" type="xsd:int"
use="required" />
+ </xsd:complexType>
+ </xsd:element>
+
+ <xsd:element name="detail">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="items" type="tns:ItemSet" />
+ </xsd:sequence>
+ <xsd:attribute name="cost" type="xsd:double"
use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ </types>
+
+ <message name="detailRequest">
+ <part name="query" element="tns:query" />
+ </message>
+
+ <message name="cancelRequest">
+ <part name="cancelation" element="tns:cancelation" />
+ </message>
+
+ <message name="purchaseResponse">
+ <part name="invoice" element="tns:invoice" />
+ </message>
+
+ <message name="cancelResponse">
+ <part name="penalty" element="tns:penalty" />
+ </message>
+
+ <message name="purchaseRequest">
+ <part name="order" element="tns:order" />
+ </message>
+
+ <message name="detailResponse">
+ <part name="detail" element="tns:detail" />
+ </message>
+
+ <portType name="TravelAgent">
+ <operation name="purchaseTrip">
+ <input message="tns:purchaseRequest" />
+ <output message="tns:purchaseResponse" />
+ </operation>
+
+ <operation name="cancelTrip">
+ <input message="tns:cancelRequest" />
+ <output message="tns:cancelResponse" />
+ </operation>
+
+ <operation name="getTripDetail">
+ <input message="tns:detailRequest" />
+ <output message="tns:detailResponse" />
+ </operation>
+ </portType>
+
+ <binding name="TravelAgentBinding" type="tns:TravelAgent">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
+
+ <operation name="purchaseTrip">
+ <soap:operation
soapAction="http://jbpm.org/examples/trip/purchaseTrip"
/>
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+
+ <operation name="cancelTrip">
+ <soap:operation
soapAction="http://jbpm.org/examples/trip/cancelTrip"
/>
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+
+ <operation name="getTripDetail">
+ <soap:operation
soapAction="http://jbpm.org/examples/trip/getTripDetail"
/>
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+
+ <service name="TravelService">
+ <port name="TravelAgentPort"
binding="tns:TravelAgentBinding">
+ <soap:address
+ location="http://127.0.0.1:8080/Quickstart_bpel_travel_agency/travelAgent"
/>
+ </port>
+ </service>
+
+ <plt:partnerLinkType name="Traveler-Agent">
+ <plt:role name="Agent" portType="tns:TravelAgent" />
+ </plt:partnerLinkType>
+
+ <plt:partnerLinkType name="Agent-Ticket">
+ <plt:role name="TicketIssuer" portType="tic:TicketIssuer" />
+ </plt:partnerLinkType>
+
+ <vprop:property name="tripLocator" type="xsd:string" />
+
+ <vprop:propertyAlias propertyName="tns:tripLocator"
+ messageType="tns:purchaseResponse" part="invoice">
+ <vprop:query>@locator</vprop:query>
+ </vprop:propertyAlias>
+
+ <vprop:propertyAlias propertyName="tns:tripLocator"
+ messageType="tns:cancelRequest" part="cancelation">
+ <vprop:query>@locator</vprop:query>
+ </vprop:propertyAlias>
+
+ <vprop:propertyAlias propertyName="tns:tripLocator"
+ messageType="tns:detailRequest" part="query">
+ <vprop:query>@locator</vprop:query>
+ </vprop:propertyAlias>
+
+ <vprop:propertyAlias propertyName="tns:tripLocator"
+ messageType="tic:ticketMessage" part="ticketNo" />
+
+</definitions>
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/bpel/trip.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/build.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/build.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/build.xml 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,52 @@
+<project name="Quickstart_bpel_travel_agency" default="deploy"
basedir=".">
+
+ <description>${ant.project.name}</description>
+
+ <property name="version" value="1" />
+
+ <property name="deploy.dir" value="${basedir}/target/tests"
/>
+ <property name="test.dir"
+ value="${basedir}/src/test/resources/samples/${ant.project.name}"
/>
+
+ <property name="sample.jar.name"
value="${ant.project.name}-${version}.jar" />
+ <property name="war.build.dir"
+ location="${deploy.dir}/${ant.project.name}/build/war/classes"
/>
+
+ <path id="compile-classpath">
+ <pathelement location="${org.jboss.as.home}/client/jboss-javaee.jar"
/>
+ </path>
+
+ <target name="deploywar" description="make war">
+ <!-- Compile... -->
+ <mkdir dir="${war.build.dir}" />
+ <javac srcdir="${test.dir}/war/src"
+ destdir="${war.build.dir}"
+ target="1.5"
+ debug="true"
+ fork="true">
+ <classpath refid="compile-classpath" />
+ </javac>
+
+ <!-- War... -->
+ <war warfile="${deploy.dir}/${ant.project.name}/${ant.project.name}.war"
+ webxml="${test.dir}/war/resources/WEB-INF/web.xml">
+ <classes dir="${war.build.dir}" />
+ </war>
+ </target>
+
+ <target name="undeploywar">
+ <delete file="${deploy.dir}/${ant.project.name}/${ant.project.name}.war"
/>
+ </target>
+
+ <target name="deploy" depends="deploywar">
+ <echo>Deploy ${ant.project.name}</echo>
+ <jar basedir="${test.dir}/bpel"
+ destfile="${deploy.dir}/${ant.project.name}/${sample.jar.name}" />
+ </target>
+
+ <target name="undeploy" depends="undeploywar">
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${ant.project.name}/${sample.jar.name}" />
+ </target>
+
+</project>
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/build.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/resources/WEB-INF/web.xml
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/resources/WEB-INF/web.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/resources/WEB-INF/web.xml 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <servlet>
+ <servlet-name>ticketIssuerServlet</servlet-name>
+ <servlet-class>
+ org.jboss.soa.bpel.samples.quickstart.ticket.TicketIssuer_Impl
+ </servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>ticketIssuerServlet</servlet-name>
+ <url-pattern>/ticketIssuer</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/resources/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,22 @@
+package org.jboss.soa.bpel.samples.quickstart.ticket;
+
+import javax.jws.WebMethod;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * interface to ticket issuer service
+ */
+@WebService(name = "TicketIssuer", targetNamespace =
"http://jbpm.org/examples/ticket")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface TicketIssuer {
+
+ /**
+ * generate a ticket number, distinct from previous calls
+ */
+ @WebMethod(action = "http://jbpm.org/examples/ticket#createTicket")
+ @WebResult(name = "ticketNo", partName = "ticketNo")
+ public int createTicket();
+
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer_Impl.java
===================================================================
---
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer_Impl.java
(rev 0)
+++
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer_Impl.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the JBPM BPEL PUBLIC LICENSE AGREEMENT as
+ * published by JBoss Inc.; either version 1.0 of the License, or
+ * (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+package org.jboss.soa.bpel.samples.quickstart.ticket;
+
+import javax.jws.WebService;
+
+/**
+ * @author Alejandro Guizar
+ * @version $Revision$ $Date: 2006/09/27 03:53:07 $
+ */
+@WebService(endpointInterface =
"org.jboss.soa.bpel.samples.quickstart.ticket.TicketIssuer", targetNamespace =
"http://jbpm.org/examples/ticket", serviceName = "TicketService",
portName = "TicketIssuerPort")
+public class TicketIssuer_Impl implements TicketIssuer {
+
+ private static int currentSession = 1;
+
+ public int createTicket() {
+ synchronized (TicketIssuer_Impl.class) {
+ return currentSession++;
+ }
+ }
+}
Property changes on:
trunk/integration-tests/src/test/resources/samples/Quickstart_bpel_travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer_Impl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/samples/quickstart/atm/bpel/bpel-deploy.xml
===================================================================
--- trunk/samples/quickstart/atm/bpel/bpel-deploy.xml 2009-11-20 10:03:23 UTC (rev 287)
+++ trunk/samples/quickstart/atm/bpel/bpel-deploy.xml 2009-11-20 10:49:57 UTC (rev 288)
@@ -1,17 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
-<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03">
- <process name="atm:AtmFrontEnd"
xmlns:atm="http://jbpm.org/examples/atm">
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:atm="http://jbpm.org/examples/atm"
+
xmlns:tic="http://jbpm.org/examples/ticket"
xmlns:acc="http://jbpm.org/examples/account">
+ <process name="atm:AtmFrontEnd">
<active>true</active>
+
<provide partnerLink="atm">
<service name="atm:AtmFrontEndService" port="FrontEndPort"
/>
</provide>
+
<invoke partnerLink="ticket">
- <service name="tic:TicketService" port="TicketIssuerPort"
-
xmlns:tic="http://jbpm.org/examples/ticket" />
+ <service name="tic:TicketService" port="TicketIssuerPort"
/>
</invoke>
+
<invoke partnerLink="account">
- <service name="acc:AccountService" port="AccountSystemPort"
-
xmlns:acc="http://jbpm.org/examples/account" />
+ <service name="acc:AccountService" port="AccountSystemPort"
/>
</invoke>
</process>
</deploy>
\ No newline at end of file
Modified: trunk/samples/quickstart/atm/build.xml
===================================================================
--- trunk/samples/quickstart/atm/build.xml 2009-11-20 10:03:23 UTC (rev 287)
+++ trunk/samples/quickstart/atm/build.xml 2009-11-20 10:49:57 UTC (rev 288)
@@ -1,8 +1,6 @@
<project name="Quickstart_bpel_atm" default="deploy"
basedir=".">
- <description>
- ${ant.project.name}
- </description>
+ <description>${ant.project.name}</description>
<!-- Import the base Ant build script... -->
<property file="../../../install/deployment.properties" />
Added: trunk/samples/quickstart/travel_agency/bpel/bpel-deploy.xml
===================================================================
--- trunk/samples/quickstart/travel_agency/bpel/bpel-deploy.xml
(rev 0)
+++ trunk/samples/quickstart/travel_agency/bpel/bpel-deploy.xml 2009-11-20 10:49:57 UTC
(rev 288)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:trp="http://jbpm.org/examples/trip"
+
xmlns:tic="http://jbpm.org/examples/ticket"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <process name="trp:TripReservation">
+ <active>true</active>
+
+ <provide partnerLink="traveler">
+ <service name="trp:TravelService" port="TravelAgentPort" />
+ </provide>
+
+ <invoke partnerLink="ticket">
+ <service name="tic:TicketService" port="TicketIssuerPort"
/>
+ </invoke>
+ </process>
+</deploy>
\ No newline at end of file
Property changes on: trunk/samples/quickstart/travel_agency/bpel/bpel-deploy.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/samples/quickstart/travel_agency/bpel/ticket.wsdl
===================================================================
--- trunk/samples/quickstart/travel_agency/bpel/ticket.wsdl (rev
0)
+++ trunk/samples/quickstart/travel_agency/bpel/ticket.wsdl 2009-11-20 10:49:57 UTC (rev
288)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
targetNamespace="http://jbpm.org/examples/ticket"
+
xmlns:tns="http://jbpm.org/examples/ticket"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+ <message name="ticketRequest">
+ <documentation>ticket creation request</documentation>
+ </message>
+
+ <message name="ticketMessage">
+ <documentation>ticket number wrapper</documentation>
+ <part name="ticketNo" type="xsd:int" />
+ </message>
+
+ <portType name="TicketIssuer">
+ <documentation>interface to ticket issuer service</documentation>
+
+ <operation name="createTicket">
+ <documentation>generate a ticket number, distinct from previous calls
+ </documentation>
+ <input message="tns:ticketRequest" />
+ <output message="tns:ticketMessage" />
+ </operation>
+ </portType>
+
+ <binding name="TicketIssuerBinding" type="tns:TicketIssuer">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
+
+ <operation name="createTicket">
+ <soap:operation
soapAction="http://jbpm.org/examples/ticket#createTicket"
/>
+ <input>
+ <soap:body use="literal"
namespace="http://jbpm.org/examples/ticket" />
+ </input>
+ <output>
+ <soap:body use="literal"
namespace="http://jbpm.org/examples/ticket" />
+ </output>
+ </operation>
+ </binding>
+
+ <service name="TicketService">
+ <port name="TicketIssuerPort"
binding="tns:TicketIssuerBinding">
+ <soap:address
location="http://127.0.0.1:8080/Quickstart_bpel_travel_agency/ticketIssuer"
/>
+ </port>
+ </service>
+
+</definitions>
\ No newline at end of file
Property changes on: trunk/samples/quickstart/travel_agency/bpel/ticket.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/samples/quickstart/travel_agency/bpel/trip.bpel
===================================================================
--- trunk/samples/quickstart/travel_agency/bpel/trip.bpel (rev 0)
+++ trunk/samples/quickstart/travel_agency/bpel/trip.bpel 2009-11-20 10:49:57 UTC (rev
288)
@@ -0,0 +1,218 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bpws:process exitOnStandardFault="yes" name="TripReservation"
+
targetNamespace="http://jbpm.org/examples/trip"
+
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable...
+
xmlns:tic="http://jbpm.org/examples/ticket"
+
xmlns:tns="http://jbpm.org/examples/trip"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <bpws:import
importType="http://schemas.xmlsoap.org/wsdl/"
+ location="trip.wsdl"
namespace="http://jbpm.org/examples/trip"/>
+ <bpws:import
importType="http://schemas.xmlsoap.org/wsdl/"
+ location="ticket.wsdl"
namespace="http://jbpm.org/examples/ticket"/>
+ <bpws:partnerLinks>
+ <bpws:partnerLink myRole="Agent" name="traveler"
partnerLinkType="tns:Traveler-Agent"/>
+ <bpws:partnerLink name="ticket"
+ partnerLinkType="tns:Agent-Ticket"
partnerRole="TicketIssuer"/>
+ </bpws:partnerLinks>
+ <bpws:variables>
+ <bpws:variable messageType="tns:purchaseRequest"
name="purchaseRequest"/>
+ <bpws:variable name="cost" type="xsd:double"/>
+ <bpws:variable name="items" type="tns:ItemSet"/>
+ <bpws:variable name="dateReached" type="xsd:boolean"/>
+ <bpws:variable messageType="tns:detailRequest"
name="detailRequest"/>
+ <bpws:variable messageType="tns:detailResponse"
name="detailResponse"/>
+ <bpws:variable messageType="tns:cancelRequest"
name="cancelRequest"/>
+ <bpws:variable messageType="tns:cancelResponse"
name="cancelResponse"/>
+ </bpws:variables>
+ <bpws:correlationSets>
+ <bpws:correlationSet name="trip"
properties="tns:tripLocator"/>
+ </bpws:correlationSets>
+ <bpws:faultHandlers>
+ <bpws:catch faultName="tns:cancelation">
+ <bpws:sequence name="Cancel">
+ <bpws:compensateScope name="UndoPurchase"
target="TripPurchase" />
+ <bpws:assign name="PreparePenalty"
validate="no">
+ <bpws:copy>
+ <bpws:from variable="cost"/>
+ <bpws:to part="penalty"
variable="cancelResponse">
+ <bpws:query><![CDATA[@fee]]></bpws:query>
+ </bpws:to>
+ </bpws:copy>
+ </bpws:assign>
+ <bpws:reply name="SendPenalty"
operation="cancelTrip"
+ partnerLink="traveler" portType="tns:TravelAgent"
variable="cancelResponse"/>
+ </bpws:sequence>
+ </bpws:catch>
+ </bpws:faultHandlers>
+ <bpws:sequence name="Main">
+ <bpws:scope name="TripPurchase">
+ <bpws:variables>
+ <bpws:variable messageType="tic:ticketRequest"
name="ticketRequest"/>
+ <bpws:variable messageType="tic:ticketMessage"
name="ticketMessage"/>
+ <bpws:variable messageType="tns:purchaseResponse"
name="purchaseResponse"/>
+ </bpws:variables>
+ <bpws:sequence name="PurchaseTrip">
+ <bpws:receive createInstance="yes"
+ name="ReceiveTripOrder" operation="purchaseTrip"
+ partnerLink="traveler" portType="tns:TravelAgent"
variable="purchaseRequest"/>
+ <bpws:flow>
+ <bpws:invoke inputVariable="ticketRequest"
+ name="CreateTicket" operation="createTicket"
+ outputVariable="ticketMessage"
+ partnerLink="ticket"
portType="tic:TicketIssuer">
+ <bpws:correlations>
+ <bpws:correlation initiate="yes"
+ pattern="in" set="trip"/>
+ </bpws:correlations>
+ </bpws:invoke>
+ <bpws:sequence name="EvaluateCost">
+ <bpws:assign name="InitializeCost"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[0]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ <bpws:copy>
+ <bpws:from part="order"
variable="purchaseRequest">
+
<bpws:query><![CDATA[items]]></bpws:query>
+ </bpws:from>
+ <bpws:to variable="items"/>
+ </bpws:copy>
+ </bpws:assign>
+ <bpws:if name="FlightDecision">
+ <bpws:condition><![CDATA[$items/flight and
string($items/flight/@xsi:nil) != '1']]></bpws:condition>
+ <bpws:scope name="FlightReservation">
+ <bpws:compensationHandler>
+ <bpws:assign name="ReimburseFlight"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[$cost - 300 +
100]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:compensationHandler>
+ <bpws:assign name="ChargeFlight"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[$cost +
300]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:scope>
+ </bpws:if>
+ <bpws:if name="HotelDecision">
+ <bpws:condition><![CDATA[$items/hotel and
string($items/hotel/@xsi:nil) != '1']]></bpws:condition>
+ <bpws:scope name="HotelReservation">
+ <bpws:compensationHandler>
+ <bpws:assign name="ReimburseHotel"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[$cost - 100 +
25]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:compensationHandler>
+ <bpws:assign name="ChargeHotel"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[$cost +
100]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:scope>
+ </bpws:if>
+ <bpws:if name="CarDecision">
+ <bpws:condition><![CDATA[$items/rentalCar and
string($items/rentalCar/@xsi:nil) != '1']]></bpws:condition>
+ <bpws:scope name="CarReservation">
+ <bpws:compensationHandler>
+ <bpws:assign name="reimburseCar"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[$cost - 50 +
5]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:compensationHandler>
+ <bpws:assign name="ChargeCar"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[$cost +
50]]></bpws:from>
+ <bpws:to variable="cost"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:scope>
+ </bpws:if>
+ </bpws:sequence>
+ </bpws:flow>
+ <bpws:assign name="PrepareInvoice"
validate="no">
+ <bpws:copy>
+ <bpws:from part="ticketNo"
variable="ticketMessage"/>
+ <bpws:to part="invoice"
variable="purchaseResponse">
+
<bpws:query><![CDATA[@locator]]></bpws:query>
+ </bpws:to>
+ </bpws:copy>
+ <bpws:copy>
+ <bpws:from variable="cost"/>
+ <bpws:to part="invoice"
variable="purchaseResponse">
+ <bpws:query><![CDATA[@cost]]></bpws:query>
+ </bpws:to>
+ </bpws:copy>
+ </bpws:assign>
+ <bpws:reply name="SendInvoice"
operation="purchaseTrip"
+ partnerLink="traveler" portType="tns:TravelAgent"
variable="purchaseResponse">
+ <bpws:correlations>
+ <bpws:correlation initiate="no"
set="trip"/>
+ </bpws:correlations>
+ </bpws:reply>
+ </bpws:sequence>
+ </bpws:scope>
+ <bpws:assign name="SetDateNotReached" validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[false()]]></bpws:from>
+ <bpws:to variable="dateReached"/>
+ </bpws:copy>
+ </bpws:assign>
+ <bpws:while name="PredateLoop">
+ <bpws:condition><![CDATA[$dateReached =
'false']]></bpws:condition>
+ <bpws:pick name="PredateMenu">
+ <bpws:onMessage operation="getTripDetail"
+ partnerLink="traveler" portType="tns:TravelAgent"
variable="detailRequest">
+ <bpws:correlations>
+ <bpws:correlation initiate="no"
set="trip"/>
+ </bpws:correlations>
+ <bpws:sequence name="GetTripDetail">
+ <bpws:assign name="PrepareTripDetail"
validate="no">
+ <bpws:copy>
+ <bpws:from part="order"
variable="purchaseRequest">
+
<bpws:query><![CDATA[items]]></bpws:query>
+ </bpws:from>
+ <bpws:to part="detail"
variable="detailResponse">
+
<bpws:query><![CDATA[items]]></bpws:query>
+ </bpws:to>
+ </bpws:copy>
+ <bpws:copy>
+ <bpws:from variable="cost"/>
+ <bpws:to part="detail"
variable="detailResponse">
+
<bpws:query><![CDATA[@cost]]></bpws:query>
+ </bpws:to>
+ </bpws:copy>
+ </bpws:assign>
+ <bpws:reply name="SendTripDetail"
+ operation="getTripDetail"
+ partnerLink="traveler"
+ portType="tns:TravelAgent"
variable="detailResponse"/>
+ </bpws:sequence>
+ </bpws:onMessage>
+ <bpws:onMessage operation="cancelTrip"
+ partnerLink="traveler" portType="tns:TravelAgent"
variable="cancelRequest">
+ <bpws:correlations>
+ <bpws:correlation initiate="no"
set="trip"/>
+ </bpws:correlations>
+ <bpws:throw faultName="tns:cancelation"
name="CancelTrip"/>
+ </bpws:onMessage>
+ <bpws:onAlarm>
+
<bpws:until><![CDATA[$purchaseRequest.order/date]]></bpws:until>
+ <bpws:assign name="SetDateReached"
validate="no">
+ <bpws:copy>
+ <bpws:from><![CDATA[true()]]></bpws:from>
+ <bpws:to variable="dateReached"/>
+ </bpws:copy>
+ </bpws:assign>
+ </bpws:onAlarm>
+ </bpws:pick>
+ </bpws:while>
+ </bpws:sequence>
+</bpws:process>
Added: trunk/samples/quickstart/travel_agency/bpel/trip.bpelex
===================================================================
--- trunk/samples/quickstart/travel_agency/bpel/trip.bpelex (rev
0)
+++ trunk/samples/quickstart/travel_agency/bpel/trip.bpelex 2009-11-20 10:49:57 UTC (rev
288)
@@ -0,0 +1,259 @@
+<?xml version="1.0" encoding="ASCII"?>
+<extensionmodel:ExtensionMap xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:extensionmodel="http:///extensionmodel.ecore"
xmlns:org.eclipse.bpel.ui.uiextensionmodel="http:///org/eclipse/bpel/ui/uiextensionmodel.ecore"
namespace="http://org.eclipse.bpel.ui/">
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.4"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.5"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.6"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@variables/(a)children.7"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"
x="8" y="8"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"
x="178" y="8"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.0/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.0/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.1/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.1/@activity/@compensationHandler/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.1/@activity/@compensationHandler/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.1/@activity/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.1/@activity/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.2/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.2/@activity/@compensationHandler/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.2/@activity/@compensationHandler/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.2/@activity/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.2/@activity/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/(a)activities.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.3/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.3/@activity/@compensationHandler/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.3/@activity/@compensationHandler/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.3/@activity/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.1/@activities.1/@activities.3/@activity/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.2/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/@activities.2/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@activity/(a)activities.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@variables/(a)children.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@variables/(a)children.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.0/@variables/(a)children.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@activity/@activities.1/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#//@activity/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/(a)messages.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:OnMessageExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@messages.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@messages.0/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@messages.0/@activity/@activities.0/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@messages.0/@activity/@activities.0/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@messages.0/@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/(a)messages.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:OnMessageExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@messages.1/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/(a)alarm.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:OnAlarmExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@alarm.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@activity/@activities.2/@activity/@alarm.0/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@faultHandlers/@catch.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@faultHandlers/@catch.0/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@faultHandlers/@catch.0/@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@faultHandlers/@catch.0/@activity/@activities.1/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="trip.bpel#//@faultHandlers/@catch.0/@activity/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="trip.bpel#/"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ProcessExtension"
modificationStamp="1258689763000"/>
+ </extensions>
+</extensionmodel:ExtensionMap>
Added: trunk/samples/quickstart/travel_agency/bpel/trip.wsdl
===================================================================
--- trunk/samples/quickstart/travel_agency/bpel/trip.wsdl (rev 0)
+++ trunk/samples/quickstart/travel_agency/bpel/trip.wsdl 2009-11-20 10:49:57 UTC (rev
288)
@@ -0,0 +1,192 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name="trip"
targetNamespace="http://jbpm.org/examples/trip"
+
xmlns:tns="http://jbpm.org/examples/trip"
xmlns:tic="http://jbpm.org/examples/ticket"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:plt="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <import
namespace="http://jbpm.org/examples/ticket"
location="ticket.wsdl" />
+
+ <types>
+ <xsd:schema
targetNamespace="http://jbpm.org/examples/trip">
+ <xsd:complexType name="Flight">
+ <xsd:attribute name="airline" type="xsd:string"
use="required" />
+ <xsd:attribute name="number" type="xsd:int"
use="required" />
+ </xsd:complexType>
+
+ <xsd:complexType name="Hotel">
+ <xsd:attribute name="name" type="xsd:string"
use="required" />
+ </xsd:complexType>
+
+ <xsd:complexType name="RentalCar">
+ <xsd:attribute name="company" type="xsd:string"
use="required" />
+ </xsd:complexType>
+
+ <xsd:complexType name="ItemSet">
+ <xsd:sequence>
+ <xsd:element name="flight" type="tns:Flight"
nillable="true" />
+ <xsd:element name="hotel" type="tns:Hotel"
nillable="true" />
+ <xsd:element name="rentalCar" type="tns:RentalCar"
nillable="true" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:element name="order">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="items" type="tns:ItemSet" />
+ <xsd:element name="date" type="xsd:dateTime" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+
+ <xsd:element name="invoice">
+ <xsd:complexType>
+ <xsd:sequence />
+ <xsd:attribute name="locator" type="xsd:int"
use="required" />
+ <xsd:attribute name="cost" type="xsd:double"
use="required" />
+ </xsd:complexType>
+ </xsd:element>
+
+ <xsd:element name="cancelation">
+ <xsd:complexType>
+ <xsd:sequence />
+ <xsd:attribute name="locator" type="xsd:int"
use="required" />
+ </xsd:complexType>
+ </xsd:element>
+
+ <xsd:element name="penalty">
+ <xsd:complexType>
+ <xsd:sequence />
+ <xsd:attribute name="fee" type="xsd:double"
use="required" />
+ </xsd:complexType>
+ </xsd:element>
+
+ <xsd:element name="query">
+ <xsd:complexType>
+ <xsd:sequence />
+ <xsd:attribute name="locator" type="xsd:int"
use="required" />
+ </xsd:complexType>
+ </xsd:element>
+
+ <xsd:element name="detail">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="items" type="tns:ItemSet" />
+ </xsd:sequence>
+ <xsd:attribute name="cost" type="xsd:double"
use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ </types>
+
+ <message name="detailRequest">
+ <part name="query" element="tns:query" />
+ </message>
+
+ <message name="cancelRequest">
+ <part name="cancelation" element="tns:cancelation" />
+ </message>
+
+ <message name="purchaseResponse">
+ <part name="invoice" element="tns:invoice" />
+ </message>
+
+ <message name="cancelResponse">
+ <part name="penalty" element="tns:penalty" />
+ </message>
+
+ <message name="purchaseRequest">
+ <part name="order" element="tns:order" />
+ </message>
+
+ <message name="detailResponse">
+ <part name="detail" element="tns:detail" />
+ </message>
+
+ <portType name="TravelAgent">
+ <operation name="purchaseTrip">
+ <input message="tns:purchaseRequest" />
+ <output message="tns:purchaseResponse" />
+ </operation>
+
+ <operation name="cancelTrip">
+ <input message="tns:cancelRequest" />
+ <output message="tns:cancelResponse" />
+ </operation>
+
+ <operation name="getTripDetail">
+ <input message="tns:detailRequest" />
+ <output message="tns:detailResponse" />
+ </operation>
+ </portType>
+
+ <binding name="TravelAgentBinding" type="tns:TravelAgent">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
+
+ <operation name="purchaseTrip">
+ <soap:operation
soapAction="http://jbpm.org/examples/trip/purchaseTrip"
/>
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+
+ <operation name="cancelTrip">
+ <soap:operation
soapAction="http://jbpm.org/examples/trip/cancelTrip"
/>
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+
+ <operation name="getTripDetail">
+ <soap:operation
soapAction="http://jbpm.org/examples/trip/getTripDetail"
/>
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+
+ <service name="TravelService">
+ <port name="TravelAgentPort"
binding="tns:TravelAgentBinding">
+ <soap:address
+ location="http://127.0.0.1:8080/Quickstart_bpel_travel_agency/travelAgent"
/>
+ </port>
+ </service>
+
+ <plt:partnerLinkType name="Traveler-Agent">
+ <plt:role name="Agent" portType="tns:TravelAgent" />
+ </plt:partnerLinkType>
+
+ <plt:partnerLinkType name="Agent-Ticket">
+ <plt:role name="TicketIssuer" portType="tic:TicketIssuer" />
+ </plt:partnerLinkType>
+
+ <vprop:property name="tripLocator" type="xsd:string" />
+
+ <vprop:propertyAlias propertyName="tns:tripLocator"
+ messageType="tns:purchaseResponse" part="invoice">
+ <vprop:query>@locator</vprop:query>
+ </vprop:propertyAlias>
+
+ <vprop:propertyAlias propertyName="tns:tripLocator"
+ messageType="tns:cancelRequest" part="cancelation">
+ <vprop:query>@locator</vprop:query>
+ </vprop:propertyAlias>
+
+ <vprop:propertyAlias propertyName="tns:tripLocator"
+ messageType="tns:detailRequest" part="query">
+ <vprop:query>@locator</vprop:query>
+ </vprop:propertyAlias>
+
+ <vprop:propertyAlias propertyName="tns:tripLocator"
+ messageType="tic:ticketMessage" part="ticketNo" />
+
+</definitions>
Property changes on: trunk/samples/quickstart/travel_agency/bpel/trip.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/samples/quickstart/travel_agency/build.xml
===================================================================
--- trunk/samples/quickstart/travel_agency/build.xml (rev 0)
+++ trunk/samples/quickstart/travel_agency/build.xml 2009-11-20 10:49:57 UTC (rev 288)
@@ -0,0 +1,61 @@
+<project name="Quickstart_bpel_travel_agency" default="deploy"
basedir=".">
+
+ <description>${ant.project.name}</description>
+
+ <!-- Import the base Ant build script... -->
+ <property file="../../../install/deployment.properties" />
+
+ <property name="version" value="1" />
+
+ <property name="server.dir"
+ value="${org.jboss.as.home}/server/${org.jboss.as.config}" />
+ <property name="conf.dir" value="${server.dir}/conf" />
+ <property name="deploy.dir" value="${server.dir}/deploy" />
+ <property name="server.lib.dir" value="${server.dir}/lib" />
+
+ <property name="sample.jar.name"
value="${ant.project.name}-${version}.jar" />
+ <property name="war.build.dir" location="build/war/classes"
/>
+
+ <path id="compile-classpath">
+ <pathelement location="${org.jboss.as.home}/client/jboss-javaee.jar"
/>
+ </path>
+
+ <target name="makewar" description="make war">
+ <!-- Compile... -->
+ <mkdir dir="${war.build.dir}" />
+ <javac srcdir="war/src"
+ destdir="${war.build.dir}"
+ target="1.5"
+ debug="true">
+ <classpath refid="compile-classpath" />
+ </javac>
+ <copy todir="${war.build.dir}">
+ <fileset dir="war/src" includes="**/*.xml" />
+ </copy>
+
+ <!-- War... -->
+ <war warfile="build/${ant.project.name}.war"
+ webxml="${basedir}/war/resources/WEB-INF/web.xml">
+ <classes dir="${war.build.dir}" />
+ </war>
+ </target>
+
+ <target name="deploywar" depends="makewar">
+ <copy todir="${deploy.dir}" file="build/${ant.project.name}.war"
/>
+ </target>
+
+ <target name="undeploywar">
+ <delete file="${deploy.dir}/${ant.project.name}.war" />
+ </target>
+
+ <target name="deploy" depends="deploywar">
+ <echo>Deploy ${ant.project.name}</echo>
+ <jar basedir="bpel" destfile="${deploy.dir}/${sample.jar.name}"
/>
+ </target>
+
+ <target name="undeploy" depends="undeploywar">
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${sample.jar.name}" />
+ </target>
+
+</project>
Property changes on: trunk/samples/quickstart/travel_agency/build.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/samples/quickstart/travel_agency/war/resources/WEB-INF/web.xml
===================================================================
--- trunk/samples/quickstart/travel_agency/war/resources/WEB-INF/web.xml
(rev 0)
+++ trunk/samples/quickstart/travel_agency/war/resources/WEB-INF/web.xml 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <servlet>
+ <servlet-name>ticketIssuerServlet</servlet-name>
+ <servlet-class>
+ org.jboss.soa.bpel.samples.quickstart.ticket.TicketIssuer_Impl
+ </servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>ticketIssuerServlet</servlet-name>
+ <url-pattern>/ticketIssuer</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
Property changes on: trunk/samples/quickstart/travel_agency/war/resources/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer.java
===================================================================
---
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer.java
(rev 0)
+++
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,22 @@
+package org.jboss.soa.bpel.samples.quickstart.ticket;
+
+import javax.jws.WebMethod;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * interface to ticket issuer service
+ */
+@WebService(name = "TicketIssuer", targetNamespace =
"http://jbpm.org/examples/ticket")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface TicketIssuer {
+
+ /**
+ * generate a ticket number, distinct from previous calls
+ */
+ @WebMethod(action = "http://jbpm.org/examples/ticket#createTicket")
+ @WebResult(name = "ticketNo", partName = "ticketNo")
+ public int createTicket();
+
+}
Property changes on:
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer_Impl.java
===================================================================
---
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer_Impl.java
(rev 0)
+++
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer_Impl.java 2009-11-20
10:49:57 UTC (rev 288)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the JBPM BPEL PUBLIC LICENSE AGREEMENT as
+ * published by JBoss Inc.; either version 1.0 of the License, or
+ * (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+package org.jboss.soa.bpel.samples.quickstart.ticket;
+
+import javax.jws.WebService;
+
+/**
+ * @author Alejandro Guizar
+ * @version $Revision$ $Date: 2006/09/27 03:53:07 $
+ */
+@WebService(endpointInterface =
"org.jboss.soa.bpel.samples.quickstart.ticket.TicketIssuer", targetNamespace =
"http://jbpm.org/examples/ticket", serviceName = "TicketService",
portName = "TicketIssuerPort")
+public class TicketIssuer_Impl implements TicketIssuer {
+
+ private static int currentSession = 1;
+
+ public int createTicket() {
+ synchronized (TicketIssuer_Impl.class) {
+ return currentSession++;
+ }
+ }
+}
Property changes on:
trunk/samples/quickstart/travel_agency/war/src/org/jboss/soa/bpel/samples/quickstart/ticket/TicketIssuer_Impl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF