ScriptTask scriptTask = (ScriptTask) flowElement;
propertiesNode.put(PROPERTY_SCRIPT_TEXT, scriptTask.getScript());
}
protected FlowElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) {
ScriptTask task = Bpmn2Factory.eINSTANCE.createScriptTask();// ScriptTask();
//String scriptFormat = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getScriptLanguageConfig().getSelected();
String scriptFormat = "Groovy";
task.setScriptFormat(scriptFormat);
BpmnModelUtil.addExtensionAttribute(task, FixFlowPackage.Literals.DOCUMENT_ROOT__SCRIPT_NAME, getPropertyValueAsString(PROPERTY_SCRIPT_TEXT, elementNode));
task.setScript(getPropertyValueAsString(PROPERTY_SCRIPT_TEXT, elementNode));
return task;
}