Petals-SE-Flowable 1.1.0+

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

Changes (2)

View Page History
h1. Using the mode "service"

h2. About deployment

A service unit embeds process definition(s). So when deploying a service unit, its process definition(s) are automatically deployed, and the associated consumer services are registered.

A process definition can be undeployed only when no more process instance is in progress and when nor more historic process instance exist. That's why process definition are not undeployed when undeploying a service unit.

Next, if you redeploy the service unit, the embedded process definition(s) will not be redeployed because the process definition is already deployed for the given version. In this way, we can push some changes outside process definition as service consumer parameters (timeout, ...). If some changes are needed into process definition(s), it is needed to increment the association version.

According to changes into your process definition, it can be required to create new version of your associated service providers:
* if your changes concern all BPMN object except service task, you can undeploy your service unit and next you can deploy new version of your service unit including the new version of your process definition. Process instances started before the deployment continue to work fine because all service consumers can be resolved against your new service unit (service consumers are the same),
* if your changes include changes about service tasks, it will be needed to create new version of your service providers. All process instances in progress require to keep deployed your initial service unit to correctly invoke services. Your new process definition will be deployed with its own service unit. So we will have two service units deployed concurrently, so:
** names of service provider associated to service unit must be different,
** and service unit names must be different to be abler to deploy them on the same Petals ESB containe.

{note}When a Petals ESB node restarts, all service units previously deployed are redeployed. As process definition versions are the same no redeployment of process definitions occurs.{note}


h2. Creating a service-unit for a process definition

{table-plus}

h2. Deploying a service unit

When deploying the service unit on the SE Flowable, the embedded process definition is automatically deployed into the BPMN 2.0 engine, and the associated services are registered.

{note}When a Petals ESB node restarts, all service units previously deployed are redeployed. So if a process definition is already registered in the BPMN 2.0 engine, its registration is skipped without any message.{note}
{tip}To be able to fix a process definition, you must create a new version of the process definition{tip}

h2. Undeploying a service unit

When undeploying a service unit from the SE Flowable, the embedded process definition is deregistered from the BPMN 2.0 engine, and the associated services are unregistered.
{color:red}Que faire si il y a encore de process instances en cours ?{color}

h1. Invoking Petals service providers from Flowable process