|
我在流程的onAfterAdvanceQuery加入了一下代码,自动选择审核人,但是我去掉代码页面还是会默认审核人,这种缓存应该怎么清除?
public static void businessActivity1AfterAdvanceQuery() {
String key = ProcessUtils.getProcessData1();
String fids=(String)BizUtils.getRelationValue("Appointment_application", key, null, null, "fTeacherFID", "/deviceManagement/business/data");
ProcessControl control = (ProcessControl)ContextHelper.getActionContext().getActionResult();
if(fids!=null && fids.length()>0){
String [] fid_arr=fids.split(",");
List<String> arrlist= Arrays.asList(fid_arr);
for (ProcessControlItem to : control.getFlowTos()){
System.out.println(arrlist);
java.util.List<OrgUnit> orglist= OrgUtils.findOrgUnitsByFID(arrlist);//arrlist
to.clearExecutors();
System.out.println(orglist);
to.addExecutors(orglist);
// to.addExecutorRange(addExecutorRange);
}
}
}
|
|