get the lane actor in groovy

1
0
-1

Hi,

I'm using bonita 6.0.4.

I'd like to send an email to the lane actor in my project but I don't find the way...

I've managed ton send the email to the initiator doing :

return BonitaUsers.getUserProfessionalContactInfo(apiAccessor,BonitaUsers.getProcessInstanceInitiator(apiAccessor,processInstanceId).getId()).getEmail();

But I can't get the others actors ...

Does someone has a clue ?

Thanks for any help.

2 answers

1
+1
-1
This one is the BEST answer!

Hi, for those who are interested, I found the answer there : http://community.bonitasoft.com/answers/how-send-emails-users-specific-r... Regards

1
0
-1

Hi

The actors configured on the lane is tied to the processDefinition, not the processInstance, which stores the user after execution of the task.

I believe you would need to use [processAPI.getActors](http://documentation.bonitasoft.com/javadoc/api/6.2/org/bonitasoft/engin...(long, int, int, org.bonitasoft.engine.bpm.actor.ActorCriterion)) and [getActorMembers](http://documentation.bonitasoft.com/javadoc/api/6.2/org/bonitasoft/engin...(long, int, int)) or something similar.

Then you will get the contact information with the method you have refered previously ...

Comments

Submitted by paul33 on Wed, 04/02/2014 - 16:45

Thanks for your answer !

I'm pretty new to bonita ... So I haven't managed to make it work so far. I've tried it in many ways but without success. Do you have an example of the use of these methods ?

Notifications