Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ def tool_exec_record(self, tool_lib, all_params):
source_id = self.workflow_manage.params.get('knowledge_id')
source_type = ToolTaskTypeChoices.KNOWLEDGE.value
elif [WorkflowMode.TOOL, WorkflowMode.TOOL_LOOP].__contains__(self.workflow_manage.flow.workflow_mode):
source_id = self.workflow_manage.params.get('application_id')
source_type = ToolTaskTypeChoices.APPLICATION.value
else:
source_id = self.workflow_manage.params.get('tool_id')
source_type = ToolTaskTypeChoices.TOOL.value
else:
source_id = self.workflow_manage.params.get('application_id')
source_type = ToolTaskTypeChoices.APPLICATION.value

ToolRecord(
id=task_record_id,
Expand Down
Loading