Sfoglia il codice sorgente

flowInstance增加getProcDef,findActivity

4.0
郑根木 2 anni fa
parent
commit
16a1f3f446
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  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 Vedi File

@@ -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);
}
}

Caricamento…
Annulla
Salva