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 (13)

View Page History
h3. Identifying input parameters of operations

In the same way, input parameters of operations are mapped through an annotation placed inside the message of the binding operation. Two natures of input parameters exists: the expected input parameters and variables. Each Activity operation can require mandatory or optional input parameter and can accept to set several variables in the same time.

This annotation is done adding the element {{\{http://petals.ow2.org/se/activity/1.0}input-parameter}}. This annotation takes two attributes:
Input parameters are identified by the annotation adding the element {{\{http://petals.ow2.org/se/activity/1.0}inpu-parameter}}. This annotation takes also two attributes:
* the attribute *{{name}}* defines a name of an expected input parameter of the Activity operation,
* the attribute *{{value}}* defines the value to set to the expected input parameter using an XPath expression.
See operation details to know the expected input parameters.

Variables are identified by the annotation adding the element {{\{http://petals.ow2.org/se/activity/1.0}variable}}. This annotation takes also two attributes:
* the attribute *{{name}}* defines the variable name used in the process definition,.
* the attribute *{{value}}* defines the value to set to the variable using an XPath expression.
See operation details to know if variables can be set.
No extra check is done by the SE Activity about the compliance of the variable with the process definition.

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

h3. Identifying output parameters of operations

<wsdl:operation name="newOrder" type="...">
<activity:operation activityAction="createProcInstOp" />
<activity:input-parameter <activity:variable name="customerName" value="/newOrderRequest/customerName" />
<activity:input-parameter <activity:variable name="address" value="/newOrderRequest/address" />
<activity:output xsl="newOrderOutput.xsl" />
<wsdl:input/>
{code}

No input parameter is expected by this operation. Only variables can be set creating a process instance.

The XSL parameters available to generate the service output reply are:
|| XSL parameter name || Type || Description ||
| 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 has perhaps no sens.

h5. Input parameters

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

h5. Output parameters

{color:red}*TODO{color}

h4. Complete task of a process instance

<wsdl:operation name="validOrder" type="...">
<activity:operation activityAction="completeTaskOp" />
<activity:input-parameter name="creditCardNumber" value="/validOrderRequest/creditCardNumber" />
<wsdl:input/>
<wsdl:output/>