envoyer un email à l'utilisateur assigné à une tâche

1
0
-1

mon scénario,
J'ai une tâche de type humaine (préparer du café), cette tâche est connectée à une minuterie non-interruptive, ensuite la minuterie est liée à une tâche de type service pour envoyer un mail à la personne assignée à la tâche (préparer du café) pour lui dire que vous êtes assigné à la tâche (préparer du café).

Pour l'envoi d'email, j'utilise l'email connector. Mais je ne sais pas comment recuperer cette utilisateur assigné pour le mettre dans le destinataire de l'email, (Par script groovy).

Merci d'avance pour l'aide

1 answer

1
0
-1

Hi,

The taskAssigneeId provided variable will only be available on the human task "pepare coffee".

So you need to retrieve the email in an operation on this human task and then store it in a process variable that you will pass on to the connector on the service task.

I've created an example to show you the steps, based on your explanation:

  1. Create a process data named "prepareCoffeeAssigneeEmail": create

  2. Retrieve the information about the assignee email in an operation on the task "prepare coffee": operation

  3. Use the process data named prepareCoffeeAssigneeEmail in the email connector: email

I hope it helps,

Comments

Submitted by merikawasselin_... on Mon, 01/06/2020 - 07:46

Hi Marielle, thank you very much for your reply;

The problem of this method is that, operations update the value just after the task execution, what I really want is:

we have a task, the task is not assigned to anyone; when someone get the task and assign to it (here the task is not done) we send an email to that person who is assigned to that task, (for the assignation, i use api rest). I don't know if there is something like "listner" to check if task is assigned or not. ( i just want to send an email to the person before he executes the task)

Notifications