I am trying to get the annotation of a workflow, but I don’t find any programmatic way to get the root activity. Does anyone know a pattern that works for all workflows? Best thing I could figure out was first tag after </TextExpression.ReferencesForImplementation>
Thanks for your response, but it doesn’t response to my question. My challenge is not the deserialization of the XML file. I want to know how to find the root activity. In the picture attached to the question, the root activity is a sequence, but it could be any other activity like a flowchart or a try-catch.