Ver código fonte

flowInstance增加getProcDef,findActivity

4.0
郑根木 2 anos atrás
pai
commit
16a1f3f446
1 arquivos alterados com 10 adições e 0 exclusões
  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 Ver arquivo

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

Carregando…
Cancelar
Salvar