private void validateModel(BpmnModel model) { FlowElement flowElement = model.getFlowElement("_5"); assertNotNull(flowElement); assertTrue(flowElement instanceof ScriptTask); assertEquals("_5", flowElement.getId()); ScriptTask scriptTask = (ScriptTask) flowElement; assertEquals("_5", scriptTask.getId()); assertEquals("Send Hello Message", scriptTask.getName()); }
public ScriptTaskActivityBehavior createScriptTaskActivityBehavior(ScriptTask scriptTask) { String language = scriptTask.getScriptFormat(); if (language == null) { language = ScriptingEngines.DEFAULT_SCRIPTING_LANGUAGE; } return new ScriptTaskActivityBehavior( scriptTask.getScript(), language, scriptTask.getResultVariable(), scriptTask.isAutoStoreVariables()); }