@Before public void deployProcessesAndCreateMigrationPlan() { ProcessDefinition sourceDefinition = testHelper.deployAndGetDefinition(ProcessModels.ONE_TASK_PROCESS); ProcessDefinition targetDefinition = testHelper.deployAndGetDefinition(ProcessModels.ONE_TASK_PROCESS); migrationPlan = engineRule .getRuntimeService() .createMigrationPlan(sourceDefinition.getId(), targetDefinition.getId()) .mapEqualActivities() .build(); ProcessInstance pi = engineRule.getRuntimeService().startProcessInstanceById(sourceDefinition.getId()); batch1 = engineRule .getRuntimeService() .newMigration(migrationPlan) .processInstanceIds(Arrays.asList(pi.getId())) .executeAsync(); batch2 = engineRule .getRuntimeService() .newMigration(migrationPlan) .processInstanceIds(Arrays.asList(pi.getId())) .executeAsync(); }
@Before public void setUp() { processEngineConfiguration = engineRule.getProcessEngineConfiguration(); identityService = engineRule.getIdentityService(); caseService = engineRule.getCaseService(); historyService = engineRule.getHistoryService(); testRule.deployForTenant(TENANT_ONE, CMMN_MODEL); caseInstanceId = createCaseInstance(null); caseExecutionId = getCaseExecution().getId(); }
@Before public void setUp() { decisionService = engineRule.getDecisionService(); repositoryService = engineRule.getRepositoryService(); historyService = engineRule.getHistoryService(); identityService = engineRule.getIdentityService(); testRule.deployForTenant(TENANT_ONE, DISH_DRG_DMN); decisionService .evaluateDecisionByKey(DISH_DECISION) .decisionDefinitionTenantId(TENANT_ONE) .variables( Variables.createVariables().putValue(TEMPERATURE, 21).putValue(DAY_TYPE, WEEKEND)) .evaluate(); }