I am having dynamic looping for an action, users assigned in every level.
I am able to add user dynamically for an action using:
rtm1.addRuntimeDefinedUserToRole(prInstance1, Next_Action, userJames, userContext1);
Change user does not work as it will work only for running actions or tasks, for pending one it will not
rtm.changeTaskProcessor(processInstanceID, activityInstanceID, currentProcessor, newProcessor);
remove user is not working for me? suggest me how to use this code?
IGPProcessRoleInstance processRoleInstance=executionContext.getProcessRoleInstance(); processRoleInstance.removeUser(UMFactory.getUserFactory().getUserByLogonID(UserId));