Beispiel #1
0
 public LoginController(IWebSecurityService userService, IOrganizationService organizationService, IWorkflowInstanceService workflowInstanceService, IEmailHelper emailHelper)
 {
     this.userService             = userService;
     this.organizationService     = organizationService;
     this.workflowInstanceService = workflowInstanceService;
     this.emailHelper             = emailHelper;
 }
 public LoginController(IWebSecurityService userService, IOrganizationService organizationService, IWorkflowInstanceService workflowInstanceService, IEmailHelper emailHelper)
 {
     this.userService = userService;
     this.organizationService = organizationService;
     this.workflowInstanceService = workflowInstanceService;
     this.emailHelper = emailHelper;
 }
Beispiel #3
0
 public WorkflowDefinitionVersionService(IMapper mapper, IWorkflowDefinitionVersionRepository repository, IWorkflowInstanceService workflowInstanceService, IActivityDefinitionRepository activityDefinitionRepository, IConnectionDefinitionRepository connectionDefinitionRepository, ElsaDbContext elsaDbContext)
 {
     _mapper     = mapper;
     _repository = repository;
     _workflowInstanceService        = workflowInstanceService;
     _activityDefinitionRepository   = activityDefinitionRepository;
     _connectionDefinitionRepository = connectionDefinitionRepository;
     _elsaDbContext = elsaDbContext;
 }
Beispiel #4
0
 public OrganizationController(IOrganizationService organizationService, IWebSecurityService securityService, IEmailHelper emailHelper, IRegistrationService registrationService, IWorkflowInstanceService workflowInstanceService, IWorkflowService workflowService)
 {
     this.organizationService     = organizationService;
     this.webSecurityService      = securityService;
     this.emailHelper             = emailHelper;
     this.registrationService     = registrationService;
     this.workflowInstanceService = workflowInstanceService;
     this.workflowService         = workflowService;
 }
 public OrganizationController(IOrganizationService organizationService, IWebSecurityService securityService, IEmailHelper emailHelper, IRegistrationService registrationService, IWorkflowInstanceService workflowInstanceService, IWorkflowService workflowService)
 {
     this.organizationService = organizationService;
     this.webSecurityService = securityService;
     this.emailHelper = emailHelper;
     this.registrationService = registrationService;
     this.workflowInstanceService = workflowInstanceService;
     this.workflowService = workflowService;
 }
 public static Task <PagedList <WorkflowInstanceSummary> > ListAsync(
     this IWorkflowInstanceService service,
     int page     = 0,
     int pageSize = 50,
     string?workflowDefinitionId   = default,
     WorkflowStatus?workflowStatus = default,
     OrderBy?orderBy   = default,
     string?searchTerm = default) =>
 service.ListAsync(new ListWorkflowInstancesRequest(page, pageSize, workflowDefinitionId, workflowStatus, orderBy, searchTerm));
 public ArrestReportCommandService(
     IReportsUnitOfWork unitOfWork,
     IWorkflowInstanceService workflowInstanceService,
     ITemplateProvider templateProvider,
     ILog log,
     IServiceAuthorizationPolicy authorizationPolicy,
     IServiceIdentityProvider identityProvider)
     : base(unitOfWork, workflowInstanceService, templateProvider, log, ModuleType.Arrest, authorizationPolicy, identityProvider)
 {
 }
 public AccountController(IWebSecurityService webSecurityService, IPersonService personService, IAccountService accountService, IEmailHelper emailHelper, IWorkflowInstanceService workflowInstanceService, IWorkflowService workflowService)
 {
     this.webSecurityService = webSecurityService;
     this.personService = personService;
     this.accountService = accountService;
     this.emailHelper = emailHelper;
     this.workflowInstanceService = workflowInstanceService;
     this.workflowService = workflowService;
     
     Boolean.TryParse(ConfigurationManager.AppSettings["RequireSignUpVerification"], out requireVerification);
 }
Beispiel #9
0
        public AccountController(IWebSecurityService webSecurityService, IPersonService personService, IAccountService accountService, IEmailHelper emailHelper, IWorkflowInstanceService workflowInstanceService, IWorkflowService workflowService)
        {
            this.webSecurityService      = webSecurityService;
            this.personService           = personService;
            this.accountService          = accountService;
            this.emailHelper             = emailHelper;
            this.workflowInstanceService = workflowInstanceService;
            this.workflowService         = workflowService;

            Boolean.TryParse(ConfigurationManager.AppSettings["RequireSignUpVerification"], out requireVerification);
        }
 public ReportWorkflowCommandService(
     IReportsUnitOfWork unitOfWork,
     IWorkflowInstanceService workflowInstanceService,
     NumberControlProcessor numberControlProcessor,
     ILog log,
     IServiceAuthorizationPolicy authorizationPolicy,
     IServiceIdentityProvider identityProvider)
     : base(unitOfWork, log, authorizationPolicy, identityProvider)
 {
     _workflowInstanceService = CheckDependency(workflowInstanceService, "workflowInstanceService");
     _numberControlProcessor  = CheckDependency(numberControlProcessor, "numberControlProcessor");
 }
Beispiel #11
0
 public WorkflowStartService(ILogger logger, IWorkflowInstanceService workflowInstanceService, IWorkflowArgumentMapper workflowArgumentMapper,
                             IWorkflowInstanceRoleService workflowInstanceRoleService, IWorkflowActivityService workflowActivityService,
                             ITopicService topicServiceBus, ICQRSMessageMapper mapper_eventServiceBusMessage,
                             IDataUnitOfWork unitOfWork, StorageDocument.IDocumentContext <ModelDocument.Document, ModelDocument.ArchiveDocument> documentService,
                             ICollaborationService collaborationService, ISecurity security, IParameterEnvService parameterEnvService, IFascicleRoleService fascicleRoleService,
                             IMessageService messageService, IDossierRoleService dossierRoleService, IQueueService queueService, IWordOpenXmlDocumentGenerator wordOpenXmlDocumentGenerator,
                             IMessageConfiguration messageConfiguration, IProtocolLogService protocolLogService, IPDFDocumentGenerator pdfDocumentGenerator,
                             IFascicleService fascicleService, IFascicleDocumentService fascicleDocumentService, IFascicleFolderService fascicleFolderService,
                             IFascicleDocumentUnitService fascDocumentUnitService, IFascicleLinkService fascicleLinkService)
     : base(logger, workflowInstanceService, workflowInstanceRoleService, workflowActivityService, topicServiceBus, mapper_eventServiceBusMessage,
            unitOfWork, documentService, collaborationService, security, parameterEnvService, fascicleRoleService, messageService, dossierRoleService, queueService,
            wordOpenXmlDocumentGenerator, messageConfiguration, protocolLogService, pdfDocumentGenerator, fascicleService, fascicleDocumentService, fascicleFolderService,
            fascDocumentUnitService, fascicleLinkService)
 {
     _unitOfWork = unitOfWork;
     _workflowInstanceService = workflowInstanceService;
     _workflowArgumentMapper  = workflowArgumentMapper;
     _documentService         = documentService;
 }
        protected ReportCommandServiceBase(
            IReportsUnitOfWork unitOfWork,
            IWorkflowInstanceService workflowInstanceService,
            ITemplateProvider templateProvider,
            ILog log,
            ModuleType reportModule,
            IServiceAuthorizationPolicy authorizationPolicy,
            IServiceIdentityProvider identityProvider)
            : base(unitOfWork, log, authorizationPolicy, identityProvider)
        {
            if (!reportModule.IsPublicSafetyRecord())
            {
                throw new ImplementationException(
                          "The [{0}] module does not support Reports.",
                          reportModule);
            }

            CheckDependency(templateProvider, "templateProvider");
            CheckDependency(workflowInstanceService, "workflowInstanceService");

            TemplateProvider        = templateProvider;
            WorkflowInstanceService = workflowInstanceService;
            ReportModule            = reportModule;
        }
 public WorkflowInstanceController(IWorkflowInstanceService workflowInstanceService, IEmailHelper emailHelper)
 {
     this.workflowInstanceService = workflowInstanceService;
     this.emailHelper = emailHelper;
 }
Beispiel #14
0
 public NetModularWorkflowInstanceStrore(IMapper mapper, IWorkflowInstanceService workflowInstanceService)
 {
     _mapper = mapper;
     _workflowInstanceService = workflowInstanceService;
 }
Beispiel #15
0
 public WorkflowInstanceController(IWorkflowInstanceService workflowInstanceService, IEmailHelper emailHelper)
 {
     this.workflowInstanceService = workflowInstanceService;
     this.emailHelper             = emailHelper;
 }
 public static Task <WorkflowInstance?> GetByIdAsync(this IWorkflowInstanceService service, string workflowInstanceId) => service.GetByIdAsync(new GetWorkflowInstanceByIdRequest(workflowInstanceId));
 public static Task BulkRetryAsync(this IWorkflowInstanceService service, IEnumerable <string> workflowInstanceIds) => service.BulkRetryAsync(new BulkRetryWorkflowInstancesRequest(workflowInstanceIds));
 public static Task RetryAsync(this IWorkflowInstanceService service, string workflowInstanceId) => service.RetryAsync(new RetryWorkflowRequest(workflowInstanceId));
 public static Task DeleteAsync(this IWorkflowInstanceService service, string workflowInstanceId) => service.DeleteAsync(new DeleteWorkflowRequest(workflowInstanceId));