コード例 #1
0
        public static void printActivityTreeA(Activity activity)
        {
            if (tag == null)
            {
                tag                 = new activityStruct();
                tag.parent          = null;
                tag.currentActivity = activity;
                tag.displayName     = activity.DisplayName;
            }

            IEnumerator <Activity> list = WorkflowInspectionServices.GetActivities(activity).GetEnumerator();

            while (list.MoveNext())
            {
                activityStruct temp = new activityStruct();

                temp.parent          = tag;
                temp.currentActivity = list.Current;
                temp.displayName     = list.Current.DisplayName;
                printActivityTreeA(list.Current);
            }
        }
コード例 #2
0
        public static void printActivityTreeA(Activity activity)
        {
            if (tag == null)
            {
                tag = new activityStruct();
                tag.parent = null;
                tag.currentActivity = activity;
                tag.displayName = activity.DisplayName;
            }

            IEnumerator<Activity> list = WorkflowInspectionServices.GetActivities(activity).GetEnumerator();

            while (list.MoveNext())
            {
                activityStruct temp = new activityStruct();

                temp.parent = tag;
                temp.currentActivity = list.Current;
                temp.displayName = list.Current.DisplayName;
                printActivityTreeA(list.Current);

            }
        }