public static boolean isValidAutoAccept(WTChangeRequest2 ecr) throws WTException { Category category=ecr.getCategory(); //if we have an auto-acceptable category if ((category==Category.toCategory("INITIAL_RELEASE"))||(category==Category.toCategory("ENG_ERROR"))) { //and the creator is part of the Product area team (CONFIRMED) ContainerTeamManaged containerteammanaged = (ContainerTeamManaged)ecr.getContainer(); Enumeration enumeration = ((ContainerTeam)containerteammanaged.getContainerTeamReference().getObject()).getMembers().elements(); while(enumeration.hasMoreElements()) { WTPrincipalReference wtprincipalreference = (WTPrincipalReference)enumeration.nextElement(); WTPrincipal wtprincipal = (WTPrincipal)wtprincipalreference.getObject(); if(wtprincipal instanceof WTUser) { WTUser wtuser = (WTUser)wtprincipal; if (wtuser.getName().equals(ecr.getCreatorName())) return true; } } } return false; } Conditional expression: if (customization.workflow.XXXXXWorkflowProcessHelper.isValidAutoAccept((wt.change2.WTChangeRequest2)primaryBusinessObject)) { ECCreator=customization.workflow.XXXXWorkflowProcessHelper.getECRCreator((wt.change2.WTChangeRequest2)primaryBusinessObject); ccbcDecision="Approve"; analysisComments="Auto-Accepted"; approvalDate=new java.sql.Timestamp(System.currentTimeMillis()); result="Accept"; } else { result="Continue"; }