for each instance of the node, I save a lot of data using the modeler, I would like to be able to copy not just the xml representation of the node, but all the data related to it, can I achieve this behavior?
when writing to a node, I call the context menu (PropertiesPanel), in which I can enter some settings for each node.
My goal is that when I select a node that has any data populated and press cntrl+c followed by cntrl+v. A full copy of the node was inserted on the working canvas, including the data filled in for it was inside.
Your custom type doesn’t extend anything. Try adding "extends": [ "bpmn:FlowNode" ], to your extension so the properties will actually be added to every flow node (cf. this example).
I added inheritance for my main node, this improved the situation, now when copying a node, it has the label of the copied element, but the rest of the fields are not copied…
I found a significant difference inside the buisnessObject in the case of bpmn:EndEvent my data is stored directly inside the object, and in the case of bpmn:Task they are inside buisnessObject.$attr, I think this is the cause of the error, but I still don’t understand why this behavior occurs Understand.
on the first pick bpmn:Task
here is bpmn:EndEvent
No data should ever show up in $attrs. This is what happens when the property you’re setting is unknown. If you called your property messageAppeal you can’t set MessageAppeal. They are not the same. These are property names, not types like bpmn:Task which usually are uppercase.
yes, I think I understand what the error is, I tried to achieve uniform behavior through the prefix that I pass from the top level and made a case error, now I will try to fix it and report the result, thank you very much in advance!