Browse Source

流程引擎:load\save\submit

4.0
郑根木 2 years ago
parent
commit
32ad84350a
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/flow/FlowInstance.java
  2. +1
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/model/flow/listcard/single/FlowSingleLoadHandler.java

+ 1
- 1
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/flow/FlowInstance.java View File

@@ -565,7 +565,7 @@ public class FlowInstance {
actInst.setHandler(user_id); actInst.setHandler(user_id);
actInst.setStartTime(DateUtil.nowDateTimeLong()); actInst.setStartTime(DateUtil.nowDateTimeLong());
actInst.setStatu(FlowConst.ActivityStatu.SUBMIT.value); actInst.setStatu(FlowConst.ActivityStatu.SUBMIT.value);
actInst.setRetake(true);
actInst.setRetake(false);


if (listInsertTask.size() > 0) { if (listInsertTask.size() > 0) {
procInst.setTaskId(listInsertTask.get(0).getEntityId()); procInst.setTaskId(listInsertTask.get(0).getEntityId());


+ 1
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/model/flow/listcard/single/FlowSingleLoadHandler.java View File

@@ -36,6 +36,7 @@ public class FlowSingleLoadHandler extends LCSingleLoadHandler implements FlowLi
ModelTable table = cardDataset.getModelTable(); ModelTable table = cardDataset.getModelTable();
bean.put(table.getIdField(), flowInstance.getProcInst().getId()); bean.put(table.getIdField(), flowInstance.getProcInst().getId());


ret.put(cardDataset.name, DynRetBean.createBean(bean));
ret.put(FlowHelper.DATASET_NAME_FLOW, DynRetBean.createBean(flowInstance.getProcInst())); ret.put(FlowHelper.DATASET_NAME_FLOW, DynRetBean.createBean(flowInstance.getProcInst()));
ret.put(FlowHelper.DATASET_NAME_COMMENT, DynRetBean.createList(SwListData.EMPTY)); ret.put(FlowHelper.DATASET_NAME_COMMENT, DynRetBean.createList(SwListData.EMPTY));
} }


Loading…
Cancel
Save