Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

How to Check if Creater has added himself has a Promotion Approver?

$
0
0

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


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>