/// <summary> /// 创建中间事件节点处理类实例 /// </summary> /// <param name="forwardContext">活动上下文</param> /// <param name="eActivity">节点</param> /// <param name="processModel">流程模型类</param> /// <param name="session">会话</param> /// <returns>Gateway节点处理实例</returns> internal static NodeMediatorEvent CreateNodeMediatorEvent(ActivityForwardContext forwardContext, ActivityEntity eActivity, IProcessModel processModel, IDbSession session) { NodeMediatorEvent nodeMediator = null; if (eActivity.ActivityType == ActivityTypeEnum.IntermediateNode) { nodeMediator = new NodeMediatorIntermediate(forwardContext, eActivity, processModel, session); } else { throw new XmlDefinitionException(string.Format("不明确的节点类型!{0}", eActivity.ActivityType.ToString())); } return(nodeMediator); }
/// <summary> /// 创建中间事件节点处理类实例 /// </summary> /// <param name="forwardContext">活动上下文</param> /// <param name="eActivity">节点</param> /// <param name="processModel">流程模型类</param> /// <param name="session">会话</param> /// <returns>Gateway节点处理实例</returns> internal static NodeMediatorEvent CreateNodeMediatorEvent(ActivityForwardContext forwardContext, ActivityEntity eActivity, IProcessModel processModel, IDbSession session) { NodeMediatorEvent nodeMediator = null; if (eActivity.ActivityType == ActivityTypeEnum.IntermediateNode) { nodeMediator = new NodeMediatorIntermediate(forwardContext, eActivity, processModel, session); } else { throw new XmlDefinitionException(LocalizeHelper.GetEngineMessage("nodemediatorfactory.CreateNodeMediatorEvent.uncertain.warn", eActivity.ActivityType.ToString())); } return(nodeMediator); }