The difference between the type of identification line in activiti

I use activiti for my application. Therefore, when I assign a task to a specific user, sometimes the type of identification link is “PARTICIPANT”, and sometimes it looks like “CANDIDATE”. In the modeler for the task user, I assign a variable to the assignee as

assignee = ${user} //In my case user = "kermit" or customUser 

If the type of the identity link is "member", it has a process instance identifier. With the process instance ID, I get the job as null.Is there is any way to get the task.

  val processEngine: ProcessEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration.buildProcessEngine() val taskService: TaskService = processEngine.getTaskService val task = taskService.createTaskQuery().processInstanceId(idl.getProcessInstanceId).singleResult() 

Can someone tell me how the type of identity link will be generated at run time as a “candidate” or “member”.

+5
source share
1 answer

“candidate” is added when the user task has “candidate groups” or “candidates”.

"participant" is configured for a user who is the assignee, the owner of the task or the person who completed the task (not necessarily the same as the copyright holder / owner of the Activiti API).

You can also add a user / group with these types of identifiers to the task using the taskService.addUserIdentityLink and taskService.addGroupIdentityLink methods. The types are in the class org.activiti.engine.task.IdentityLinkType.

0
source

All Articles