How to get email details from single user of actor filter?

1
0
-1

Dear Sir/Mdm,

I am trying to get email details from single user of actor filter. Tried the code below but doesnt work

A process variable "uid" with datatype "long" is passed to actor filter. Below is my code.

import org.bonitasoft.engine.identity.User; import org.bonitasoft.engine.identity.ContactData; import org.bonitasoft.engine.bpm.actor.ActorCriterion;

// Get the users attached to the actor member of the human task ContactData ContactData = apiAccessor.getIdentityAPI().getEmail(uid.getId (), false);

return ContactData

Regards, Terry

1 answer

1
0
-1
This one is the BEST answer!

For those who need this info. I found out the code that works from forum. Code as below

import org.bonitasoft.engine.identity.User; import org.bonitasoft.engine.identity.ContactData; import org.bonitasoft.engine.bpm.actor.ActorCriterion;

// Get the users attached to the actor member of the human task BonitaUsers.getUserProfessionalContactInfo(apiAccessor,taskAssigneeId).email

Terry

Notifications