You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thanks for your work on this great package!
I have a use-case where I have a "source" node and "destination" node.
A source node has a set of fields that need to be mapped to the fields in the destination node.
Would it be possible to create a dynamic "Mapping" node when the user connects the source node with the destination node?
The mapping node should then be placed in between the source and destination nodes.
So from this:
To this:
The text was updated successfully, but these errors were encountered:
It is probably possible, but I don't know an easy solution. In your mapping node, you essentially have to check which nodes it is connected to. This can be achieved by subscribing to the setConnectionCount event of your input/output interfaces of the mapping node. Then you can use the graph instance (the AbstractNode has the graph property so you can access it via this.graph) to find the nodes connected to the mapping node and create the mapping interfaces dynamically. This also includes custom logic for saving and loading. The Advanced Node in the playground is a much more simple example compared to your use case, but maybe it helps you get some ideas on how to do it.
First of all thanks for your work on this great package!
I have a use-case where I have a "source" node and "destination" node.
A source node has a set of fields that need to be mapped to the fields in the destination node.
Would it be possible to create a dynamic "Mapping" node when the user connects the source node with the destination node?
The mapping node should then be placed in between the source and destination nodes.
So from this:
To this:
The text was updated successfully, but these errors were encountered: