/// <summary> /// Initialize helper /// </summary> static WorkflowApplicationHelper() { fileStructureService = CommonServiceLocator.ServiceLocator.Current.GetInstance <IFileStructureService>(); localizationService = CommonServiceLocator.ServiceLocator.Current.GetInstance <ILocalizationService>(); workflowOperationService = CommonServiceLocator.ServiceLocator.Current.GetInstance <IWorkflowOperationService>(); fileStructureDocumentPathService = CommonServiceLocator.ServiceLocator.Current.GetInstance <IFileStructureDocumentPathService>(); sessionService = CommonServiceLocator.ServiceLocator.Current.GetInstance <ISessionService>(); documentWorkflowOrganizationUnitAssignmentService = CommonServiceLocator.ServiceLocator.Current.GetInstance <IDocumentWorkflowOrganizationUnitAssignmentService>(); userService = CommonServiceLocator.ServiceLocator.Current.GetInstance <IUserService>(); configurationService = CommonServiceLocator.ServiceLocator.Current.GetInstance <IConfigurationService>(); forwardConfig = configurationService.GetValue <int>("ForwardOption", "Filestructure", ""); }
/// <summary> /// Constructor for dependency injection. /// </summary> /// <param name="fileStructureService"></param> /// <param name="documentWorkflowAppSettingsService"></param> /// <param name="documentWorkflowUserService"></param> /// <param name="fileStructureDocumentPathService"></param> /// <param name="documentWorkflowTrackerService"></param> /// <param name="documentWorkflowOrganizationUnitAssignmentService"></param> public WorkflowOperationService(IFileStructureService fileStructureService, IDocumentWorkflowAppSettingsService documentWorkflowAppSettingsService, IDocumentWorkflowUserService documentWorkflowUserService, IFileStructureDocumentPathService fileStructureDocumentPathService, IDocumentWorkflowTrackerService documentWorkflowTrackerService, IDocumentWorkflowOrganizationUnitAssignmentService documentWorkflowOrganizationUnitAssignmentService, IDocumentWorkflowConfigurationService documentWorkflowConfigurationService, IUnityContainer unityContainer, IDocumentWorkflowAssignmentService documentWorkflowAssignmentService, Flow.Event.IFlowEventService flowEventService) { this.fileStructureService = fileStructureService; this.documentWorkflowAppSettingsService = documentWorkflowAppSettingsService; this.documentWorkflowUserService = documentWorkflowUserService; this.fileStructureDocumentPathService = fileStructureDocumentPathService; this.documentWorkflowTrackerService = documentWorkflowTrackerService; this.documentWorkflowOrganizationUnitAssignmentService = documentWorkflowOrganizationUnitAssignmentService; this.unityContainer = unityContainer; this.documentWorkflowConfigurationService = documentWorkflowConfigurationService; this.documentWorkflowAssignmentService = documentWorkflowAssignmentService; this.flowEventService = flowEventService; }