fix: User input parameters do not take effect (#3620)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run

This commit is contained in:
shaohuzhang1 2025-07-15 21:50:00 +08:00 committed by GitHub
parent 42a7b1040a
commit 43c7d1c3c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)}
"""
开始节点 初始化全局变量
"""