AnsweredAssumed Answered

Task assignee is a number and not the user Name

Question asked by srojas1 on Dec 2, 2015
Latest reply on Apr 20, 2016 by jbarrez
Hi

I have Activiti synced with LDAP (users and groups).

Using the Engine Java API I query for a Task and get the assignee. My surprise is that the assignee is a number and not the username I logged in with. I would like to know how to get the username also referred in Activiti as "External Id" from that number. The java code I use from a Class implementing JavaDelegate is:

execution.getEngineServices().getTaskService().createTaskQuery().processInstanceId("72581").singleResult().getAssignee();

The result is 3 but I do know that the username (External Id) is logger.

Just to give some more information, if I use the REST API to get the same task, the response comes with a JSON object for the assignee that in this case includes the External Id.

Have somebody had a similar issue or know the solution for this?

Thanks in advance and Regards

Sergio

Outcomes