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”.
source share