Petals-SE-Activiti 0.5.0-SNAPSHOT

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

Changes (14)

View Page History

This operation accepts variables and requires the following input parameters:
* user identifier, declared using the annotation {{\{http://petals.ow2.org/se/bpmn/annotations/1.00}userId}} containing an XPath expression that is applied on incoming XML payload to get the value of the user identifier to use on the BPMN engine side.

The XSL parameters available to generate the service output reply are:
|| XSL parameter name || Type || Description ||
| {{\{http://petals.ow2.org/se/bpmn/output-params/1.0/special}processInstanceId}} \{http://petals.ow2.org/se/bpmn/output-params/1.0/special}processInstanceId | String | Identifier of the process instance created |
| {{\{http://petals.ow2.org/se/bpmn/output-params/1.0/special}userId}} \{http://petals.ow2.org/se/bpmn/output-params/1.0/special}userId | String | The user identifier used to create the process instance |
| {{\{http://petals.ow2.org/se/bpmn/output-params/1.0/process-instance}variable-name}} \{http://petals.ow2.org/se/bpmn/output-params/1.0/process-instance}variable-name | String | Process instance variables. <variable-name> is the name of a process instance variable. |

On this operation, no error thrown by the BPMN engine can be mapped to business fault.
The XSL parameters available to generate the service output reply are:
|| XSL parameter name || Type || Description ||
| {{\{http://petals.ow2.org/se/bpmn/output-params/1.0/special}processInstanceId}} \{http://petals.ow2.org/se/bpmn/output-params/1.0/special}processInstanceId | String | Identifier of the process instance created |
| {{\{http://petals.ow2.org/se/bpmn/output-params/1.0/special}userId}} \{http://petals.ow2.org/se/bpmn/output-params/1.0/special}userId | String | The user identifier used to create the process instance |
| {{\{http://petals.ow2.org/se/bpmn/output-params/1.0/process-instance}variable-name}} \{http://petals.ow2.org/se/bpmn/output-params/1.0/process-instance}variable-name | String | Process instance variables. <variable-name> is the name of a process instance variable. |
| {{\{http://petals.ow2.org/se/bpmn/output-params/1.0/task}variable-name}} \{http://petals.ow2.org/se/bpmn/output-params/1.0/task}variable-name | String | Task local variables. <variable-name> is the name of a task local variable. |

The following errors thrown by the BPMN engine can be mapped to business fault:
|| Error || Description || XSL parameters ||
| {{TaskCompletedException}} | The associated user task is already completed | * process instance identifier: {{\{http://petals.ow2.org/se/bpmn/faults/1.0}processInstanceId}} \{http://petals.ow2.org/se/bpmn/faults/1.0}processInstanceId
* task identifier: {{\{http://petals.ow2.org/se/bpmn/faults/1.0}taskId}} \{http://petals.ow2.org/se/bpmn/faults/1.0}taskId |
| {{ProcessInstanceNotFoundException}} | No active process instance found for the given process instance identifier | process instance identifier: {{\{http://petals.ow2.org/se/bpmn/faults/1.0}processInstanceId}} \{http://petals.ow2.org/se/bpmn/faults/1.0}processInstanceId |
| {{UnexpectedUserException}} | The task to complete is assigned to another user identifier | * process instance identifier: {{\{http://petals.ow2.org/se/bpmn/faults/1.0}processInstanceId}}
* task identifier: {{\{http://petals.ow2.org/se/bpmn/faults/1.0}taskId}} \{http://petals.ow2.org/se/bpmn/faults/1.0}taskId
* user identifier: {{\{http://petals.ow2.org/se/bpmn/faults/1.0}userId}} \{http://petals.ow2.org/se/bpmn/faults/1.0}userId |

A such operation is defined for each task of the process definition to complete. {color:red}*C'est le cas d'un service par tache à terminer. Essayer de mieux expliquer.*{color}.
|| Operation name || Description || Matching Activity Java API ||
| complete | Called when the task is successfully executed, and the required task parameters are given by the end-user. | {{TaskService.complete(String, Map<String,Object>)}} |
| getTasks | Query tasks according to the given criteria | {{TaskService.createTaskQuery() }} |

{color:red}*A completer avec Bertrand*{color}