Petals-SE-Flowable 1.4.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
To apply major changes, as the service provider interfaces change, you will need to deploy concurrently the new version. So you need only to deploy the new version.

When deploying a process definition, Flowable requires a 'process definition resource home' from which some resources can be resolved relatively to the BPMN file of the process definition, for exeample WSDLs of the service providers invoked through service tasks. This 'process definition resource home' is set as an URI containing the service unit name and the BPMN file name.
So when deploying a new minor version of a service unit, the new service unit *MUST* have the same service name than the previous one to be able to continue to execute process instances created with the previous version.
For a new major version, you can set a new service unit name because no process instance is already in progress.

Usually, the service unit name is set by the Maven Petals plugin building the service assembly. By default, the service unit name is defined as '<artifact-id>\-<version>'. With this template, the service unit name will change for any version. So you *MUST* configure the template to have a different value for each major version. For example, you can use the following template '<artifact-id>\-<version.major>.<version.minor>' for a version naming convention defined as '<major>.<minor>.<increment>'.

h2. Creating a service-unit for a process definition