Esempio n. 1
0
            /// <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>();
            }
Esempio n. 2
0
            public void ReverseFinalDocument()
            {
                FinalWFdocument doc  = new FinalWFdocument(editedWf.workflowName);
                FinalWFdocument buff = finalDocument;

                while (buff.Count != 0)
                {
                    doc.Push(buff.Pop());
                }

                finalDocument = doc;
            }