Example on btree traversal for child workflow

Hi People,

I’m creating Workflow execution something like make.com. Where each node is a child workflow in temporal. How can I do btree preorder traversal on the child workflows using NewContinueAsNewError? Please help me with an example in golang.

If I understand the question correctly you could pass the last processed node as arguments to the next continued execution when returning NewContinueAsNewError. New execution could continue traversal from that node.