Пример #1
0
        public static void ExecuteReturnOperation(IWfActivity currentActivity, string targetKey)
        {
            IWfActivity      targetActivity = currentActivity.Process.Activities.FindActivityByDescriptorKey(targetKey);
            WfReturnExecutor executor       = new WfReturnExecutor(currentActivity, targetActivity);

            executor.ExecuteNotPersist();
        }
Пример #2
0
        public static IWfProcess ExecuteReturnOperation(IWfActivity currentActivity, string targetKey)
        {
            IWfActivity      targetActivity = currentActivity.Process.Activities.FindActivityByDescriptorKey(targetKey);
            WfReturnExecutor executor       = new WfReturnExecutor(currentActivity, targetActivity);

            IWfProcess process = executor.ExecuteNotPersist();

            return(WfRuntime.GetProcessByProcessID(process.ID));
        }