use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testMapEqualActivitiesToSurroundingSubProcessScope.
@Test
public void testMapEqualActivitiesToSurroundingSubProcessScope() {
BpmnModelInstance sourceProcess = ProcessModels.SUBPROCESS_PROCESS;
BpmnModelInstance targetProcess = modify(ProcessModels.DOUBLE_SUBPROCESS_PROCESS).changeElementId("innerSubProcess", // make ID match with subprocess ID of source definition
"subProcess");
assertGeneratedMigrationPlan(sourceProcess, targetProcess).hasEmptyInstructions();
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testMapEqualActivitiesToSubProcessScope.
@Test
public void testMapEqualActivitiesToSubProcessScope() {
BpmnModelInstance sourceProcess = ProcessModels.ONE_TASK_PROCESS;
BpmnModelInstance targetProcess = ProcessModels.SUBPROCESS_PROCESS;
assertGeneratedMigrationPlan(sourceProcess, targetProcess).hasEmptyInstructions();
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testMapEqualActivitiesInProcessDefinitionScope.
@Test
public void testMapEqualActivitiesInProcessDefinitionScope() {
BpmnModelInstance sourceProcess = ProcessModels.ONE_TASK_PROCESS;
BpmnModelInstance targetProcess = ProcessModels.ONE_TASK_PROCESS;
assertGeneratedMigrationPlan(sourceProcess, targetProcess).hasInstructions(migrate("userTask").to("userTask"));
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testMapEqualActivitiesOutsideOfScope.
@Test
public void testMapEqualActivitiesOutsideOfScope() {
BpmnModelInstance sourceProcess = ProcessModels.PARALLEL_GATEWAY_SUBPROCESS_PROCESS;
BpmnModelInstance targetProcess = ProcessModels.PARALLEL_TASK_AND_SUBPROCESS_PROCESS;
assertGeneratedMigrationPlan(sourceProcess, targetProcess).hasInstructions(migrate("subProcess").to("subProcess"), migrate("userTask1").to("userTask1"));
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testNotMigrateBoundaryToParallelActivity.
@Test
public void testNotMigrateBoundaryToParallelActivity() {
BpmnModelInstance sourceProcess = modify(ProcessModels.PARALLEL_GATEWAY_PROCESS).activityBuilder("userTask1").boundaryEvent("message").message(MESSAGE_NAME).done();
BpmnModelInstance targetProcess = modify(ProcessModels.PARALLEL_GATEWAY_PROCESS).activityBuilder("userTask2").boundaryEvent("message").message(MESSAGE_NAME).done();
assertGeneratedMigrationPlan(sourceProcess, targetProcess).hasInstructions(migrate("userTask1").to("userTask1"), migrate("userTask2").to("userTask2"), migrate("fork").to("fork"));
}
Aggregations