Esempio n. 1
0
 public WorkflowStepController(
     IAppUserService AppUserService,
     IOrganizationService OrganizationService,
     IRoleService RoleService,
     IWorkflowDefinitionService WorkflowDefinitionService,
     IWorkflowStepService WorkflowStepService,
     ICurrentContext CurrentContext
     , IHttpContextAccessor httpContextAccessor, DataContext _DataContext
     ) : base(httpContextAccessor, _DataContext)
 {
     this.AppUserService            = AppUserService;
     this.OrganizationService       = OrganizationService;
     this.RoleService               = RoleService;
     this.WorkflowDefinitionService = WorkflowDefinitionService;
     this.WorkflowStepService       = WorkflowStepService;
     this.CurrentContext            = CurrentContext;
 }
Esempio n. 2
0
 public WorkflowDefinitionController(IRepository <WorkflowDefinition> workflowDefinitionRepository,
                                     IRepository <WorkflowDefinitionVersion> workflowDefinitionVersionRepository,
                                     IWorkflowDefinitionService workflowDefinitionService,
                                     ILocalizationService localizationService,
                                     IPermissionService permissionService,
                                     HttpContextBase httpContext,
                                     IWorkContext workContext,
                                     IDbContext dbContext)
 {
     this._workflowDefinitionRepository        = workflowDefinitionRepository;
     this._workflowDefinitionVersionRepository = workflowDefinitionVersionRepository;
     this._localizationService       = localizationService;
     this._workflowDefinitionService = workflowDefinitionService;
     this._permissionService         = permissionService;
     this._httpContext = httpContext;
     this._workContext = workContext;
     this._dbContext   = dbContext;
 }
 public static async Task <WorkflowDefinition> GetByVersionIdAsync(this IWorkflowDefinitionService service, string workflowDefinitionVersionId) => await service.GetByVersionIdAsync(new GetWorkflowDefinitionByVersionIdRequest(workflowDefinitionVersionId));
 public static async Task <WorkflowDefinition> GetByIdAsync(this IWorkflowDefinitionService service, string workflowDefinitionId, VersionOptions?versionOptions = default) => await service.GetByIdAsync(new GetWorkflowDefinitionByIdRequest(workflowDefinitionId, versionOptions));
 public static async Task <PagedList <WorkflowDefinition> > ListAsync(this IWorkflowDefinitionService service, int?page = default, int?pageSize = default, VersionOptions?versionOptions = default) => await service.ListAsync(new ListWorkflowDefinitionsRequest(page, pageSize, versionOptions));
 public static async Task DeleteAsync(this IWorkflowDefinitionService service, string workflowDefinitionId) => await service.DeleteAsync(new DeleteWorkflowDefinitionRequest(workflowDefinitionId));