@Test public void testIntermediateSignalThrowEventWithPayloadLocalVar() { modelInstance = Bpmn.createProcess() .startEvent() .intermediateThrowEvent("throw") .signalEventDefinition("signal") .camundaInSourceTarget("source", "target1") .camundaInSourceExpressionTarget("${'sourceExpression'}", "target2") .camundaInAllVariables("all", true) .camundaInBusinessKey("aBusinessKey") .throwEventDefinitionDone() .endEvent() .done(); assertSignalEventDefinition("throw", "signal"); SignalEventDefinition signalEventDefinition = assertAndGetSingleEventDefinition("throw", SignalEventDefinition.class); assertThat(signalEventDefinition.getSignal().getName()).isEqualTo("signal"); List<CamundaIn> camundaInParams = signalEventDefinition.getExtensionElements().getElementsQuery().filterByType(CamundaIn.class).list(); assertThat(camundaInParams.size()).isEqualTo(4); int paramCounter = 0; for (CamundaIn inParam : camundaInParams) { if (inParam.getCamundaVariables() != null) { assertThat(inParam.getCamundaVariables()).isEqualTo("all"); if (inParam.getCamundaLocal()) { paramCounter++; } } else if (inParam.getCamundaBusinessKey() != null) { assertThat(inParam.getCamundaBusinessKey()).isEqualTo("aBusinessKey"); paramCounter++; } else if (inParam.getCamundaSourceExpression() != null) { assertThat(inParam.getCamundaSourceExpression()).isEqualTo("${'sourceExpression'}"); assertThat(inParam.getCamundaTarget()).isEqualTo("target2"); paramCounter++; } else if (inParam.getCamundaSource() != null) { assertThat(inParam.getCamundaSource()).isEqualTo("source"); assertThat(inParam.getCamundaTarget()).isEqualTo("target1"); paramCounter++; } } assertThat(paramCounter).isEqualTo(camundaInParams.size()); }
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);  }