From 2060664a970677e9b2c84ecc5cd7c01ad87fed03 Mon Sep 17 00:00:00 2001 From: zhangzhanwei Date: Wed, 29 Oct 2025 15:32:48 +0800 Subject: [PATCH] fix: In the variable aggregation strategy that returns the first non-null value of each group, empty strings, empty lists, and empty objects are not treated as null values --- .../impl/base_variable_aggregation_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/application/flow/step_node/variable_aggregation_node/impl/base_variable_aggregation_node.py b/apps/application/flow/step_node/variable_aggregation_node/impl/base_variable_aggregation_node.py index d1daf74ee5b..c3ce785a61b 100644 --- a/apps/application/flow/step_node/variable_aggregation_node/impl/base_variable_aggregation_node.py +++ b/apps/application/flow/step_node/variable_aggregation_node/impl/base_variable_aggregation_node.py @@ -25,7 +25,7 @@ def get_first_non_null(self, variable_list): v = self.workflow_manage.get_reference_field( variable.get('variable')[0], variable.get('variable')[1:]) - if v is not None: + if v is not None and not(isinstance(v, (str,list,dict)) and len(v) == 0) : return v return None