/// <summary> /// Constructor for ComputableWorkflow /// </summary> /// <param name="wf">A workflow to extract the information</param> public ComputableWorkflow(Workflow wf) { editedWf = wf; actualState = wf.initialNode; finalDocument = new FinalWFdocument(wf.workflowName); rollbackWFnodes = new Stack <WFnode>(); }
public void ReverseFinalDocument() { FinalWFdocument doc = new FinalWFdocument(editedWf.workflowName); FinalWFdocument buff = finalDocument; while (buff.Count != 0) { doc.Push(buff.Pop()); } finalDocument = doc; }