|
楼主 |
发表于 2017-4-21 13:49:55
|
显示全部楼层
public static void bugFlowProcessAfterSaveFP_BUGAction() {
// 获得通知接收者
Table table = (Table) ContextHelper.getActionContext().getParameter("table");
//获取当前行的id
String fid = "";
Iterator<Row> it = table.iterator();
if (it.hasNext()) {
Row row = it.next();
fid = row.getString("FP_BUG");
System.out.println(fid);
}
String cont = ContextHelper.getProcessList().get(0).toString();
//给XXX发送通知
List<OrgUnit> ls = new ArrayList<OrgUnit>();
// ls = OrgUtils.findPersonMembersByID("ORG01", "PSN01");
ls = OrgUtils.findPersonMembersByCode(null, "wftn");
// 设置通知为打开时抢占、打开后自动结束
Map<String, Object> varMap = new HashMap<String, Object>();
varMap.put("sExecuteMode2", com.justep.system.process.TaskExecuteMode2.FINISH_WHEN_OPEN);
varMap.put("sPreemptMode", com.justep.system.process.TaskPreemptMode.OPEN);
// 创建通知,执行保存方法,即发送通知
Task t = TaskHelper.createNotice("BUG通知", "/FlowProcess/imgBugMsg/process/bugFlow/bugFlowProcess", "mainActivity", "/FlowProcess/imgBugMsg/process/bugFlow/staticActivity1.a",
"/FlowProcess/imgBugMsg/process/bugFlow/staticActivity1.a", fid, ls.get(0), varMap);
t.save();
}
|
|