Hi Community,
I have a requirement in a workflow where a user (Creator) receives a task to select the Promotion Approvers. I am writing validation where i want to check if the user has not selected himself as an promotion approver?
Anyone has the code snippet for this? Looks like this:-
public ArrayList getRoles() throws WTException {
wt.project.Role[] mandatoryRoles = {wt.project.Role.toRole("PROMOTION APPROVERS")};
for (Role role: mandatoryRoles){
EnumeratedType[] displays = role.getValueSet();
for (int i = 0; i < displays.length; i++) {
EnumeratedType enumeratedType = displays[i];