public void Init()
 {
     _mocks          = new MockRepository();
     _wr             = new WorkflowRepository(new MemoryWorkItemRepository(), new MemoryWorkStepRepository());
     _timeSourceStub = _mocks.Stub <ITimeSource>();
     _mover          = new WorkStepMover(_wr, _timeSourceStub);
 }
 public void Init()
 {
     _mocks = new MockRepository();
     _wr = new WorkflowRepository(new MemoryWorkItemRepository(), new MemoryWorkStepRepository());
     _timeSourceStub = _mocks.Stub<ITimeSource>();
     _mover = new WorkStepMover(_wr,_timeSourceStub);
 }
Exemplo n.º 3
0
 public WorkflowEngine(IWorkflowRepository flowRepository, ISessionProvider sessionProvider, IWorkflowExecutionHelper executionHelper, IRuleEngine ruleEngine)
 {
     _flowRepository  = flowRepository;
     _sessionProvider = sessionProvider;
     _executionHelper = executionHelper;
     _ruleEngine      = ruleEngine;
 }
 // Constructor
 public DashboardsController(IWorktaskRepository worktaskRepository, ICategoryRepository catRepository, IAccountRepository accRepository, IWorkflowRepository wfRepository) : base()
 {
     this.repository    = worktaskRepository;
     this.catRepository = catRepository;
     this.accRepository = accRepository;
     this.wfRepository  = wfRepository;
 }
Exemplo n.º 5
0
 public WorkflowController(IWorkflowRepository workflowRepository, IWorkflowService workflowService, IServiceLogRepository log,
                           IPrivilegesRepository privilegesRepository) : base(log)
 {
     _workflowService    = workflowService;
     _workflowRepository = workflowRepository;
     _privilegesManager  = new PrivilegesManager(privilegesRepository);
 }
Exemplo n.º 6
0
 public SeederDependencies(
     IClientRepository clientRepository,
     IUserRepository userRepository,
     IProjectRepository projectRepository,
     IWorkflowRepository workflowRepository,
     IWorkflowStepRepository workflowStepRepository,
     IWorkflowStepItemRepository workflowStepItemRepository,
     IFileReader fileReader,
     IJsonHelper jsonHelper,
     IOptions <AppSettings> appSettings,
     ILoggerFactory loggerFactory,
     UserManager <User> userManager
     )
 {
     this.clientRepository           = clientRepository;
     this.userRepository             = userRepository;
     this.projectRepository          = projectRepository;
     this.workflowRepository         = workflowRepository;
     this.workflowStepRepository     = workflowStepRepository;
     this.workflowStepItemRepository = workflowStepItemRepository;
     this.fileReader  = fileReader;
     this.jsonHelper  = jsonHelper;
     this.appSettings = appSettings.Value;
     this.logger      = loggerFactory.CreateLogger <Seeder>();;
     this.userManager = userManager;
 }
Exemplo n.º 7
0
 public OffhireFactory(
     IEntityConfigurator<Offhire> offhireConfigurator,
     IWorkflowRepository workflowRepository,
     IOffhireDomainService offhireDomainService,
     IVesselInCompanyDomainService vesselDomainService,
     ICompanyDomainService companyDomainService,
     ITankDomainService tankDomainService,
     ICurrencyDomainService currencyDomainService,
     IGoodDomainService goodDomainService,
     IGoodUnitDomainService goodUnitDomainService,
     IOffhireManagementSystemDomainService offhireManagementSystemDomainService,
     IVoyageDomainService voyageDomainService,
     IActivityLocationDomainService activityLocationDomainService)
 {
     this.offhireConfigurator = offhireConfigurator;
     this.workflowRepository = workflowRepository;
     this.offhireDomainService = offhireDomainService;
     this.vesselDomainService = vesselDomainService;
     this.companyDomainService = companyDomainService;
     this.tankDomainService = tankDomainService;
     this.currencyDomainService = currencyDomainService;
     this.goodDomainService = goodDomainService;
     this.goodUnitDomainService = goodUnitDomainService;
     this.offhireManagementSystemDomainService = offhireManagementSystemDomainService;
     this.voyageDomainService = voyageDomainService;
     this.activityLocationDomainService = activityLocationDomainService;
 }
Exemplo n.º 8
0
 public WorkflowManager()
 {
     _dataProvider            = DataProvider.Instance();
     _workflowRepository      = WorkflowRepository.Instance;
     _workflowStateRepository = WorkflowStateRepository.Instance;
     _systemWorkflowManager   = SystemWorkflowManager.Instance;
 }
Exemplo n.º 9
0
 public WorkflowStepper(IEmailSender emailSender,
                        IAlertRegistry registry,
                        IWorkflowRepository repository)
 {
     _emailSender = emailSender;
     _registry    = registry;
     _repository  = repository;
 }
Exemplo n.º 10
0
 // Constructor
 public KanbanController(IBoardRepository boardRepository, IWorktaskRepository worktaskRepository, ICategoryRepository catRepository, IAccountRepository accRepository, IWorkflowRepository wfRepository) : base()
 {
     this.wRepository     = worktaskRepository;
     this.catRepository   = catRepository;
     this.accRepository   = accRepository;
     this.boardRepository = boardRepository;
     this.wfRepository    = wfRepository;
 }
Exemplo n.º 11
0
		public WorkflowStepper(IEmailSender emailSender,
		                       IAlertRegistry registry,
		                       IWorkflowRepository repository)
		{
			_emailSender = emailSender;
			_registry = registry;
			_repository = repository;
		}
Exemplo n.º 12
0
 public WorkflowServices(IWorkflowRepository workflowRepository)
 {
     if (workflowRepository == null)
     {
         throw new ArgumentNullException("WorkflowRepository");
     }
     _WorkflowRepository = workflowRepository;
 }
Exemplo n.º 13
0
 public AddUpdateWorkflowLevelStaffCommandHandler(ILoggerService loggerService, IWorkflowRepository repository,
                                                  UserManager <cor_useraccount> userManger, IHttpContextAccessor httpContextAccessor)
 {
     _logger              = loggerService;
     _repo                = repository;
     _userManger          = userManger;
     _httpContextAccessor = httpContextAccessor;
 }
 public GetAnApproverWorkflowTaskQueryHnadler(IWorkflowRepository workflowRepository, UserManager <cor_useraccount> userManager,
                                              IHttpContextAccessor httpContextAccessor, IAdminRepository adminRepository)
 {
     _accessor    = httpContextAccessor;
     _repo        = workflowRepository;
     _adminRepo   = adminRepository;
     _userManager = userManager;
 }
Exemplo n.º 15
0
 public FluxoTrabalhoModel(IWorkflowRepository workflowRepository,
                           ITarefaRepository tarefaRepository,
                           IHubContext <FluxoTrabalhoHub> hubContext)
 {
     _workflowRepository = workflowRepository;
     _tarefaRepository   = tarefaRepository;
     _hubContext         = hubContext;
 }
Exemplo n.º 16
0
 public ActivityController(ISubscriptionRepository subscriptionRepository, IWorkflowRepository persistenceStore, IDateTimeProvider dateTimeProvider, IDistributedLockProvider lockProvider, IQueueProvider queueProvider)
 {
     _persistenceStore       = persistenceStore;
     _subscriptionRepository = subscriptionRepository;
     _dateTimeProvider       = dateTimeProvider;
     _lockProvider           = lockProvider;
     _queueProvider          = queueProvider;
 }
Exemplo n.º 17
0
        public PollingService(IOptions <CloudFtpBridgeOptions> optionsAccessor, IFileManager fileManager, IMailSender mailSender, IWorkflowRepository workflowRepository)
        {
            _log = NullLogger.Instance;

            FileManager        = fileManager;
            MailSender         = mailSender;
            Options            = optionsAccessor.Value;
            WorkflowRepository = workflowRepository;
        }
Exemplo n.º 18
0
 public EventConsumer(IWorkflowRepository workflowRepository, ISubscriptionRepository subscriptionRepository, IEventRepository eventRepository, IQueueProvider queueProvider, ILoggerFactory loggerFactory, IServiceProvider serviceProvider, IWorkflowRegistry registry, IDistributedLockProvider lockProvider, WorkflowOptions options, IDateTimeProvider datetimeProvider)
     : base(queueProvider, loggerFactory, options)
 {
     _workflowRepository     = workflowRepository;
     _subscriptionRepository = subscriptionRepository;
     _eventRepository        = eventRepository;
     _lockProvider           = lockProvider;
     _datetimeProvider       = datetimeProvider;
 }
Exemplo n.º 19
0
 public VendingService(
     IProductRepository productRepository,
     ICashRegister cashRegister,
     IWorkflowRepository workflowRepository)
 {
     _productRepository  = productRepository;
     _cashRegister       = cashRegister;
     _workflowRepository = workflowRepository;
 }
 public WorkflowService(IWorkflowRepository wfRepository)
 {
     this.workflowRepository = wfRepository;
     stateList = new Dictionary <int, IEnumerable <SelectListItem> >();
     if (_instance == null)
     {
         _instance = this;
     }
 }
Exemplo n.º 21
0
        public static void DeleteWorkStepsRecursively(this IWorkflowRepository repository, WorkStep step)
        {
            foreach (var workStep in repository.GetChildWorkSteps(step.Path))
            {
                DeleteWorkStepsRecursively(repository, workStep);
            }

            repository.DeleteWorkStep(step.Path);
        }
        public WorkflowGridControl(IFormFactory formFactory, IServerRepository serverRepository, IWorkflowRepository workflowRepository)
        {
            FormFactory        = formFactory;
            ServerRepository   = serverRepository;
            WorkflowRepository = workflowRepository;

            InitializeComponent();
            RefreshWorkflows();
        }
Exemplo n.º 23
0
 public UploadWorkflowLevelCommandHandler(
     IWorkflowRepository workflowRepository,
     IHttpContextAccessor httpContextAccessor,
     ICommonRepository commonRepository)
 {
     _repo       = workflowRepository;
     _commonRepo = commonRepository;
     _accessor   = httpContextAccessor;
 }
 public DownloadWorkflowStaffQueryHandler
     (IWorkflowRepository workflowRepository,
     IAdminRepository admin,
     ICompanyRepository company)
 {
     _admin   = admin;
     _company = company;
     _repo    = workflowRepository;
 }
Exemplo n.º 25
0
        public OrderFactory(IOrderCodeGenerator iOrderCodeGenerator,
                            IEntityConfigurator<Order> orderConfigurator,
            IWorkflowRepository workflowRepository

            )
        {
            _iOrderCodeGenerator = iOrderCodeGenerator;
            _orderConfigurator = orderConfigurator;
            _workflowRepository = workflowRepository;
        }
 public WorkflowServiceController(IMapper mapper,
                                  IWorkflowRepository workflowRepository,
                                  IGenericRepository <WorkflowUser> workflowUserRepository)
 {
     _mapper                            = mapper;
     _workflowRepository                = workflowRepository;
     _workflowRepository.ModelState     = ModelState;
     _workflowUserRepository            = workflowUserRepository;
     _workflowUserRepository.ModelState = ModelState;
 }
Exemplo n.º 27
0
 public Worker(
     IWorkflowRepository workflowRepository,
     WorkflowRunner workflowRunner,
     IOptionsMonitor <CoreOptions> coreOptions,
     ILogger <Worker> logger)
 {
     _workflowRepository = workflowRepository;
     _workflowRunner     = workflowRunner;
     _coreOptions        = coreOptions;
     _logger             = logger;
 }
 public CharterInApplicationService(ICharterInRepository charterInRepository,
     ICharterInToDtoMapper charterInToDtoMapper, IUnitOfWorkScope unitOfWorkScope,
     IWorkflowRepository workflowRepository, ICharterOutDomainService charterOutDomainService,
     ICharterInDomainService charterInDomainService, IEventPublisher eventPublisher, IVesselInCompanyDomainService vesselInCompanyDomainService, IInventoryOperationNotifier inventoryOperationNotifier)
 {
     this._charterInRepository = charterInRepository;
     this._charterInToDtoMapper = charterInToDtoMapper;
     this._unitOfWorkScope = unitOfWorkScope;
     _charterFactory = new CharterFactory(workflowRepository,
              charterInDomainService, charterOutDomainService, eventPublisher, vesselInCompanyDomainService, inventoryOperationNotifier);
 }
Exemplo n.º 29
0
 public WorkflowDataValidator(
     IWorkflowRepository workflowRepository,
     IUsersRepository userRepository,
     IProjectMetaRepository projectMetaRepository,
     IPropertyValueValidatorFactory propertyValueValidatorFactory)
 {
     _workflowRepository            = workflowRepository;
     _userRepository                = userRepository;
     _projectMetaRepository         = projectMetaRepository;
     _propertyValueValidatorFactory = propertyValueValidatorFactory;
 }
Exemplo n.º 30
0
 public DownloadCompanyStructureQueryHandler
     (IWorkflowRepository workflowRepository,
     IAdminRepository admin,
     ICompanyRepository company,
     DataContext dataContext)
 {
     _admin       = admin;
     _company     = company;
     _dataContext = dataContext;
     _repo        = workflowRepository;
 }
Exemplo n.º 31
0
 public CanModifyQueryHandler(
     IWorkflowRepository workflowRepository,
     UserManager <cor_useraccount> userManager,
     IHttpContextAccessor httpContextAccessor,
     IAdminRepository adminRepository)
 {
     _repo        = workflowRepository;
     _userManager = userManager;
     _adminRepo   = adminRepository;
     _accessor    = httpContextAccessor;
 }
Exemplo n.º 32
0
 public WorkflowService(
     IWorkflowRepository repository,
     IWorkflowDefinitionProvider workflowDefinitionProvider,
     IUserWorkflowMappingService userWorkflowMappingService,
     IWorkflowDefinitionDtoCreator dtoCreator
     )
 {
     this.repository = repository ?? throw new ArgumentNullException(nameof(repository));
     this.workflowDefinitionProvider = workflowDefinitionProvider;
     this.userWorkflowMappingService = userWorkflowMappingService;
     this.viewModelCreator           = dtoCreator;
 }
Exemplo n.º 33
0
 public WorkflowEngineService(
     IWorkflowRepository repository,
     ILogger <WorkflowEngineService> logger,
     IWorkflowDefinitionProvider workflowDefinitionProvider,
     IUserContextService userContext
     )
 {
     this.repository = repository ?? throw new ArgumentNullException(nameof(repository));
     this.logger     = logger;
     this.workflowDefinitionProvider = workflowDefinitionProvider;
     this.userContext = userContext;
 }
Exemplo n.º 34
0
 public AlterarModel(ITarefaRepository tarefaRepository,
                     IRepository <ProjetoModel> projetoRepository,
                     IRepository <SistemaModel> sistemaRepository,
                     IWorkflowRepository workflowRepository,
                     IRepository <TipoTarefaModel> tipoTarefaRepository)
 {
     _tarefaRepository     = tarefaRepository;
     _projetoRepository    = projetoRepository;
     _sistemaRepository    = sistemaRepository;
     _workflowRepository   = workflowRepository;
     _tipoTarefaRepository = tipoTarefaRepository;
 }
Exemplo n.º 35
0
 public CharterFactory(IWorkflowRepository workflowRepository,
     ICharterInDomainService charterInDomainService,
     ICharterOutDomainService charterOutDomainService,
     IEventPublisher eventPublisher, IVesselInCompanyDomainService vesselInCompanyDomainService, IInventoryOperationNotifier inventoryOperationNotifier)
 {
     _workflowRepository = workflowRepository;
     _charterInDomainService = charterInDomainService;
     _charterOutDomainService = charterOutDomainService;
     _eventPublisher = eventPublisher;
     this.vesselInCompanyDomainService = vesselInCompanyDomainService;
     this.inventoryOperationNotifier = inventoryOperationNotifier;
 }
        public WorkflowDetailForm(IServerRepository serverRepository, IWorkflowRepository workflowRepository)
        {
            ServerRepository   = serverRepository;
            WorkflowRepository = workflowRepository;

            InitializeComponent();

            _directionComboBox.Items.AddRange(new string[] { "Inbound", "Outbound" });
            _serverComboBox.DisplayMember = "Name";

            LoadServers();
        }
Exemplo n.º 37
0
        public WebRouter(IWorkflowRepository workflowRepository, string webDirectory, string logFilePath)
        {
            _rootFileDirectory = webDirectory;

            IWorkflow workflow = new Workflow(workflowRepository);
            if (!string.IsNullOrEmpty(logFilePath))
            {
                var logger = new FileWorkflowLog(logFilePath);
                workflow = new WorkflowLogger(logger, workflow);
            }

            var rendererFactory = new HtmlWorkStepRendererFactory(workflow);
            _workflowHandler = new WorkflowHttpHandler(workflow, rendererFactory);
        }
Exemplo n.º 38
0
 public InvoiceFactory(
                     IEntityConfigurator<Invoice> invoiceConfigurator,
     IWorkflowRepository workflowRepository,
     IInvoiceDomainService invoiceDomainService,
     IInvoiceItemDomainService invoiceItemDomainService, IGoodUnitConvertorDomainService goodUnitConvertorDomainService,
     IInvoiceAdditionalPriceDomainService invoiceAdditionalPriceDomainService, IBalanceDomainService balanceDomainService)
 {
     this.invoiceConfigurator = invoiceConfigurator;
     this.workflowRepository = workflowRepository;
     this.invoiceDomainService = invoiceDomainService;
     this.invoiceItemDomainService = invoiceItemDomainService;
     this.goodUnitConvertorDomainService = goodUnitConvertorDomainService;
     this.invoiceAdditionalPriceDomainService = invoiceAdditionalPriceDomainService;
     this.balanceDomainService = balanceDomainService;
 }
 public ApproveFlowApplicationService(IUnitOfWorkScope unitOfWorkScope, IWorkflowLogRepository workflowLogRepository,
                                      IWorkflowRepository workflowRepository,
     IEntityConfigurator<Order> orderConfigurator,
     IEntityConfigurator<FuelReport> fuelReportConfigurator,
     IEntityConfigurator<Scrap> scrapConfigurator,
     IEntityConfigurator<Charter> charterConfigurator,
     IEntityConfigurator<Invoice> invoiceConfigurator, IEntityConfigurator<Offhire> offhireConfigurator)
 {
     _unitOfWorkScope = unitOfWorkScope;
     _workflowLogRepository = workflowLogRepository;
     _workflowRepository = workflowRepository;
     this.orderConfigurator = orderConfigurator;
     this.fuelReportConfigurator = fuelReportConfigurator;
     this.scrapConfigurator = scrapConfigurator;
     this.invoiceConfigurator = invoiceConfigurator;
     this.offhireConfigurator = offhireConfigurator;
     this._charterConfigurator = charterConfigurator;
     //          _approveWorkFlowFactory = approveWorkFlowFactory;
     //           _orderApplicationService = orderApplicationService;
 }
Exemplo n.º 40
0
 //private readonly IOffhireDomainService offhireDomainService;
 //private readonly IVesselInCompanyDomainService vesselDomainService;
 //private readonly ICompanyDomainService companyDomainService;
 //private readonly ITankDomainService tankDomainService;
 //private readonly ICurrencyDomainService currencyDomainService;
 //private readonly IGoodDomainService goodDomainService;
 //private readonly IGoodUnitDomainService goodUnitDomainService;
 //private readonly IOffhireManagementSystemDomainService offhireManagementSystemDomainService;
 //private readonly IVoyageDomainService voyageDomainService;
 //private readonly IActivityLocationDomainService activityLocationDomainService;
 public FuelReportFactory(
     IEntityConfigurator<FuelReport> fuelReportConfigurator,
     IWorkflowRepository workflowRepository, 
     IVesselInCompanyRepository vesselInCompanyRepository /*,
     IOffhireDomainService offhireDomainService,
     IVesselInCompanyDomainService vesselDomainService,
     ICompanyDomainService companyDomainService,
     ITankDomainService tankDomainService,
     ICurrencyDomainService currencyDomainService,
     IGoodDomainService goodDomainService,
     IGoodUnitDomainService goodUnitDomainService,
     IOffhireManagementSystemDomainService offhireManagementSystemDomainService,
     IVoyageDomainService voyageDomainService,
     IActivityLocationDomainService activityLocationDomainService*/)
 {
     this.fuelReportConfigurator = fuelReportConfigurator;
     this.workflowRepository = workflowRepository;
     //this.vesselInInventoryRepository = vesselInInventoryRepository;
     this.vesselInCompanyRepository = vesselInCompanyRepository;
 }
Exemplo n.º 41
0
 public ScrapFactory(
     IEntityConfigurator<Scrap> scrapConfigurator,
     IWorkflowRepository workflowRepository,
     IScrapDomainService scrapDomainService,
     IVesselInCompanyDomainService vesselDomainService,
     ICompanyDomainService companyDomainService,
     ITankDomainService tankDomainService,
     ICurrencyDomainService currencyDomainService,
     IGoodDomainService goodDomainService,
     IGoodUnitDomainService goodUnitDomainService)
 {
     this.scrapConfigurator = scrapConfigurator;
     this.workflowRepository = workflowRepository;
     this.vesselDomainService = vesselDomainService;
     this.companyDomainService = companyDomainService;
     this.tankDomainService = tankDomainService;
     this.currencyDomainService = currencyDomainService;
     this.goodDomainService = goodDomainService;
     this.goodUnitDomainService = goodUnitDomainService;
     this.scrapDomainService = scrapDomainService;
 }
Exemplo n.º 42
0
 public WorkStepUpdater(IWorkflowRepository workflowRepository)
     : base(workflowRepository)
 {
 }
Exemplo n.º 43
0
 public WorkStepCreator(IWorkflowRepository workflowRepository)
     : base(workflowRepository)
 {
 }
Exemplo n.º 44
0
 public WorkflowService(IUnitOfWork unitOfWork, IWorkflowRepository workflowRepository, IEmailHelper emailHelper)
 {
     this.unitOfWork = unitOfWork;
     this.workflowRepository = workflowRepository;
     this.emailHelper = emailHelper;
 }
Exemplo n.º 45
0
 public WorkItemCreator(IWorkflowRepository workflowRepository, ITimeSource timeSource)
     : base(workflowRepository)
 {
     _timeSource = timeSource;
 }
Exemplo n.º 46
0
 public Workflow(IWorkflowRepository workflowRepository)
     : base(workflowRepository)
 {
     TimeSource = new DefaultTimeSource();
 }
Exemplo n.º 47
0
 public WorkItemRemover(IWorkflowRepository workflow)
     : base(workflow)
 {
 }
Exemplo n.º 48
0
 public WorkflowService(IWorkflowRepository workflowRepository)
 {
     this.workflowRepository = workflowRepository;
 }
Exemplo n.º 49
0
 public WorkStepMover(IWorkflowRepository workflowRepository, ITimeSource timeSource)
 {
     _workflowRepository = workflowRepository;
     _timeSource = timeSource;
 }
Exemplo n.º 50
0
 public WorkflowRepositoryInteraction(IWorkflowRepository workflowRepository)
 {
     WorkflowRepository = workflowRepository;
 }
Exemplo n.º 51
0
 public WorkItemMover(IWorkflowRepository workflowRepository)
     : this(workflowRepository,new DefaultTimeSource())
 {
 }
Exemplo n.º 52
0
 public WorkItemMover(IWorkflowRepository workflowRepository, ITimeSource timeSource)
     : base(workflowRepository)
 {
     _timeSource = timeSource;
     WipLimitChecker = new WipLimitChecker(workflowRepository);
 }
 public ParallelStepHelper(IWorkflowRepository repository)
 {
     _workflowRepository = repository;
 }