@Test public void testMultiInstanceLoopCharacteristicsSequential() { modelInstance = Bpmn.createProcess() .startEvent() .userTask("task") .multiInstance() .sequential() .cardinality("card") .completionCondition("compl") .multiInstanceDone() .endEvent() .done(); final UserTask userTask = modelInstance.getModelElementById("task"); final Collection<MultiInstanceLoopCharacteristics> miCharacteristics = userTask.getChildElementsByType(MultiInstanceLoopCharacteristics.class); assertThat(miCharacteristics).hasSize(1); final MultiInstanceLoopCharacteristics miCharacteristic = miCharacteristics.iterator().next(); assertThat(miCharacteristic.isSequential()).isTrue(); assertThat(miCharacteristic.getLoopCardinality().getTextContent()).isEqualTo("card"); assertThat(miCharacteristic.getCompletionCondition().getTextContent()).isEqualTo("compl"); }
public StartEventBuilder startEvent() { return startEvent(null); }
ProcessBuilder extends AbstractProcessBuilder<ProcessBuilder> { public StartEventBuilder startEvent() { return startEvent(null); } }
ProcessBuilder extends AbstractProcessBuilder<ProcessBuilder> { public StartEventBuilder startEvent() { return startEvent(null); } ProcessBuilder(final BpmnModelInstance modelInstance, final Process process); }
ProcessBuilder extends AbstractProcessBuilder<ProcessBuilder> { public StartEventBuilder startEvent() { return startEvent(null); } ProcessBuilder(final BpmnModelInstance modelInstance, final Process process); StartEventBuilder startEvent(); StartEventBuilder startEvent(final String id); EventSubProcessBuilder eventSubProcess(); EventSubProcessBuilder eventSubProcess(final String id); ProcessBuilder eventSubProcess(
      final String id, final Consumer<EventSubProcessBuilder> consumer); }
ProcessBuilder extends AbstractProcessBuilder<ProcessBuilder> { public StartEventBuilder startEvent() { return startEvent(null); } ProcessBuilder(final BpmnModelInstance modelInstance, final Process process); StartEventBuilder startEvent(); StartEventBuilder startEvent(final String id); EventSubProcessBuilder eventSubProcess(); EventSubProcessBuilder eventSubProcess(final String id); ProcessBuilder eventSubProcess(
      final String id, final Consumer<EventSubProcessBuilder> consumer);  }