Ejemplo n.º 1
0
    public static void Main()
    {
        FlowSteps   steps = new FlowSteps();
        FlowManager flow  = new FlowManager(steps.getFirstStep());

        while (flow.NextAction != null)
        {
            flow.Continue();
        }

        /* Expected output:
         *  Step1
         *  Step2
         *  Step3
         */
    }
Ejemplo n.º 2
0
    public static void Main()
    {
        FlowSteps steps = new FlowSteps();
        Dictionary <string, object> init_data = new Dictionary <string, object>(3);

        init_data.Add("repeat", 3);
        FlowManager flow = new FlowManager(steps.getFirstStep(), init_data);

        while (flow.NextAction != null)
        {
            flow.Continue();
        }

        /* Expected output:
         *  Step1
         *  Step2_0
         *  Step2_1
         *  Step2_2
         *  Step3
         */
    }