FlowDocument
Flow document (fixed layout), stores all node data of the process
Danger
The best way to operate nodes is through ctx.operation, so that it can be bound to redo/undo
root
Get the root node of the canvas, all nodes are attached to the root node
getAllNodes
Get all node data
getNode
Get node by specified id
getNodeRegistry
Get node definition, node definition can be extended according to business
fromJSON/toJSON
Import and export data
registerFlowNodes
Register node configuration items, supports inheritance
addNode
Add node
addFromNode
Add to the node after the specified node
addBlock
Add a branch node to the specified node
removeNode
Delete node
onNodeCreate/onNodeUpdate/onNodeDispose
Node creation/update/destruction event, returns the event's disposal function
traverse
Traverse all child nodes from the specified node, default root node
toString
Return a string snapshot of the node structure