{section}
{column}
{multi-excerpt-include:Petals-SE-Activity|name=features|nopanel=true}
{column}
{column:width=350px}
{panel:title=Table of contents}{toc:outline=true}{panel}
{panel:title=Contributors}{contributors:order=name|mode=list|showAnonymous=true|showCount=true|showLastTime=true}{panel}
{column}
{section}
h1. Creating a service-unit for a process definition
h2. Creating the service contract
The SE Activity provides a service with several operation for a process definition. A WSDL is associated to this service. This WSDL wan be written freely. The user can use its own namespace, its own names, ... It is only constraint by the following rules:
* the operations of the port type *are annotated* to link them to the supported operations (create an instance of the process definition, complete the current task of the process instance, ...)
* the mandatory parameters of the operation *are annotated* to retrieve the right values.
h3. Operations
h4. Create an instance of a process definition
The operation creating an instance of the process definition is identified by the annotation: {{operation="createInstanceProcOp"}}:
{code}
<wsdl:portType name="Order">
<wsdl:operation name="newOrder">
<psa:operation xmlns:psa="http://petals.ow2.org/se/activity/1.0">createInstanceProcOp</psa:operation>
<wsdl:input message="NewOrderRequestMessage" />
<wsdl:output message="NewOrderResponseMessage" />
</wsdl:operation>
</wsdl:portType>
{code}
{column}
{multi-excerpt-include:Petals-SE-Activity|name=features|nopanel=true}
{column}
{column:width=350px}
{panel:title=Table of contents}{toc:outline=true}{panel}
{panel:title=Contributors}{contributors:order=name|mode=list|showAnonymous=true|showCount=true|showLastTime=true}{panel}
{column}
{section}
h1. Creating a service-unit for a process definition
h2. Creating the service contract
The SE Activity provides a service with several operation for a process definition. A WSDL is associated to this service. This WSDL wan be written freely. The user can use its own namespace, its own names, ... It is only constraint by the following rules:
* the operations of the port type *are annotated* to link them to the supported operations (create an instance of the process definition, complete the current task of the process instance, ...)
* the mandatory parameters of the operation *are annotated* to retrieve the right values.
h3. Operations
h4. Create an instance of a process definition
The operation creating an instance of the process definition is identified by the annotation: {{operation="createInstanceProcOp"}}:
{code}
<wsdl:portType name="Order">
<wsdl:operation name="newOrder">
<psa:operation xmlns:psa="http://petals.ow2.org/se/activity/1.0">createInstanceProcOp</psa:operation>
<wsdl:input message="NewOrderRequestMessage" />
<wsdl:output message="NewOrderResponseMessage" />
</wsdl:operation>
</wsdl:portType>
{code}