{section}
{column}
h1. Introduction
When you want to create a BPEL process to run in Petals, you must first create a BPEL Sketch project.
A [sketch project|Working with Sketch projects] aims at easing and speeding up the creation of a BPEL process for Petals, by making some Petals constraints invisible.
\\
This page illustrates the three ways to create a BPEL Sketch project.
{info}
*Level:* Easy
*Estimated time:* 5 minutes the first time, 1 minute then
*Expected skills:* \-
{info}
{column}
{column:width=350px}
{panel:title=Table of contents}{toc}{panel}
{column}
{section}
h1. Creating a new empty BPEL process
In the menu, select *File > New > Sketch Project*.
If you do not see it, go into *File > New > Other...* Then, select *Sketch Project* under the *Petals* category.
!petals-studio-create-bpel-sketch-1.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-sketch-2.jpg!
In the scope of this page, we will use the version 1.0 of the component.
Click *Next*.
\\
On the next page, select *Create a new BPEL process*.
!petals-studio-create-bpel-sketch-3.jpg!
Click *Next*.
\\
The next page expects the project name.
This name will also act as the process name.
!petals-studio-create-bpel-sketch-4.jpg!
Click *Finish*.
\\
The sketch project is created.
It contains a basic BPEL process...
!petals-studio-create-bpel-sketch-6.jpg!
\\
... with a WSDL definition and an Artifacts WSDL.
!petals-studio-create-bpel-sketch-5.jpg!
h1. Starting from an existing BPEL
In the menu, select *File > New > Sketch Project*.
If you do not see it, go into *File > New > Other...* Then, select *Sketch Project* under the *Petals* category.
!petals-studio-create-bpel-sketch-1.jpg!
\\
A wizard opens, showing three drop-down lists.
In the *Use Case* list, select *Use a Petals technical service*.
In the *Petals Component* list, select *BPEL // petals-se-bpel*.
In the *Component Version* list, select the version of the Petals-SE-BPEL that you are using in Petals.
!petals-studio-create-bpel-sketch-2.jpg!
In the scope of this page, we will use the version 1.0 of the component.
Click *Next*.
\\
On the next page, select *Import an existing BPEL process*.
Indicate the BPEL URL, or use the *Browse...* button to select the BPEL file on the local disk.
!petals-studio-create-bpel-sketch-7.jpg!
Click *Next*.
\\
The next page expects the project name.
This name will also act as the process name.
By default, it is filled-in with the name of the imported process.
!petals-studio-create-bpel-sketch-8.jpg!
Click *Finish*.
\\
The sketch project is created.
It contains the imported BPEL process...
!petals-studio-create-bpel-sketch-10.jpg!
\\
... with its resources.
!petals-studio-create-bpel-sketch-9.jpg!
h1. Generating a BPEL from a WSDL definition
In the menu, select *File > New > Sketch Project*.
If you do not see it, go into *File > New > Other...* Then, select *Sketch Project* under the *Petals* category.
!petals-studio-create-bpel-sketch-1.jpg!
\\
A wizard opens, showing three drop-down lists.
In the *Use Case* list, select *Use a Petals technical service*.
In the *Petals Component* list, select *BPEL // petals-se-bpel*.
In the *Component Version* list, select the version of the Petals-SE-BPEL that you are using in Petals.
!petals-studio-create-bpel-sketch-2.jpg!
In the scope of this page, we will use the version 1.0 of the component.
Click *Next*.
\\
On the next page, select *Generate a BPEL skeleton from a BPEL file*.
Indicate the WSDL URL, or use the *Browse...* button to select the WSDL file on the local disk.
Once this is done, you can select the _Port Type_ that will be used as describing the BPEL service.
!petals-studio-create-bpel-sketch-11.jpg!
Click *Next*.
\\
The next page expects the project name.
This name will also act as the process name.
By default, it is generated from the WSDL name.
!petals-studio-create-bpel-sketch-12.jpg!
Click *Finish*.
\\
The sketch project is created.
It contains a BPEL process that was generated from the WSDL definition...
!petals-studio-create-bpel-sketch-13.jpg!
{info}
The process on this last picture may seem unusual.
In fact, the WSDL definition contains a lot of operations.
To make it readable, the BPEL designer switched to the horizontal layout.
{info}
\\
... with the imported WSDL definition and an Artifacts WSDL.
!petals-studio-create-bpel-sketch-14.jpg!
{column}
h1. Introduction
When you want to create a BPEL process to run in Petals, you must first create a BPEL Sketch project.
A [sketch project|Working with Sketch projects] aims at easing and speeding up the creation of a BPEL process for Petals, by making some Petals constraints invisible.
\\
This page illustrates the three ways to create a BPEL Sketch project.
{info}
*Level:* Easy
*Estimated time:* 5 minutes the first time, 1 minute then
*Expected skills:* \-
{info}
{column}
{column:width=350px}
{panel:title=Table of contents}{toc}{panel}
{column}
{section}
h1. Creating a new empty BPEL process
In the menu, select *File > New > Sketch Project*.
If you do not see it, go into *File > New > Other...* Then, select *Sketch Project* under the *Petals* category.
!petals-studio-create-bpel-sketch-1.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-sketch-2.jpg!
In the scope of this page, we will use the version 1.0 of the component.
Click *Next*.
\\
On the next page, select *Create a new BPEL process*.
!petals-studio-create-bpel-sketch-3.jpg!
Click *Next*.
\\
The next page expects the project name.
This name will also act as the process name.
!petals-studio-create-bpel-sketch-4.jpg!
Click *Finish*.
\\
The sketch project is created.
It contains a basic BPEL process...
!petals-studio-create-bpel-sketch-6.jpg!
\\
... with a WSDL definition and an Artifacts WSDL.
!petals-studio-create-bpel-sketch-5.jpg!
h1. Starting from an existing BPEL
In the menu, select *File > New > Sketch Project*.
If you do not see it, go into *File > New > Other...* Then, select *Sketch Project* under the *Petals* category.
!petals-studio-create-bpel-sketch-1.jpg!
\\
A wizard opens, showing three drop-down lists.
In the *Use Case* list, select *Use a Petals technical service*.
In the *Petals Component* list, select *BPEL // petals-se-bpel*.
In the *Component Version* list, select the version of the Petals-SE-BPEL that you are using in Petals.
!petals-studio-create-bpel-sketch-2.jpg!
In the scope of this page, we will use the version 1.0 of the component.
Click *Next*.
\\
On the next page, select *Import an existing BPEL process*.
Indicate the BPEL URL, or use the *Browse...* button to select the BPEL file on the local disk.
!petals-studio-create-bpel-sketch-7.jpg!
Click *Next*.
\\
The next page expects the project name.
This name will also act as the process name.
By default, it is filled-in with the name of the imported process.
!petals-studio-create-bpel-sketch-8.jpg!
Click *Finish*.
\\
The sketch project is created.
It contains the imported BPEL process...
!petals-studio-create-bpel-sketch-10.jpg!
\\
... with its resources.
!petals-studio-create-bpel-sketch-9.jpg!
h1. Generating a BPEL from a WSDL definition
In the menu, select *File > New > Sketch Project*.
If you do not see it, go into *File > New > Other...* Then, select *Sketch Project* under the *Petals* category.
!petals-studio-create-bpel-sketch-1.jpg!
\\
A wizard opens, showing three drop-down lists.
In the *Use Case* list, select *Use a Petals technical service*.
In the *Petals Component* list, select *BPEL // petals-se-bpel*.
In the *Component Version* list, select the version of the Petals-SE-BPEL that you are using in Petals.
!petals-studio-create-bpel-sketch-2.jpg!
In the scope of this page, we will use the version 1.0 of the component.
Click *Next*.
\\
On the next page, select *Generate a BPEL skeleton from a BPEL file*.
Indicate the WSDL URL, or use the *Browse...* button to select the WSDL file on the local disk.
Once this is done, you can select the _Port Type_ that will be used as describing the BPEL service.
!petals-studio-create-bpel-sketch-11.jpg!
Click *Next*.
\\
The next page expects the project name.
This name will also act as the process name.
By default, it is generated from the WSDL name.
!petals-studio-create-bpel-sketch-12.jpg!
Click *Finish*.
\\
The sketch project is created.
It contains a BPEL process that was generated from the WSDL definition...
!petals-studio-create-bpel-sketch-13.jpg!
{info}
The process on this last picture may seem unusual.
In fact, the WSDL definition contains a lot of operations.
To make it readable, the BPEL designer switched to the horizontal layout.
{info}
\\
... with the imported WSDL definition and an Artifacts WSDL.
!petals-studio-create-bpel-sketch-14.jpg!