@Test public void testCallActivityCamundaExtension() { modelInstance = Bpmn.createProcess() .startEvent() .callActivity(CALL_ACTIVITY_ID) .calledElement(TEST_STRING_API) .camundaAsyncBefore() .camundaCalledElementBinding("version") .camundaCalledElementVersion("1.0") .camundaCalledElementVersionTag("ver-1.0") .camundaCalledElementTenantId("t1") .camundaCaseRef("case") .camundaCaseBinding("deployment") .camundaCaseVersion("2") .camundaCaseTenantId("t2") .camundaIn("in-source", "in-target") .camundaOut("out-source", "out-target") .camundaVariableMappingClass(TEST_CLASS_API) .camundaVariableMappingDelegateExpression(TEST_DELEGATE_EXPRESSION_API) .notCamundaExclusive() .camundaFailedJobRetryTimeCycle(FAILED_JOB_RETRY_TIME_CYCLE) .endEvent() .done(); CallActivity callActivity = modelInstance.getModelElementById(CALL_ACTIVITY_ID); assertThat(callActivity.getCalledElement()).isEqualTo(TEST_STRING_API); assertThat(callActivity.isCamundaAsyncBefore()).isTrue(); assertThat(callActivity.getCamundaCalledElementBinding()).isEqualTo("version"); assertThat(callActivity.getCamundaCalledElementVersion()).isEqualTo("1.0"); assertThat(callActivity.getCamundaCalledElementVersionTag()).isEqualTo("ver-1.0"); assertThat(callActivity.getCamundaCalledElementTenantId()).isEqualTo("t1"); assertThat(callActivity.getCamundaCaseRef()).isEqualTo("case"); assertThat(callActivity.getCamundaCaseBinding()).isEqualTo("deployment"); assertThat(callActivity.getCamundaCaseVersion()).isEqualTo("2"); assertThat(callActivity.getCamundaCaseTenantId()).isEqualTo("t2"); assertThat(callActivity.isCamundaExclusive()).isFalse(); CamundaIn camundaIn = (CamundaIn) callActivity.getExtensionElements().getUniqueChildElementByType(CamundaIn.class); assertThat(camundaIn.getCamundaSource()).isEqualTo("in-source"); assertThat(camundaIn.getCamundaTarget()).isEqualTo("in-target"); CamundaOut camundaOut = (CamundaOut) callActivity.getExtensionElements().getUniqueChildElementByType(CamundaOut.class); assertThat(camundaOut.getCamundaSource()).isEqualTo("out-source"); assertThat(camundaOut.getCamundaTarget()).isEqualTo("out-target"); assertThat(callActivity.getCamundaVariableMappingClass()).isEqualTo(TEST_CLASS_API); assertThat(callActivity.getCamundaVariableMappingDelegateExpression()).isEqualTo(TEST_DELEGATE_EXPRESSION_API); assertCamundaFailedJobRetryTimeCycle(callActivity); }
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(BpmnModelInstance modelInstance, Process process); }
ProcessBuilder extends AbstractProcessBuilder<ProcessBuilder> { public StartEventBuilder startEvent() { return startEvent(null); } ProcessBuilder(BpmnModelInstance modelInstance, Process process); StartEventBuilder startEvent(); StartEventBuilder startEvent(String id); EventSubProcessBuilder eventSubProcess(); EventSubProcessBuilder eventSubProcess(String id); }
ProcessBuilder extends AbstractProcessBuilder<ProcessBuilder> { public StartEventBuilder startEvent() { return startEvent(null); } ProcessBuilder(BpmnModelInstance modelInstance, Process process); StartEventBuilder startEvent(); StartEventBuilder startEvent(String id); EventSubProcessBuilder eventSubProcess(); EventSubProcessBuilder eventSubProcess(String id);  }