Petals-SE-Activity 1.0.0-SNAPSHOT

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (8)

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
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}
{code}
<wsdl:binding name="Order" xmlns:activity="http://petals.ow2.org/se/activity/1.0" >
<wsdl:operation name="validOrder" type="...">
<activity:operation activityAction="completeTaskOp" />
<activity:input-parameter name="processInstanceId" value="/validOrderRequest/orderId" />
| 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 takes any form.

No XSL parameters is available to generate the service output reply. Your XSL style-sheet will be a "constant" style-sheet.
{color:red}*Mapping des parametres à faire*{color}

h5. Input parameters

{color:red}*TODO. Les types ?; les arborescences*{color}

h5. Output parameters

{color:red}*TODO{color}

h4. Retrieve process instances

<wsdl:operation name="searchOrder" type="...">
<activity:operation activityAction="retrieveProcInst" />
<activity:input-parameter name="processInstanceId" value="/searchOrderRequest/orderId" />
<activity:input-parameter name="isActive" value="/searchOrderRequest/isInProgress" />
<activity:input-parameter name="responsibleUser" value="/searchOrderRequest/responsibleUser" />
<activity:input-parameter name="responsibleGroup" value="/searchOrderRequest/responsibleGroup" />
<activity:output xsl="searchOrderOutput.xsl" />
<wsdl:input/>
<wsdl:output/>
{code}

This operation requires the following input parameters:
|| Input parameter name || Type || Description || Required ||
| processInstanceId | String | Identifier of the process instance containing the tasks returned. | No |
| isActive | Boolean | Only active task are returned. | No |
| responsibleUser | String | Only select tasks for which the given user is a candidate are returned. | No |
| responsibleGroup | String | Only select tasks for which users in the given group are candidates are returned. | No |
It does not use variables.

It is possible to map several operations of the WSDL to search process instance, for example with different search criteria.

h5. Input parameters

{color:red}*TODO. Les types ?; les arborescences*{color}

h5. Output parameters

{color:red}*TODO{color}

h1. Configuring the component