Exemplo 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>();
            }
Exemplo 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;
            }