瀏覽代碼

flowInstance增加getProcDef,findActivity

4.0
郑根木 2 年之前
父節點
當前提交
16a1f3f446
共有 1 個檔案被更改,包括 10 行新增0 行删除
  1. +10
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/flow/FlowInstance.java

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

@@ -966,4 +966,14 @@ public class FlowInstance {
worker.work(bean, comment, us.getUserId());
getCommentDao().updateEntity(bean);
}

//获取流程定义信息
public ModelProc getProcDef() {
return procDef;
}

//获取指定的任务定义信息
public Activity findActivity(String actId) {
return procDef.getProcInfo().findActivity(actId);
}
}

Loading…
取消
儲存