コード例 #1
0
        /// <summary>
        /// 准备同意/不同意流程,流转到到选择同意/不同意的活动(B)
        /// </summary>
        /// <returns></returns>
        public static IWfActivity PrepareAndMoveToAgreeSelectorActivity()
        {
            //准备同意/不同意的退回流程。在B环节有两根出线BC和BA,BA是退回线,退回到A。其中BA默认是没有选择的
            IWfProcessDescriptor processDesp = ReturnExecutorTestHelper.PrepareAgreeReturnProcessDesp();

            IWfProcess process = ReturnExecutorTestHelper.StartSpecialReturnProcess(processDesp);

            process.MoveToNextDefaultActivity();        //To B

            return(process.CurrentActivity);
        }
コード例 #2
0
        /// <summary>
        /// 准备专用退件流程,据有A、B、C、D、E5个活动。F为结束点
        /// B有BC和BE两条出线,IsCLine为True走BC,否则走BE。
        /// 然后流转到活动D
        /// </summary>
        /// <returns></returns>
        public static IWfActivity PrepareAndMoveToSpecialActivity()
        {
            IWfProcessDescriptor processDesp = ReturnExecutorTestHelper.PrepareSpecialReturnProcessDesp();

            IWfProcess process = ReturnExecutorTestHelper.StartSpecialReturnProcess(processDesp);

            process.MoveToNextDefaultActivity();        //To B
            process.MoveToNextDefaultActivity();        //To C
            process.MoveToNextDefaultActivity();        //To D

            return(process.CurrentActivity);
        }