public virtual void init()
        {
            externalTaskService = engineRule.ExternalTaskService;

            taskService = engineRule.TaskService;

            identityService = engineRule.IdentityService;

            testRule.DeployForTenant(TENANT_ONE, "resources/api/externaltask/twoExternalTaskProcess.bpmn20.xml");

            ProcessInstanceId = engineRule.RuntimeService.StartProcessInstanceByKey(PROCESS_DEFINITION_KEY).Id;
        }
Exemple #2
0
        public virtual void setUp()
        {
            repositoryService   = engineRule.RepositoryService;
            historyService      = engineRule.HistoryService;
            runtimeService      = engineRule.RuntimeService;
            identityService     = engineRule.IdentityService;
            externalTaskService = engineRule.ExternalTaskService;

            testRule.DeployForTenant(TENANT_ONE, ExternalTaskModels.ONE_EXTERNAL_TASK_PROCESS);
            testRule.DeployForTenant(TENANT_TWO, ExternalTaskModels.ONE_EXTERNAL_TASK_PROCESS);

            startProcessInstanceAndFailExternalTask(TENANT_ONE);
            startProcessInstanceFailAndCompleteExternalTask(TENANT_TWO);
        }
 protected internal virtual void ClearServiceReferences()
 {
     processEngineConfiguration = null;
     repositoryService          = null;
     runtimeService             = null;
     taskService          = null;
     formService          = null;
     historyService       = null;
     identityService      = null;
     managementService    = null;
     authorizationService = null;
     caseService          = null;
     filterService        = null;
     externalTaskService  = null;
     decisionService      = null;
 }
 protected internal virtual void InitializeServices()
 {
     processEngineConfiguration = ProcessEngine.ProcessEngineConfiguration as ProcessEngineConfigurationImpl;
     repositoryService          = ProcessEngine.RepositoryService;
     runtimeService             = ProcessEngine.RuntimeService;
     taskService          = ProcessEngine.TaskService;
     formService          = ProcessEngine.FormService;
     historyService       = ProcessEngine.HistoryService;
     identityService      = ProcessEngine.IdentityService;
     managementService    = ProcessEngine.ManagementService;
     authorizationService = ProcessEngine.AuthorizationService;
     caseService          = ProcessEngine.CaseService;
     filterService        = ProcessEngine.FilterService;
     externalTaskService  = ProcessEngine.ExternalTaskService;
     decisionService      = ProcessEngine.DecisionService;
 }
 //JAVA TO C# CONVERTER TODO Resources.Task: Most Java annotations will not have direct .NET equivalent attributes:
 //ORIGINAL LINE: @Before public void initServices()
 public virtual void initServices()
 {
     runtimeService      = engineRule.RuntimeService;
     externalTaskService = engineRule.ExternalTaskService;
     managementService   = engineRule.ManagementService;
 }
Exemple #6
0
 public virtual void ExecuteTask <T>(T taskResult, IExternalTaskService externalTaskService)
 {
     throw new NotImplementedException();
 }
 public TopicSubscription(TopicSubscriptionInfo topicSubscriptionInfo, IExternalTaskService externalTaskService)
 {
     _topicSubscriptionInfo = topicSubscriptionInfo;
     _externalTaskService   = externalTaskService;
 }