|
静态页面启动流程后台java方法:
String sData1 = CommonUtils.createGUID();
String process = "/XGDXMTJPT/Exchange/process/Exchange/exchangeProcess" ;
String executor = ContextHelper.getPersonMember().getFID();
String task = ProcessUtils.startProcess(process, "手动启动1",sData1,executor).get(0).get("task");
ProcessControl control = ProcessUtils.advanceProcessQuery(task);
运行到红色字体时报错:
Caused by: com.justep.system.util.BizSystemException: 编码: JUSTEP180197; 提示: 任务"部门回复:我要留言"必须指定执行者
at com.justep.system.util.BizSystemException.create(Unknown Source)
at com.justep.system.process.PNEngineUtils.processControlItemToTask(Unknown Source)
at com.justep.system.process.PNEngineUtils.createActivityTask(Unknown Source)
at com.justep.system.process.PNEngineUtils.inputActivityInstance(Unknown Source)
at com.justep.system.process.PNEngine.inputAI(Unknown Source)
at com.justep.system.process.PNEngine.execute(Unknown Source)
at com.justep.system.process.StartProcessEngine.execute(Unknown Source)
at com.justep.system.process.ProcessEngine.start(Unknown Source)
at ProcessProcedure.startProcess(ProcessProcedure.java:195)
... 40 more
|
|