From 16a1f3f446fbcf1511c48e14bb480dc6e655dc94 Mon Sep 17 00:00:00 2001 From: zhenggm Date: Thu, 29 Sep 2022 19:46:03 +0800 Subject: [PATCH] =?UTF-8?q?flowInstance=E5=A2=9E=E5=8A=A0getProcDef?= =?UTF-8?q?=EF=BC=8CfindActivity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cc/smtweb/system/bpm/web/engine/flow/FlowInstance.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/flow/FlowInstance.java b/smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/flow/FlowInstance.java index 0a4affb..133321d 100644 --- a/smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/flow/FlowInstance.java +++ b/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); + } }