From 2cf1ad7ea46c109025f26c52f8aa075f4bb3c7ef 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 d1daf74ee..c3ce785a6 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 @@ class BaseVariableAggregationNode(IVariableAggregation): 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