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

View Page History
The mapping between operations of the WSDL and operations supported by the SE Activity is declared using a dedicated binding. The binding "Activity" is done adding the element {{\{http://petals.ow2.org/se/activity/1.0}operation}} to the element operation of the binding. Its attribute *{{activityAction}}* defines the operation that will be executed.

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.

For input parameters, this This annotation is done adding the element {{\{http://petals.ow2.org/se/activity/1.0}input-parameter}}. This annotation takes 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.

For output parameters, the annotation is done adding the element {{\{http://petals.ow2.org/se/activity/1.0}output-parameter}}.
h3. Identifying output parameters of 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. See operation details to know the available XSL parameters.

{color:red}*What about fault ?*{color}

<activity:input-parameter name="customerName" value="/newOrderRequest/customerName" />
<activity:input-parameter name="address" value="/newOrderRequest/address" />
<activity:output-parameter name="activity:processInstId" stakeholder="/newOrderResponse/orderId" <activity:output xsl="newOrderOutput.xsl" />
<wsdl:input/>
<wsdl:output/>
{code}

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

<activity:input-parameter name="address" value="/newOrderRequest/address" />
<activity:output-parameter name="activity:processInstId" stakeholder="/newOrderResponse/orderId" />
<activity:output xsl="newOrderOutput.xsl" />
<wsdl:input />
<wsdl:output />