use of org.camunda.bpm.engine.test.api.runtime.migration.ModifiableBpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationHistoricProcessInstanceTest method initTest.
@Before
public void initTest() {
runtimeService = rule.getRuntimeService();
historyService = rule.getHistoryService();
sourceProcessDefinition = testHelper.deployAndGetDefinition(ProcessModels.ONE_TASK_PROCESS);
ModifiableBpmnModelInstance modifiedModel = modify(ProcessModels.ONE_TASK_PROCESS).changeElementId("Process", "Process2").changeElementId("userTask", "userTask2");
targetProcessDefinition = testHelper.deployAndGetDefinition(modifiedModel);
migrationPlan = runtimeService.createMigrationPlan(sourceProcessDefinition.getId(), targetProcessDefinition.getId()).mapActivities("userTask", "userTask2").build();
runtimeService.startProcessInstanceById(sourceProcessDefinition.getId());
}
Aggregations