In a BPMN like example, I’m having one Pool and Lanes (steps) each having nodes of all kind types (activity, gateways). Whenever I save the diagram I need to convert the JSON into a custom model/json where order (index) of each one is very important (there’s a system which executes those based on their order). Unfortunately I can’t see in GoJs how easily to extract/convert the model to our custom json with nodes order/index. Even “pool.memberParts” doesn’t return the visual order. Seems like I have to sort by Location.y to get their order.
Any ideas how to accomplish this easier ?