Petals-SE-Flowable 1.0.0+

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

Changes (20)

View Page History
* {{task-identifier}}: the current task identifier that you can retrieve in the process definition.

h1. Identity service integration
h1. IDM engine integration

The Flowable engine requires an entity service IDM engine in charge of managing users and groups. It is required by the user tasks that are assigned to users or groups.

Once you have selected your entity service implementation, just configure it (the implementation) at component level through the parameters {{engine-identity-service-class-name}} and {{engine-identity-service-config-file}}. By default, the Petals SE Flowable uses a based-file entity service.
Once you have selected your IDM engine implementation, just configure it (the configurator implementation) at component level through the parameters {{idm-engine-configurator-class-name}} and {{idm-engine-configurator-config-file}}. By default, the Petals SE Flowable uses a file-based IDM engine.

Available entity services are:
Available IDM engines are:
* file-based entity service IDM engine where users and groups are stored into files,
* Petals service based entity service IDM engine invoking Petals services to retrieve users and groups,
* you can also write your own entity service, IDM engine,
* in next versions, new entity services IDM engines will be added.

h2. File-based entity service
h2. File-based IDM engine

This entity service IDM engine is a demonstration entity service, IDM engine, that's why it is embedded into the Petals SE Flowable. It is based on two files, one containing the users, another containing the group definitions.

h3. Configuration

Parameters of the configuration file of this entity service IDM engine are:
|| Parameter name || Description || Mandatory ||
| {{users-file}} | File name of the file containing the user declarations. If it is an existing absolute file name, the file is read as a file from the filesystem, otherwise it is read as a resource from the component classloader. | Yes |
| {{groups-file}} | File name of the file containing the user group declarations. If it is an existing absolute file name, the file is read as a file from the filesystem, otherwise it is read as a resource from the component classloader. | Yes |

The entity service file-based IDM engine includes a default configuration used when the entity service IDM engine configurator configuration file is not set at the component level. This default configuration is inspired of Flowable itself defining users and groups as mentioned as examples below in file formats.

h3. File formats
{code}

h2. Petals services based entity service IDM engine

{color:red}TODO{color}

h2. Write your own entity service IDM engine

You can write your own entity service. IDM engine. It will be available as a shared library that you will configure to be used by the Petals SE Flowable.

To implement it, just create a class implementing the interface {{org.ow2.petals.flowable.identity.IdentityService}}. {{org.ow2.petals.flowable.identity.AbstractProcessEngineConfigurator}}. You can find an example [here|https://github.com/petalslink/petals-se-flowable/blob/master/src/main/java/org/ow2/petals/flowable/identity/file/FileIdentityService.java] [here|https://github.com/petalslink/petals-se-flowable/blob/master/src/main/java/org/ow2/petals/flowable/identity/file/FileIdmEngineConfigurator.java] (the file-based entity service). IDM engine).

h1. Configuring the component