Skip to content

Commit

Permalink
fix: Workflow execution logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Jan 23, 2025
1 parent 62dd0eb commit eebc631
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def convert_value(name: str, value, _type, is_required, source, node):
class BaseFunctionLibNodeNode(IFunctionLibNode):
def save_context(self, details, workflow_manage):
self.context['result'] = details.get('result')
self.answer_text = details.get('result')
self.answer_text = str(details.get('result'))

def execute(self, function_lib_id, input_field_list, **kwargs) -> NodeResult:
function_lib = QuerySet(FunctionLib).filter(id=function_lib_id).first()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def convert_value(name: str, value, _type, is_required, source, node):
class BaseFunctionNodeNode(IFunctionNode):
def save_context(self, details, workflow_manage):
self.context['result'] = details.get('result')
self.answer_text = details.get('result')
self.answer_text = str(details.get('result'))

def execute(self, input_field_list, code, **kwargs) -> NodeResult:
params = {field.get('name'): convert_value(field.get('name'), field.get('value'), field.get('type'),
Expand Down
2 changes: 1 addition & 1 deletion apps/application/flow/workflow_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def get_runtime_details(self):
details['node_id'] = node.id
details['up_node_id_list'] = node.up_node_id_list
details['runtime_node_id'] = node.runtime_node_id
details_result[str(uuid.uuid1())] = details
details_result[node.runtime_node_id] = details
return details_result

def get_answer_text_list(self):
Expand Down

0 comments on commit eebc631

Please sign in to comment.