Use-cases

compared with
Current by Julien Lesbegueries
on Apr 21, 2011 16:40.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (2)

View Page History
{code}

h3. Use-case as a Junit Test

You can test this use-case thanks to this [zip|http://easybpel.petalslink.org/doc/easybpel.usecase.travelagency-1.0.zip]. Unzip it and launch the script../junittest.sh or .\junittest.bat
You also have in this archive all the needed files that you should have created reading this use-case.

h3. Use-case deployment and test run in Petals ESB (with Petals BPEL engine)

It is possible to use EasyBPEL in Petals ESB thanks to petals-se-bpel JBI component. Indeed this component encapsulates EasyBPEL library and allows it to receive or send JBI messages in the bus.


To build this use-case, you have first to prepare partners.

First one is the Airline partner represented by a Web-Service (a war file to install in the webapp folder of your application server). You can find this war [here (airlineWS.war)|http://easybpel.petalslink.org/doc/usecase1travelagency.zip].

The second one is the Hotel partner represented by a batch file. You have to define a MYHOME variable representing your home folder, and then to create the following tree in it:
{code:lang=xml}TP
| -partners
|-hotel
|-INCOMING_RESERVATION
|-OUTGOING_CONFIRMATION
{code}



The last partner is the car booking service. It is implemented by a Web Service (Axis2 aar to depose in services folder of Axis2 webapp) and it is described thanks to a WSDL 2.0 description (available in the same archive).

Once partners are ready you can create SUs in order to prepare their invocation in the bus.

For airline and car booking partners, you have to create for each one a SU "Provide" for the BC SOAP component in order to import the Web Service into the bus, thanks to the Petals Studio's import service (SOAP).

For the hotel partner, you have to create a SU to export the Incoming Reservation folder thanks to the BC FileTransfer, and to create a SU to import the Outgoing Confirmation folder thanks to the same component.

Once you created all the SUs thanks to Petals Studio, you have to install them on a running Petals, where BPEL, SOAP and FileTransfer Components are installed and started.

You have also to install a SU for the BPEL component, in order to set the Travel Agency reservation.

Once your BPEL project is validated (thanks to the BPEL validator available [here|https://forge.ebmwebsourcing.com/frs/download.php/43/easybpel.model.bpel.tools.validator-1.0-with-dependencies.zip] or by using embedded validator in Petals Studio), you can transform it as a Service Unit for the [Petals BPEL engine|http://download.forge.objectweb.org/petals/petals-se-bpel-1.0.zip], in order to test it in Petals BUS.

h2. Dynamic Invocation use-case