5152535455565758596061
if(processInstanceImpl.hasEnded()){ throw new FixFlowException("流程实例已经结束,不能暂停"); } //暂停流程实例 processInstanceImpl.suspend(); try { // 持久化实例 processInstanceManager.saveProcessInstance(processInstanceImpl); } catch (Exception e) {
4445464748495051525354
// 执行处理命令中的开发人员设置的表达式 runCommandExpression(); //获取流程实例 ProcessInstanceEntity processInstance=getProcessInstance(); processInstance.suspend(); try { saveProcessInstance(commandContext); } catch (Exception e) { // TODO 自动生成的 catch 块 e.printStackTrace();