mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
feat(editor): Change default node names depending on node operation and resource (#16188)
This commit is contained in:
@@ -72,7 +72,6 @@ import {
|
||||
handleCycles,
|
||||
filterDisabledNodes,
|
||||
rewireGraph,
|
||||
isTool,
|
||||
getNextExecutionIndex,
|
||||
} from './partial-execution-utils';
|
||||
import { TOOL_EXECUTOR_NODE_NAME } from './partial-execution-utils/rewire-graph';
|
||||
@@ -368,8 +367,12 @@ export class WorkflowExecute {
|
||||
|
||||
let graph = DirectedGraph.fromWorkflow(workflow);
|
||||
|
||||
const destinationNodeType = workflow.nodeTypes.getByNameAndVersion(
|
||||
destination.type,
|
||||
destination.typeVersion,
|
||||
);
|
||||
// Partial execution of nodes as tools
|
||||
if (isTool(destination, workflow.nodeTypes)) {
|
||||
if (NodeHelpers.isTool(destinationNodeType.description, destination.parameters)) {
|
||||
graph = rewireGraph(destination, graph, agentRequest);
|
||||
workflow = graph.toWorkflow({ ...workflow });
|
||||
// Rewire destination node to the virtual agent
|
||||
|
||||
Reference in New Issue
Block a user