diff --git a/apps/application/flow/step_node/start_node/impl/base_start_node.py b/apps/application/flow/step_node/start_node/impl/base_start_node.py index 64bf81bd3..c8168417b 100644 --- a/apps/application/flow/step_node/start_node/impl/base_start_node.py +++ b/apps/application/flow/step_node/start_node/impl/base_start_node.py @@ -37,8 +37,9 @@ def get_global_variable(node): class BaseStartStepNode(IStarNode): def save_context(self, details, workflow_manage): base_node = self.workflow_manage.get_base_node() - default_global_variable = get_default_global_variable(base_node.properties.get('input_field_list', [])) - workflow_variable = {**default_global_variable, **get_global_variable(self)} + default_global_variable = get_default_global_variable(base_node.properties.get('user_input_field_list', [])) + default_api_global_variable = get_default_global_variable(base_node.properties.get('api_input_field_list', [])) + workflow_variable = {**default_global_variable, **default_api_global_variable, **get_global_variable(self)} self.context['question'] = details.get('question') self.context['run_time'] = details.get('run_time') self.context['document'] = details.get('document_list') @@ -57,8 +58,9 @@ class BaseStartStepNode(IStarNode): def execute(self, question, **kwargs) -> NodeResult: base_node = self.workflow_manage.get_base_node() - default_global_variable = get_default_global_variable(base_node.properties.get('input_field_list', [])) - workflow_variable = {**default_global_variable, **get_global_variable(self)} + default_global_variable = get_default_global_variable(base_node.properties.get('user_input_field_list', [])) + default_api_global_variable = get_default_global_variable(base_node.properties.get('api_input_field_list', [])) + workflow_variable = {**default_global_variable, **default_api_global_variable, **get_global_variable(self)} """ 开始节点 初始化全局变量 """