Skip to content

Commit 43c7d1c

Browse files
authored
fix: User input parameters do not take effect (#3620)
1 parent 42a7b10 commit 43c7d1c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

apps/application/flow/step_node/start_node/impl/base_start_node.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ def get_global_variable(node):
3737
class BaseStartStepNode(IStarNode):
3838
def save_context(self, details, workflow_manage):
3939
base_node = self.workflow_manage.get_base_node()
40-
default_global_variable = get_default_global_variable(base_node.properties.get('input_field_list', []))
41-
workflow_variable = {**default_global_variable, **get_global_variable(self)}
40+
default_global_variable = get_default_global_variable(base_node.properties.get('user_input_field_list', []))
41+
default_api_global_variable = get_default_global_variable(base_node.properties.get('api_input_field_list', []))
42+
workflow_variable = {**default_global_variable, **default_api_global_variable, **get_global_variable(self)}
4243
self.context['question'] = details.get('question')
4344
self.context['run_time'] = details.get('run_time')
4445
self.context['document'] = details.get('document_list')
@@ -57,8 +58,9 @@ def get_node_params_serializer_class(self) -> Type[serializers.Serializer]:
5758

5859
def execute(self, question, **kwargs) -> NodeResult:
5960
base_node = self.workflow_manage.get_base_node()
60-
default_global_variable = get_default_global_variable(base_node.properties.get('input_field_list', []))
61-
workflow_variable = {**default_global_variable, **get_global_variable(self)}
61+
default_global_variable = get_default_global_variable(base_node.properties.get('user_input_field_list', []))
62+
default_api_global_variable = get_default_global_variable(base_node.properties.get('api_input_field_list', []))
63+
workflow_variable = {**default_global_variable, **default_api_global_variable, **get_global_variable(self)}
6264
"""
6365
开始节点 初始化全局变量
6466
"""

0 commit comments

Comments
 (0)