public ChildController( ILogger <BaseController> logger, VVDCCore.Tools.Interfaces.IResourceManager resxManager, ResourceServiceFactory factory) : base(logger, resxManager) { _factory = factory; }
/// <summary> /// 构造方法 /// </summary> public WorkflowService() { //设置当前数据为 ORACLE //DBTypeExtenstions.SetDBType(DBTypeEnum.ORACLE); //资源接口组件 ResourceService = ResourceServiceFactory.Create(); }
/// <summary> /// 构造方法 /// </summary> public WorkflowService() { //设置当前数据为 ORACLE //DBTypeExtenstions.SetDBType(DBTypeEnum.ORACLE, new OracleWfDataProvider()); //资源接口组件 ResourceService = ResourceServiceFactory.Create(); }
/// <summary> /// 创建活动节点执行者列表 /// </summary> /// <param name="roleList">角色列表</param> /// <returns></returns> internal static PerformerList CreatePerformerList(IList <Role> roleList) { var roleIDs = roleList.Select(x => x.ID).ToArray(); var resourceService = ResourceServiceFactory.Create(); var userList = resourceService.GetUserListByRoles(roleIDs); var performerList = new PerformerList(); foreach (var user in userList) { var performer = new Performer(user.UserID.ToString(), user.UserName); performerList.Add(performer); } return(performerList); }