From 9b445c66fcc4b5870476a591c006d665f08ba915 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期二, 24 十二月 2024 11:59:06 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-bpm/iailab-module-bpm-biz/src/main/java/com/iailab/module/bpm/framework/flowable/core/listener/demo/task/DemoDelegateExpressionTaskListener.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/iailab-module-bpm/iailab-module-bpm-biz/src/main/java/com/iailab/module/bpm/framework/flowable/core/listener/demo/task/DemoDelegateExpressionTaskListener.java b/iailab-module-bpm/iailab-module-bpm-biz/src/main/java/com/iailab/module/bpm/framework/flowable/core/listener/demo/task/DemoDelegateExpressionTaskListener.java
index 37c7425..24e9d63 100644
--- a/iailab-module-bpm/iailab-module-bpm-biz/src/main/java/com/iailab/module/bpm/framework/flowable/core/listener/demo/task/DemoDelegateExpressionTaskListener.java
+++ b/iailab-module-bpm/iailab-module-bpm-biz/src/main/java/com/iailab/module/bpm/framework/flowable/core/listener/demo/task/DemoDelegateExpressionTaskListener.java
@@ -5,6 +5,8 @@
 import org.flowable.task.service.delegate.DelegateTask;
 import org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 /**
  * 类型为 delegateExpression 的 TaskListener 监听器示例
  *
@@ -16,7 +18,9 @@
 
     @Override
     public void notify(DelegateTask delegateTask) {
-        log.info("[execute][task({}) 被调用]", delegateTask.getId());
+        log.info("[execute][task({}) 任务监听器(委托表达式)被调用]", delegateTask.getId());
+        Map<String, Object> variables = delegateTask.getVariables();
+        System.out.println(variables.toString());;
     }
 
 }
\ No newline at end of file

--
Gitblit v1.9.3