public BpmNetDefinitionService(
     IMemoryCache cache,
     IBpmNetStoreResolver storeResolver,
     IBpmNetSerializer serializer,
     ILogger <BpmNetDefinitionService <TDefinition, TProcess> > logger)
 {
     _cache           = cache;
     _definitionStore = storeResolver.GetDefinitionStore <TDefinition>();
     _processStore    = storeResolver.GetProcessStore <TProcess>();
     _serializer      = serializer;
     Logger           = logger;
 }
示例#2
0
        public ProcessFlowService(
            IMemoryCache cache,
            IBpmNetDefinitionService definitionService,
            IBpmNetSequenceFlowProcessService sequenceFlowProcessService,
            IBpmNetStartEventProcessService startEventProcessService,
            IBpmNetUserTaskProcessService userTaskProcessService,
            IBpmNetExclusiveGatewayProcessService exclusiveGatewayProcessService,
            IBpmNetInclusiveGatewayProcessService inclusiveGatewayProcessService,
            IBpmNetParallelGatewayProcessService parallelGatewayProcessService,
            IBpmNetServiceTaskProcessService serviceTaskProcessService,
            IBpmNetEndEventProcessService endEventProcessService,
            IBpmNetFlowElementProcessService flowElementProcessService,
            IBpmNetAdHocSubProcessService adHocSubProcessProcessService,
            IBpmNetBoundaryEventProcessService boundaryEventProcessService,
            IBpmNetBusinessRuleTaskProcessService businessRuleTaskProcessService,
            IBpmNetCallActivityProcessService callActivityProcessService,
            IBpmNetCallChoreographyProcessService callChoreographyProcessService,
            IBpmNetChoreographyTaskProcessService choreographyTaskProcessService,
            IBpmNetComplexGatewayProcessService complexGatewayProcessService,
            IBpmNetSendTaskProcessService sendTaskProcessService,
            IBpmNetManualTaskProcessService manualTaskProcessService,
            IBpmNetScriptTaskProcessService scriptTaskProcessService,
            IBpmNetSubProcessProcessService subProcessProcessService,
            IBpmNetTaskProcessService taskProcessService,
            IBpmNetReceiveTaskProcessService receiveTaskProcessService,
            IBpmNetDataObjectProcessService dataObjectProcessService,
            IBpmNetDataObjectReferenceProcessService dataObjectReferenceProcessService,
            IBpmNetDataStoreReferenceProcessService dataStoreReferenceProcessService,
            IBpmNetEventBasedGatewayProcessService eventBasedGatewayProcessService,
            IBpmNetImplicitThrowEventProcessService implicitThrowEventProcessService,
            IBpmNetIntermediateCatchEventProcessService intermediateCatchEventProcessService,
            IBpmNetIntermediateThrowEventProcessService intermediateThrowEventProcessService,
            IBpmNetSubChoreographyProcessService subChoreographyProcessService,
            IBpmNetEventProcessService eventProcessService,
            IBpmNetTransactionProcessService transactionProcessService,
            IBpmNetStoreResolver storeResolver)
        {
            _cache             = cache;
            _instanceStore     = storeResolver.GetProcessInstanceStore <TInstance, TInstanceFlow>();
            _definitionService = definitionService;
            _processStore      = storeResolver.GetProcessStore <TProcess>();

            _sequenceFlowProcessService           = sequenceFlowProcessService;
            _startEventProcessService             = startEventProcessService;
            _userTaskProcessService               = userTaskProcessService;
            _exclusiveGatewayProcessService       = exclusiveGatewayProcessService;
            _inclusiveGatewayProcessService       = inclusiveGatewayProcessService;
            _parallelGatewayProcessService        = parallelGatewayProcessService;
            _serviceTaskProcessService            = serviceTaskProcessService;
            _flowElementProcessService            = flowElementProcessService;
            _adHocSubProcessProcessService        = adHocSubProcessProcessService;
            _boundaryEventProcessService          = boundaryEventProcessService;
            _businessRuleTaskProcessService       = businessRuleTaskProcessService;
            _callActivityProcessService           = callActivityProcessService;
            _callChoreographyProcessService       = callChoreographyProcessService;
            _choreographyTaskProcessService       = choreographyTaskProcessService;
            _complexGatewayProcessService         = complexGatewayProcessService;
            _sendTaskProcessService               = sendTaskProcessService;
            _manualTaskProcessService             = manualTaskProcessService;
            _scriptTaskProcessService             = scriptTaskProcessService;
            _subProcessProcessService             = subProcessProcessService;
            _taskProcessService                   = taskProcessService;
            _receiveTaskProcessService            = receiveTaskProcessService;
            _dataObjectProcessService             = dataObjectProcessService;
            _dataObjectReferenceProcessService    = dataObjectReferenceProcessService;
            _dataStoreReferenceProcessService     = dataStoreReferenceProcessService;
            _eventBasedGatewayProcessService      = eventBasedGatewayProcessService;
            _endEventProcessService               = endEventProcessService;
            _implicitThrowEventProcessService     = implicitThrowEventProcessService;
            _intermediateCatchEventProcessService = intermediateCatchEventProcessService;
            _intermediateThrowEventProcessService = intermediateThrowEventProcessService;
            _subChoreographyProcessService        = subChoreographyProcessService;
            _eventProcessService                  = eventProcessService;
            _transactionProcessService            = transactionProcessService;
        }