use of com.infiniteautomation.mango.rest.latest.model.javascript.MangoJavaScriptResultModel in project ma-modules-public by infiniteautomation.
the class EventHandlersRestController method validateScript.
private MangoJavaScriptResultModel validateScript(MangoJavaScriptModel model, String noChangeTranslationKey) {
// Set to potentially return a String
model.setResultDataType(DataType.NUMERIC.name());
MangoJavaScript jsVo = model.toVO();
jsVo.setWrapInFunction(true);
return new MangoJavaScriptResultModel(javaScriptService.testScript(jsVo, noChangeTranslationKey));
}
Aggregations