use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testMapEqualActivitiesFromTripleScopeToTwoNewScopes.
@Test
public void testMapEqualActivitiesFromTripleScopeToTwoNewScopes() {
BpmnModelInstance sourceProcess = ProcessModels.TRIPLE_SUBPROCESS_PROCESS;
BpmnModelInstance targetProcess = ProcessModels.DOUBLE_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 testMapEqualActivitiesFromTaskWithBoundaryEvent.
@Test
public void testMapEqualActivitiesFromTaskWithBoundaryEvent() {
BpmnModelInstance sourceProcess = modify(ProcessModels.ONE_TASK_PROCESS).activityBuilder("userTask").boundaryEvent(null).message("Message").done();
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 testMapEqualActivitiesWithParallelMultiInstance.
@Test
public void testMapEqualActivitiesWithParallelMultiInstance() {
BpmnModelInstance testProcess = modify(ProcessModels.ONE_TASK_PROCESS).<UserTask>getModelElementById("userTask").builder().multiInstance().parallel().cardinality("3").multiInstanceDone().done();
assertGeneratedMigrationPlan(testProcess, testProcess).hasInstructions(migrate("userTask").to("userTask"), migrate("userTask#multiInstanceBody").to("userTask#multiInstanceBody"));
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testMapNoUpdateEventTriggers.
@Test
public void testMapNoUpdateEventTriggers() {
BpmnModelInstance model = MessageReceiveModels.ONE_MESSAGE_CATCH_PROCESS;
assertGeneratedMigrationPlan(model, model, false).hasInstructions(migrate("userTask").to("userTask").updateEventTrigger(false), migrate("messageCatch").to("messageCatch").updateEventTrigger(false));
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testMapEqualActivitiesToHorizontalScope.
@Test
public void testMapEqualActivitiesToHorizontalScope() {
BpmnModelInstance sourceProcess = ProcessModels.PARALLEL_TASK_AND_SUBPROCESS_PROCESS;
BpmnModelInstance targetProcess = ProcessModels.PARALLEL_GATEWAY_SUBPROCESS_PROCESS;
assertGeneratedMigrationPlan(sourceProcess, targetProcess).hasInstructions(migrate("subProcess").to("subProcess"), migrate("userTask1").to("userTask1"));
}
Aggregations