Example #1
0
        public void Config()
        {
            try
            {
                CodeSharp.Core.Configuration.ConfigWithEmbeddedXml(null
                                                                   , "application_config"
                                                                   , Assembly.GetExecutingAssembly()
                                                                   , "Taobao.Workflow.Activities.Test.ConfigFiles")
                .RenderProperties()
                .Castle(o => this.Resolve(o.Container));
                //设置容器
                Taobao.Activities.ActivityUtilities.Container(new Taobao.Workflow.Activities.Application.Container());
                Taobao.Activities.Hosting.WorkflowInstance.IsEnableDebug = false;
            }
            catch (InvalidOperationException e)
            {
                if (!e.Message.Contains("不可重复初始化配置"))
                {
                    Console.WriteLine(e.Message);
                }
            }

            this._log                = DependencyResolver.Resolve <ILoggerFactory>().Create(this.GetType());
            this._userService        = DependencyResolver.Resolve <IUserService>();
            this._processService     = DependencyResolver.Resolve <IProcessService>();
            this._processTypeService = DependencyResolver.Resolve <IProcessTypeService>();
            this._workItemService    = DependencyResolver.Resolve <IWorkItemService>();
            this._timeZoneService    = DependencyResolver.Resolve <ITimeZoneService>();
            this._resumptionService  = DependencyResolver.Resolve <ISchedulerService>();
            this._scheduler          = DependencyResolver.Resolve <IScheduler>();
            this._sessionManager     = DependencyResolver.Resolve <Castle.Facilities.NHibernateIntegration.ISessionManager>();
            this._managementApi      = DependencyResolver.Resolve <Taobao.Workflow.Activities.Management.ITFlowEngine>();
            this._clientApi          = DependencyResolver.Resolve <Taobao.Workflow.Activities.Client.ITFlowEngine>();
        }
Example #2
0
        public void Config()
        {
            try
            {
                CodeSharp.Core.Configuration.ConfigWithEmbeddedXml(null
                    , "application_config"
                    , Assembly.GetExecutingAssembly()
                    , "Taobao.Workflow.Activities.Test.ConfigFiles")
                    .RenderProperties()
                    .Castle(o => this.Resolve(o.Container));
                //设置容器
                Taobao.Activities.ActivityUtilities.Container(new Taobao.Workflow.Activities.Application.Container());
                Taobao.Activities.Hosting.WorkflowInstance.IsEnableDebug = false;
            }
            catch (InvalidOperationException e)
            {
                if (!e.Message.Contains("不可重复初始化配置"))
                    Console.WriteLine(e.Message);
            }

            this._log = DependencyResolver.Resolve<ILoggerFactory>().Create(this.GetType());
            this._userService = DependencyResolver.Resolve<IUserService>();
            this._processService = DependencyResolver.Resolve<IProcessService>();
            this._processTypeService = DependencyResolver.Resolve<IProcessTypeService>();
            this._workItemService = DependencyResolver.Resolve<IWorkItemService>();
            this._timeZoneService = DependencyResolver.Resolve<ITimeZoneService>();
            this._resumptionService = DependencyResolver.Resolve<ISchedulerService>();
            this._scheduler = DependencyResolver.Resolve<IScheduler>();
            this._sessionManager = DependencyResolver.Resolve<Castle.Facilities.NHibernateIntegration.ISessionManager>();
            this._managementApi = DependencyResolver.Resolve<Taobao.Workflow.Activities.Management.ITFlowEngine>();
            this._clientApi = DependencyResolver.Resolve<Taobao.Workflow.Activities.Client.ITFlowEngine>();
        }
Example #3
0
 public DefaultSubProcessHelper(IProcessService processService
                                , IProcessTypeService processTypeService
                                , IUserService userService
                                , string systemUserName)
 {
     this._processService     = processService;
     this._processTypeService = processTypeService;
     this._userService        = userService;
     this._sysUserName        = systemUserName;
 }
Example #4
0
 public EfProcessService(
     ApplicationDbContext context,
     IProcessTypeService processTypeService,
     ICountryService countryService,
     ApplicationUserManager userManager) : base(context)
 {
     this.ProcessTypeService = processTypeService;
     this.CountryService     = countryService;
     this.UserManager        = userManager;
 }
Example #5
0
 public ProcessController(
     IProcessTypeService processTypeService,
     IProcessService processService,
     ICountryService countryService,
     IMapper mapper)
 {
     this.ProcessTypeService = processTypeService;
     this.ProcessService     = processService;
     this.CountryService     = countryService;
     this.Mapper             = mapper;
 }
Example #6
0
 //private IEngineIntegrationService _integrationService;
 public SubProcessHelper(IProcessService processService
     , IProcessTypeService processTypeService
     , IUserService userService
     , string systemUserName)
     //, IEngineIntegrationService integrationService)
     : base(processService
     , processTypeService
     , userService
     , systemUserName)
 {
     //this._integrationService = integrationService;
 }
Example #7
0
 //private IEngineIntegrationService _integrationService;
 public SubProcessHelper(IProcessService processService
                         , IProcessTypeService processTypeService
                         , IUserService userService
                         , string systemUserName)
 //, IEngineIntegrationService integrationService)
     : base(processService
            , processTypeService
            , userService
            , systemUserName)
 {
     //this._integrationService = integrationService;
 }
 public ProcessTypeController(IApplicationUserService applicationUserService,
                              ICompanyService companyService,
                              IContactService contactService,
                              ILitigationService litigationService,
                              ILocationService locationService,
                              IProcessTypeService processTypeService)
 {
     this.applicationUserService = applicationUserService;
     this.companyService         = companyService;
     this.contactService         = contactService;
     this.litigationService      = litigationService;
     this.locationService        = locationService;
     this.processTypeService     = processTypeService;
 }
Example #9
0
 public TFlowEngine(ILoggerFactory factory
     , IUserService userService
     , IAgentService agentService
     , IWorkItemService workItemService
     , IProcessService processService
     , IProcessTypeService processTypeService
     , ITimeZoneService timeZoneService
     , IWorkflowParser workflowParser
     , IMethodInvoker invoker
     ,ISchedulerService schedulerService)
 {
     this._log = factory.Create(typeof(TFlowEngine));
     this._userService = userService;
     this._agentService = agentService;
     this._workItemService = workItemService;
     this._processService = processService;
     this._processTypeService = processTypeService;
     this._timeZoneService = timeZoneService;
     this._workflowParser = workflowParser;
     this._invoker = invoker;
     this._schedulerService = schedulerService;
 }
Example #10
0
 public TFlowEngine(ILoggerFactory factory
                    , IUserService userService
                    , IAgentService agentService
                    , IWorkItemService workItemService
                    , IProcessService processService
                    , IProcessTypeService processTypeService
                    , ITimeZoneService timeZoneService
                    , IWorkflowParser workflowParser
                    , IMethodInvoker invoker
                    , ISchedulerService schedulerService)
 {
     this._log                = factory.Create(typeof(TFlowEngine));
     this._userService        = userService;
     this._agentService       = agentService;
     this._workItemService    = workItemService;
     this._processService     = processService;
     this._processTypeService = processTypeService;
     this._timeZoneService    = timeZoneService;
     this._workflowParser     = workflowParser;
     this._invoker            = invoker;
     this._schedulerService   = schedulerService;
 }
 public DefaultSubProcessHelper(IProcessService processService
     , IProcessTypeService processTypeService
     , IUserService userService
     , string systemUserName)
 {
     this._processService = processService;
     this._processTypeService = processTypeService;
     this._userService = userService;
     this._sysUserName = systemUserName;
 }
Example #12
0
 public ProcessTypeController(IProcessTypeService processTypeService)
 {
     this.ProcessTypeService = processTypeService;
 }