Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Loop block keeps adding users to a role

Hi,

This is my GP process

Process

Block Main

Action Approve

Block Expert

Action Assign Users to Process ... (Role "Expert")

Action Opinion (Role "Expert")

Block Main is a loop block so that block "Expert" is called until action "Approve" decides otherwise.

In block "Expert" I assign a user (selected in action "Approve") to the role "Expert" (the collable object is "Assign User to process role) and

then that user has to deal with action "Opinion".

This is working fine but has one problem.

The users I assign to role "Expert" are added up. This means that every time an expert is assigned

and block "Expert" is executed not only the new user but also all users ever assigned before to role "Expert" have access to action "Opinion".

Action Opinion is based on a WebDynpro collable object. So at the end of action "Opinion" I have added

_executionContext.getProcessRoleInstance().removeUser(

WDClientUser.forceLoggedInClientUser().getSAPUser());

But this didn't help.

Please advise.

Thank you very much, Olaf

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question