use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testMapEqualActivitiesWithBoundaryEvent.
@Test
public void testMapEqualActivitiesWithBoundaryEvent() {
BpmnModelInstance testProcess = modify(ProcessModels.SUBPROCESS_PROCESS).activityBuilder("subProcess").boundaryEvent("messageBoundary").message(MESSAGE_NAME).moveToActivity("userTask").boundaryEvent("signalBoundary").signal(SIGNAL_NAME).moveToActivity("userTask").boundaryEvent("timerBoundary").timerWithDate(TIMER_DATE).done();
assertGeneratedMigrationPlan(testProcess, testProcess).hasInstructions(migrate("subProcess").to("subProcess"), migrate("messageBoundary").to("messageBoundary"), migrate("userTask").to("userTask"), migrate("signalBoundary").to("signalBoundary"), migrate("timerBoundary").to("timerBoundary"));
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testMapEqualActivitiesToNewScopes.
@Test
public void testMapEqualActivitiesToNewScopes() {
BpmnModelInstance sourceProcess = ProcessModels.DOUBLE_SUBPROCESS_PROCESS;
BpmnModelInstance targetProcess = modify(ProcessModels.DOUBLE_SUBPROCESS_PROCESS).changeElementId("outerSubProcess", "newOuterSubProcess").changeElementId("innerSubProcess", "newInnerSubProcess");
assertGeneratedMigrationPlan(sourceProcess, targetProcess).hasEmptyInstructions();
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testMapEqualActivitiesToParentScope.
@Test
public void testMapEqualActivitiesToParentScope() {
BpmnModelInstance sourceProcess = modify(ProcessModels.DOUBLE_SUBPROCESS_PROCESS).changeElementId("outerSubProcess", "subProcess");
BpmnModelInstance targetProcess = ProcessModels.SUBPROCESS_PROCESS;
assertGeneratedMigrationPlan(sourceProcess, targetProcess).hasInstructions(migrate("subProcess").to("subProcess"));
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testMapConditionalBoundaryEvents.
@Test
public void testMapConditionalBoundaryEvents() {
BpmnModelInstance sourceProcess = modify(ProcessModels.ONE_TASK_PROCESS).activityBuilder(USER_TASK_ID).boundaryEvent(BOUNDARY_ID).condition(VAR_CONDITION).done();
assertGeneratedMigrationPlan(sourceProcess, sourceProcess, false).hasInstructions(migrate(BOUNDARY_ID).to(BOUNDARY_ID).updateEventTrigger(true), migrate(USER_TASK_ID).to(USER_TASK_ID).updateEventTrigger(false));
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MigrationPlanGenerationTest method testMapEqualUnsupportedAsyncBeforeActivities.
@Test
public void testMapEqualUnsupportedAsyncBeforeActivities() {
BpmnModelInstance testModel = modify(ProcessModels.UNSUPPORTED_ACTIVITIES).flowNodeBuilder("startEvent").camundaAsyncBefore().moveToNode("decisionTask").camundaAsyncBefore().moveToNode("throwEvent").camundaAsyncAfter().moveToNode("serviceTask").camundaAsyncBefore().moveToNode("sendTask").camundaAsyncBefore().moveToNode("scriptTask").camundaAsyncBefore().moveToNode("endEvent").camundaAsyncBefore().done();
assertGeneratedMigrationPlan(testModel, testModel).hasInstructions(migrate("startEvent").to("startEvent"), migrate("decisionTask").to("decisionTask"), migrate("throwEvent").to("throwEvent"), migrate("serviceTask").to("serviceTask"), migrate("sendTask").to("sendTask"), migrate("scriptTask").to("scriptTask"), migrate("endEvent").to("endEvent"));
}
Aggregations