Esempio n. 1
0
        private void PrintFinalizationCodeFunction(object sender, EventArgs e)
        {
            WorkFlowMachineStatusTest.Events.Add("PrintFinalizationCodeFunction");

            Activity activity = (Activity)sender;

            while (activity.Parent != null)
            {
                activity = activity.Parent;
            }

            DocumentCreation doc = (DocumentCreation)activity;

            WorkFlowMachineStatusTest.Events.Add("State:" + doc.CurrentStateName);
            WorkFlowMachineStatusTest.Events.Add("Previous state:" + doc.PreviousStateName);
        }
Esempio n. 2
0
        private void ProofReadIfElseConditionFunction(object sender, ConditionalEventArgs e)
        {
            e.Result = false;
            WorkFlowMachineStatusTest.Events.Add("ProofReadIfElseConditionFunction");

            Activity activity = (Activity)sender;

            while (activity.Parent != null)
            {
                activity = activity.Parent;
            }

            DocumentCreation doc = (DocumentCreation)activity;

            WorkFlowMachineStatusTest.Events.Add("State:" + doc.CurrentStateName);
        }