|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (20)
View Page History{section}
{column}
{column}
As explained in the previous pages, when you work with BPEL in the studio, you must first create a [BPEL Sketch project|Creating a BPEL Sketch project].
A BPEL croquis is an alternative to BPEL projects.
They should be used for the cases where you have an external BPEL to run in Petals, or when all or most of the services to orchestrate are not yet imported in Petals.
Once the croquis is completed, it can be exported as concrete Service-Unit and Service Assembly projects. The resulting projects are ready for packaging and deployment.
They should be used for the cases where you have an external BPEL to run in Petals, or when all or most of the services to orchestrate are not yet imported in Petals.
Once the croquis is completed, it can be exported as concrete Service-Unit and Service Assembly projects. The resulting projects are ready for packaging and deployment.
Such a project abstracts the BPEL process from Petals constraints.
This page explains how to obtain a deployable archive containing the BPEL process to run in Petals.
This page explains how to obtain a deployable archive containing the BPEL process to run in Petals.
\\
Here is a table to compare BPEL projects and BPEL croquis.
Here is a table to compare BPEL projects and BPEL croquis.
{info}
*Level:* Easy
*Estimated time:* 3 minutes
*Expected skills:* -
{info}
{column}
{column:width=350px}
{panel:title=Table of contents}{toc}{panel}
{column}
{section}
*Level:* Easy
*Estimated time:* 3 minutes
*Expected skills:* -
{info}
{column}
{column:width=350px}
{panel:title=Table of contents}{toc}{panel}
{column}
{section}
|| Property || BPEL (Service-Unit) Project || BPEL Croquis ||
| Result of the export | A zipped archive to deploy in Petals. | A set of Petals projects (for the BPEL and SOAP components). |
| Constraint | The orchestrated services must be Petals services (e.g. provided through service-units). | \- |
| Scope | Targets the Petals BPEL component. | Targets both the BPEL and SOAP components. |
| Specific wizard / validation | No. | No (they have similar wizards and validation). |
| Interest | Gather resources for a BPEL service-unit. | Ease and speed up the creation of service-units to run a BPEL process in Petals. |
| Typical use-case | Orchestrate Petals services. | Orchestrate external Web Services. |
| Result of the export | A zipped archive to deploy in Petals. | A set of Petals projects (for the BPEL and SOAP components). |
| Constraint | The orchestrated services must be Petals services (e.g. provided through service-units). | \- |
| Scope | Targets the Petals BPEL component. | Targets both the BPEL and SOAP components. |
| Specific wizard / validation | No. | No (they have similar wizards and validation). |
| Interest | Gather resources for a BPEL service-unit. | Ease and speed up the creation of service-units to run a BPEL process in Petals. |
| Typical use-case | Orchestrate Petals services. | Orchestrate external Web Services. |
\\
From a concrete point of view, the export of a BPEL croquis will go through the BPEL process, find all the partners' WSDL definitions and propose the SU project for the Petals BPEL component and the SU projects to import all the orchestrated services in Petals (these projects target the Petals SOAP component).
From a concrete point of view, the export of a BPEL croquis will go through the BPEL process, find all the partners' WSDL definitions and propose the SU project for the Petals BPEL component and the SU projects to import all the orchestrated services in Petals (these projects target the Petals SOAP component).
h1. Creating concrete Petals projects
{column}
{column:width=350px}
{panel:title=Table of contents}{toc}{panel}
{column}
{section}
{column:width=350px}
{panel:title=Table of contents}{toc}{panel}
{column}
{section}
In fact, the process is quite simple.
Once your BPEL Sketch project is done, right-click it and select *Petals > Create concrete project(s)*.
Once your BPEL Sketch project is done, right-click it and select *Petals > Create concrete project(s)*.
h1. Creating a BPEL croquis
In the menu, select *File > New > Croquis*.
If you do not see it, go into *File > New > Other...* Then, select *Croquis* under the *Petals* category.
!petals-studio-create-bpel-croquis-2.jpg!
\\
A wizard opens, showing three drop-down lists.
In the *Use Case* combo, select *Use a Petals technical service*.
In the *Petals Component* combo, select *BPEL // petals-se-bpel*.
In the *Component Version* combo, select the version of the Petals-SE-BPEL that you are using in Petals.
!petals-studio-create-bpel-croquis-3.jpg!
\\
In the scope of this page, we will use the version 1.0 of the component.
Click Next. A new page appears.
!petals-studio-create-bpel-croquis-4.jpg!
\\
This page, and the next ones, are similar to those that are shown in [the creation of a BPEL project|Creating a BPEL project].
Please, refer to [this page|Creating a BPEL project] for the remaining instructions.
\\
On wizard completion, the project is created under the *Croquis* (or *Sketches*) category.
!petals-studio-create-bpel-croquis-1.jpg!
h1. Editing a BPEL croquis
A BPEL croquis can be edited like any other BPEL process.
One of the differences is that you are not required to orchestrate Petals services. You can work with any WSDL.
Another difference is a specialized export.
h1. Exporting a BPEL croquis as concrete projects
The export process is quite simple.
Once your BPEL croquis is finished, right-click it and select *Petals > Create concrete project(s)*.
If you do not see it, go into *File > New > Other...* Then, select *Croquis* under the *Petals* category.
!petals-studio-create-bpel-croquis-2.jpg!
\\
A wizard opens, showing three drop-down lists.
In the *Use Case* combo, select *Use a Petals technical service*.
In the *Petals Component* combo, select *BPEL // petals-se-bpel*.
In the *Component Version* combo, select the version of the Petals-SE-BPEL that you are using in Petals.
!petals-studio-create-bpel-croquis-3.jpg!
\\
In the scope of this page, we will use the version 1.0 of the component.
Click Next. A new page appears.
!petals-studio-create-bpel-croquis-4.jpg!
\\
This page, and the next ones, are similar to those that are shown in [the creation of a BPEL project|Creating a BPEL project].
Please, refer to [this page|Creating a BPEL project] for the remaining instructions.
\\
On wizard completion, the project is created under the *Croquis* (or *Sketches*) category.
!petals-studio-create-bpel-croquis-1.jpg!
h1. Editing a BPEL croquis
A BPEL croquis can be edited like any other BPEL process.
One of the differences is that you are not required to orchestrate Petals services. You can work with any WSDL.
Another difference is a specialized export.
h1. Exporting a BPEL croquis as concrete projects
The export process is quite simple.
Once your BPEL croquis is finished, right-click it and select *Petals > Create concrete project(s)*.
!petals-studio-tuto-export-bpel-1.jpg!
\\
\\
The BPEL process is introspected. Eventually, a A dialog then shows up and lists projects to create.
This list is built in the following way:
* Each partner link is considered to be an external Web service (not in Petals).
* Each partner link is considered to be an external Web service (not in Petals).
* There is also a Service-Unit project for the SOAP component, that expose the BPEL process as a Web service outside Petals ESB.
* Eventually, there is a Service Assembly project that gathers all the Service-Unit projects together.
\\
For each project, you can decide to create it or not.
For each project, you can decide to create it or not.
The value of this property is defined in the "*\!*" column.
It is also possible to overwrite an existing project, by setting enabling the "*Overwrite*" *Overwrite* property.
Click *Finish* to run the generation process.
\\
For each Service-Unit project, it is possible to edit additional properties.
You only have to select one of these projects and update the associated fields.
For each Service-Unit project, it is possible to edit additional properties.
You only have to select one of these projects and update the associated fields.
!petals-studio-tuto-export-bpel-3.jpg!
Click *Finish*.
Click *Finish*.
h1. Packaging the result
\\
This phase created Petals artifacts from your BPEL project. Each created artifact is involved in the fact that the BPEL process can now run in Petals ESB.
This phase created Petals artifacts from your BPEL project. Each created artifact is involved in the fact that the BPEL process can now run in Petals ESB.
The export and the sketching approach hid the constraints that apply to a BPEL process to run in Petals ESB.
These projects can be exported for deployment as any [other SU|Working with Service-Unit projects#Export for Petals] and [SA projects|Working with Service Assembly projects#Export for Petals].
Obviously, it is also possible to edit or change things in the exported projects prior to package them.
Obviously, it is also possible to edit or change things in the exported projects prior to package them.