浏览代码

流程:按钮控制

4.0
郑根木 2 年前
父节点
当前提交
692a122dca
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. +4
    -3
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/flow/FlowInstance.java

+ 4
- 3
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/flow/FlowInstance.java 查看文件

@@ -375,7 +375,7 @@ public class FlowInstance {
boolean hasMake = false;
for (Task act : listTask) {
SwMap row = new SwMap();
tasks.add(row);
bTasks.add(row);
row.put("id", act.getId());
row.put("label", procDef.getProcInfo().getActNameById(act.getActId()));
if (act.isMake()) {
@@ -387,14 +387,15 @@ public class FlowInstance {
}
if (!hasMake && procDef.getProcInfo().isRejectToMake()) {
SwMap row = new SwMap();
tasks.add(0, row);
bTasks.add(0, row);
Task act = provider.findMakeTask(procInst.getId());
row.put("id", act.getId());
row.put("label", procDef.getProcInfo().getActNameById(act.getActId()));
row.put("type", 0);
}
extra.put("preTasks", bTasks);
}
extra.put("preTasks", tasks);
List<SwMap> buttons = new ArrayList<>();
resetButtons(buttons);
extra.put("buttons", buttons);


正在加载...
取消
保存