Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="process"></param>
        /// <param name="transParams"></param>
        /// <returns></returns>
        public IWfActivity CreateActivity(IWfProcess process, WfTransferParams transParams)
        {
            WfActivity activity = new WfActivity(transParams.NextActivityDescriptor);

            activity.Operator = transParams.Operator;
            activity.Process  = process;

            return(activity);
        }
Ejemplo n.º 2
0
        private void MoveToOneBranchProcessFirstActivity(WfBranchProcessInfo processInfo)
        {
            WfTransferParams initialTransferParams =
                new WfTransferParams(processInfo.ProcessDescriptor.InitialActivity);

            ((WfActivityDescriptor)processInfo.ProcessDescriptor.InitialActivity).LevelName = processInfo.OwnerOperation.AnchorActivity.Descriptor.LevelName;

            initialTransferParams.Receivers.CopyFrom(processInfo.BranchProcessReceiver);

            WfProcess process = ((WfProcess)processInfo.Process);

            process.MoveTo(initialTransferParams);
        }