获取工作流中的核准者这一角色

获取产品工作流中的进程角色—核准者,假如一个工作流中核准者的参与者是“A”,用什么语句才能获取“A”??

 

Enumeration roles = process.getRoles();
       while (roles.hasMoreElements())
       {
         wt.project.Role role = (wt.project.Role)roles.nextElement();
         if (role.getDisplay().equalsIgnoreCase("approver"))
         {
 Enumeration assignees = process.getPrincipals(role);
 if (assignees.hasMoreElements())
 {
     approver=(WTPrinciplal)assignees.nextElement();
 }
 }
       }

你可能感兴趣的:(工作)