mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: User input parameters do not take effect (#3620)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
This commit is contained in:
parent
42a7b1040a
commit
43c7d1c3c4
|
|
@ -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)}
|
||||
"""
|
||||
开始节点 初始化全局变量
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue