@Test public void testScriptText() { modelInstance = Bpmn.createProcess() .startEvent() .scriptTask("script") .scriptFormat("groovy") .scriptText("println \"hello, world\";") .endEvent() .done(); ScriptTask scriptTask = modelInstance.getModelElementById("script"); assertThat(scriptTask.getScriptFormat()).isEqualTo("groovy"); assertThat(scriptTask.getScript().getTextContent()).isEqualTo("println \"hello, world\";"); }
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);  }