|
楼主 |
发表于 2017-9-5 16:42:35
|
显示全部楼层
本帖最后由 棒棒糖 于 2017-9-5 16:44 编辑
怎么样根据具体的判断z自己调用start方法启动或者流转
public static String startPlanExchangeFlow(String planId){
//查询计划信息表
String kSqlString = "select p as fID,p.fPlanName from CBMP_PlanInfo p where p=:planId ";
Map<String, Object> params = new HashMap<String, Object>();
params.put("planId", planId);
Table table = KSQL.select(kSqlString, params, dataModel, null);
Iterator<Row> rows = table.iterator();
String planName = "";
if(rows.hasNext()){
Row row = rows.next();
planName = row.getString("fPlanName")==null?"":row.getString("fPlanName");
};
String executor = ContextHelper.getPersonMember().getFID();
String title = "【"+planName+"】计划变更申请!";
// 发起流程
List<Map<String, String>> startDom = ProcessUtils.startProcess("/CBMP/planMangement/process/implePlanProcessMangement/implePlanProcessMangementProcess", title, planId, executor);
// 从流程启动的返回值中获取第一个待办任务的ID
String task = startDom.get(0).get("task");
return task;
}
这种方式是属于启动原来的流程?
|
|