Currently i have a process Start -> Subprocess start-> usertask1 -> usertask2 -> end.
So the process is started with a list of id's for each id we create a subprocess with start -> usertask1 ->usertask2 ->end. usertask1 can be assigned to Candidategroup A and B usertask2 can be assinged to Candidategroup B
Now in my use case if a user of candidategroup B gets usertask1 he cannot get usertask2. How to achieve this?
My work till now.
Added a expression on assignment of usertask2
and used
taskService.createTaskQuery().processDefinitionId(delegateTask.getProcessDefinitionId()).orderByTaskCreateTime().asc().list()
But this gives all the task within the process not the subprocess.
I even has history service. I can get the tasks of the process but i want only of the subprocess.
please advice