|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (5)
View Page Historyh4. Create an instance of a process definition
Because operation in WSDL 1.1 does not allow attribute extensibility, an operation is annotated by adding an {{operationAttr}} element as a child of the operation element. The {{operation}} attribute of {{operationAttr}} specifies the annotation. The value {{createInstanceProcOp}} {{createProcInstOp}} identifies the operation creating a new instance of the process definition. An example of such an annotation is shown below.
{code}
<wsdl:portType name="Order">
<wsdl:operation name="newOrder">
<psa:operationAttr xmlns:psa="http://petals.ow2.org/se/activity/1.0"
<wsdl:portType name="Order">
<wsdl:operation name="newOrder">
<psa:operationAttr xmlns:psa="http://petals.ow2.org/se/activity/1.0"
operation="createInstanceProcOp" operation="createProcInstOp" />
<wsdl:input message="NewOrderRequestMessage" />
<wsdl:output message="NewOrderResponseMessage" />
<wsdl:output message="NewOrderResponseMessage" />
{code}
If several operation are annotated by {{createInstanceProcOp}}, {{createProcInstOp}}, an error is thrown, and the deployment of the service unit is interrupted.
All parameters of the operation are used as parameter to create the instance of the process definition. {color:red}Peut être ajouter un mapping pour indiquer nom de la variable coté process et type ? Comment gérer les arborescences ?{color}
* identifier of the task to complete,
* completion status.
* completion status.
These parameters are also annotated into the WSDL, more precisely in the XSD part. {color:red}Est ce mieux dans le XSD ou dans la definition de l'operation ? Ne serait-il pas mieux d'utiliser l'annotation au niveau de l'operation et de donner les paramètres par une expression XPath ? Même question pour les valeurs OK, KO de completaion de la tache ? {colore}
h4. Retrieve process instances
Because operation in WSDL 1.1 does not allow attribute extensibility, an operation is annotated by adding an {{operationAttr}} element as a child of the operation element. The {{operation}} attribute of {{operationAttr}} specifies the annotation. The value {{retrieveProcInst}} identifies the operation creating a new instance of the process definition. An example of such an annotation is shown below.
{code}
<wsdl:portType name="Order">
<wsdl:operation name="searchOrder">
<psa:operationAttr xmlns:psa="http://petals.ow2.org/se/activity/1.0"
operation="createProcInstOp" />
<wsdl:input message="SearchOrderRequestMessage" />
<wsdl:output message="SearchOrderResponseMessage" />
</wsdl:operation>
</wsdl:portType>
{code}
If several operation are annotated by {{retrieveProcInst}}, an error is thrown, and the deployment of the service unit is interrupted.
Some search criteria parameters are expected for this operation. These parameters are also annotated into the WSDL, more precisely in the XSD part. {color:red}Est ce mieux dans le XSD ou dans la definition de l'operation ? Ne serait-il pas mieux d'utiliser l'annotation au niveau de l'operation et de donner les paramètres par une expression XPath ?{color}