|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (13)
View Page History* the mandatory parameters of the operation *are annotated* to retrieve the right values.
{tip}For a unit test purpose, an extension of JUnit is available to validate your WSDL not only in a pur WSDL point of view, but also in a SE Activity point of view. See chapter [Unit testing|#Unit_Testing].{tip}
h3. Identifying operations
Output parameters of the Activity operation can not be set into the output reply of the service operation using a simple XPath expression as for input parameters. An XSL style-sheet is required to generated the full output reply. It is identified using the annotation adding the element {{\{http://petals.ow2.org/se/activity/1.0}output}}. The XSL style-sheet name is set into the attribute {{*xsl*}} and loaded from the classloader. The XSL style-sheets are mainly located in the service-units, they can also be packaged as a shared library.
According to the Activity operation executed, its output parameters are transmitted to the XSL style-sheet through XSL parameters. You will use these XSL parameters to generate your service reply from your service request payload. See operation details to know the available XSL parameters.
{tip}For a unit test purpose, an extension of JUnit is available to test your XSL. See chapter [Unit testing|#Unit_Testing].{tip}
{color:red}*What about fault ?*{color}
| processInstanceId | String | Identifier of the process instance created |
It is possible to map several operations of the WSDL to the creation of process instances, but its this has perhaps no sens.
h4. Complete task of a process instance
<wsdl:operation name="validOrder" type="...">
<activity:operation activityAction="completeTaskOp" />
<activity:operation activityAction="completeTaskOp" />
<activity:input-parameter name="processInstanceId" value="/validOrderRequest/orderId" />
<activity:input-parameter name="taskId" value="/validOrderRequest/validationStepId" />
<activity:variable name="validationApproved" value="/validOrderRequest/isValidated" />
<activity:input-parameter name="taskId" value="/validOrderRequest/validationStepId" />
<activity:variable name="validationApproved" value="/validOrderRequest/isValidated" />
<activity:input-parameter <activity:variable name="creditCardNumber" value="/validOrderRequest/creditCardNumber" />
<activity:output xsl="validOrderOutput.xsl" />
<wsdl:input/>
<wsdl:output/>
<wsdl:output/>
{code}
It is possible to map several operations of the WSDL to complete tasks, for example when a process can have several task in progress concurrently.
This operation accepts variables and requires the following input parameters:
|| Input parameter name || Type || Description || Required ||
| processInstanceId | String | Identifier of the process instance created | Yes |
| taskId | String | Identifier of the task | Yes |
Note: The completion status of the task is a variable and so it can take any form.
|| Input parameter name || Type || Description || Required ||
| processInstanceId | String | Identifier of the process instance created | Yes |
| taskId | String | Identifier of the task | Yes |
Note: The completion status of the task is a variable and so it can take any form.
Some parameters are expected for this operation:
* identifier of the process instance,
* identifier of the task to complete,
* completion status.
* identifier of the process instance,
* identifier of the task to complete,
* completion status.
No XSL parameters is available to generate the service output reply. Your XSL style-sheet will be a "constant" style-sheet.
It is possible to map several operations of the WSDL to complete tasks, for example when a process can have several task in progress concurrently.
{color:red}*Mapping des parametres à faire*{color}
No dedicated alert is available.
{anchor:Unit_Testing}
h1. Unit testing
An extension of JUnit is available:
* to validate your WSDL,
* to test unitary your XSLs.
h2. Validating your WSDL
{color:red}*TODO*{color}
h2. Unit-testing your XSD
{color:red}*TODO*{color}
h1. Unit testing
An extension of JUnit is available:
* to validate your WSDL,
* to test unitary your XSLs.
h2. Validating your WSDL
{color:red}*TODO*{color}
h2. Unit-testing your XSD
{color:red}*TODO*{color}
h1. Annex: Sample WSDL