New feature (Creme 2.7) : workflow engine
#1
Workflows allows to automatically perform some actions when specific events happen. It's an additional tool to avoid code in many simple cases (future versions should bring even more possibilities).

A new menu entry has been added to go to the configuration:

[Image: creme27_EN_workflow_menu.png]

Here the configuration page of workflows:

[Image: creme27_EN_workflow_config_empty.png]

If we want to create a new workflow, the first step of the form asks us the type of events which triggers the actions:

[Image: creme27_EN_workflow_form_step1.png]
(description for accessibility -- different type of event are: "An entity has been created", "An entity has been modified", "a property has been added", "A relationship has been added")

The second step allows to add some conditions (actions will be performed only of conditions are filled):

[Image: creme27_EN_workflow_form_step2.png]
(description for accessibility -- the conditions are like the filters conditions, on regular fields & on custom fields)

In the third step, we chose the type of the first action (other actions could be added later):

[Image: creme27_EN_workflow_form_step3.png]
(description for accessibility -- the different types of actions are  "Adding a property", "Adding a relationship", "Sending an email", "Sending an email (from a template)")

In the last step we configure the first action. Here the configuration of the action "Sending a email"; there are plenty of possibilities (e.g. choosing the recipient proposes several options):

[Image: creme27_EN_workflow_form_step4.png]

After submission, our workflow has been created:

[Image: creme27_EN_workflow_config_done.png]

Notice that the workflow is currently disabled; it allows to add other actions and then enable the workflow when it's complete (with the button "Enable" on top-left of the workflow's panel).
  Répondre


Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)