Portal Community

Template vs Instance

NodeType (Template)WorkflowNode (Instance)
What it isThe definition of a node kindA specific node placed on a canvas
Stored inProcess_ProcessElementTypes tableProcess_ProcessElements table (via workflowStore)
MultiplicityOne per node kind (e.g., one HTTP Request template)Many per workflow (many HTTP Request nodes)
ContainstypeCode, shape, icon, ports, defaultConfig, formIdnodeId, type, position, label, config (overrides)
Editable byPlatform admins only (admin mode)Workflow designers (any user with edit permission)

The TypeCode Linking Contract

typeCode is the unique string that links all layers of the system together:

1

Database

Process_ProcessElementTypes.TypeCode = "http-request"

2

Node Palette

Palette card uses typeCode as its lookup key

3

Canvas Renderer

WorkflowCanvas.nodeTypes['http-request'] → React component

4

Backend Executor

IProcessElementExecution registered for "http-request"