Petals-SE-Activiti

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

Changes (12)

View Page History

The component SE Activiti provides two operational mode:
* integration mode, that exposes a service-based API of the engine Activiti. Several services are provided by the component to interact directly with the engine Activiti,
* service mode to implement your services using orchestrations and workflows.

h2. Integration mode

{color:red}*TODO*{color}
The mode "Integration" of the SE Activiti permits to interact directly with the engine Activiti through a service-based API. Several services are provided by the component to interact directly with the engine Activiti. This mode is activated at the component level.

*Concurrency*

Several instance of the component can be deployed concurrently on Petals ESB. A sequence of service-based API invocations can be exploded on each component instances

h2. Service mode

The mode "Service" of the SE Activiti permits to implement your services using orchestration and/or process capabilities of Activiti. This mode is available through the deployment of a service unit including the process definition.

*Orchestration*

An orchestration is sequence of automatic service invocations, and can be modeled as a sequence of service tasks in a BPMN2 description. Creating an instance of such a process will start automatically the sequence of service invocations. As Activiti supports BPMN2, it is possible to implement your orchestration as a process containing only service tasks. For example, the following orchestration can be an implementation of a service processing a "New Order":
!orchestration-sample.png!
!orchestration-sample.png|align=center!

*Process*

{color:red}*TODO*{color}
A process or workflow can be "servicized" at different levels:
* when creating a new instance of the process definition,
* when completing a task of the process instance
* when searching process instances or tasks
For example, the previous sample can be reworked replacing two service tasks by human tasks with such a process:
!process-sample.png|align=center!
Then created services are:
* the service "New Order" associated to a process instance creation,
* the service "Order Prepared" associated to the completion of the task "prepareOrder",
* the service "Order Delivered" associated to the completion of the task "deliverOrder".



*Process & Orchestration*

The Activiti Service-Engine allows to run process or service orchestration.

Each configuration of this component embeds an Activiti process definition.
When such a configuration is deployed, a service with several operations is deployed providing following features:
* start a process instance of the process definition,
* complete the current task,
* retrieve process instances according to several criteria.

{tip}Available operations can be different from a version of the component to another version. See the user guide of the right version.{tip}

*Concurrency*