Skip to Content
0
Dec 02, 2009 at 09:11 PM

GP API - remove user dynamically for a task..

36 Views

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));