How to set state of objects back to the state when they started the workflow?
I'm trying set the state of all the objects attached to a promotion or CN back to the state when they started the workflow. The problem is the objects could have multiple starting states, either In Work or Development In work, so I can't use code to state state of every object attached to the promotion or CN. I was thinking to query the objects, which could be a combination of WTPart, WTDocument, and EPMDocuments, and maybe finding the maturity history of the latest revision, and setting the state to that initial revision. Problem is, I don't know how to do any of this. Has anyone experienced or written code to do something similar?

