Search in sources :

Example 1 with ModifiableBpmnModelInstance

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());
}
Also used : ModifiableBpmnModelInstance(org.camunda.bpm.engine.test.api.runtime.migration.ModifiableBpmnModelInstance) Before(org.junit.Before)

Aggregations

ModifiableBpmnModelInstance (org.camunda.bpm.engine.test.api.runtime.migration.ModifiableBpmnModelInstance)1 Before (org.junit.Before)1