Actually I see that you are already doing a query that doesn't involve process instance as you have 'taskService.createTaskQuery().taskTenantId("orgId").taskCandidateGroup("SecondGroup")' But I am guessing that if you add log statement to that second application to see where it fails it probably fails before that?
I imagine that you have the xml file on the classpath in both applications and the second application is failing during the engine's attempt to auto-deploy it? If so are applications 1 and 2 on different servers and are they using the same encoding? I take it there's a reason why you need to use two different applications instead of just one?
Is It possible for you to give sometime, So that we can sit and discuss the issue by screen sharing ?
I know the solution is quit simple but I am not getting it.
Or can you share some working example ?
My requirement :
There are 3 groups (Let say A , B , C )and Some users (Let say "a" belong to "A" , "b" belong to "B" and "c" belong to "C") are assigned to each group.
1) Once first user "a" logged in and start a process which is now forwarded to Group "B". And after that logged out. ( may be he started more than one task).
2) Now second user "b" logged in and Able to see all the task started by "a" because he belong to Group "B".
So, now first he claim the task so that it comes in his personal task list. and after that he complete it. So once he complete the task , now this task will be forwarded to Group "C". and he can now logged out.
3) Now any of user belong to Group "C" logged in and able to see task list completed by user "b".
And similar to above step. He can first claim the task and then he complete it and in this way first process ends.
So , you can think that once a new process is started by user "a" , a new process definition will be deployed having a new processInstanceId. and when user "b" logged in he can get deployed process of previous step having same processInstanceId. and he can resume the task and so on for user "c".
If you can share a sample code. It will be great.
Waiting for your response ...
So presumably if a user from group a starts the task then all of the subsequent actions have to be performed by somebody from group B or C (i.e. not A). That would appear to be much like the discussion at the bottom of . In that case you could follow the suggestion there to add a service task to dynamically set a variable and have the candidateGroup for the task set based on that variable.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.