public class ScriptingOperations extends Object
| Constructor and Description |
|---|
ScriptingOperations() |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.operation.Result<Object,Object> |
execute(String code,
String engine,
Map<String,Object> parameters)
Run a script with provided code, according to the engine and passing parameters.
|
@Throws(value=ScriptingErrorTypeProvider.class) public org.mule.runtime.extension.api.runtime.operation.Result<Object,Object> execute(@Text String code, @OfValues(value=EnginesValueProvider.class) String engine, @Optional @NullSafe @Content Map<String,Object> parameters)
code - the script source code to be executedengine - name of the scripting engine for running ths scriptparameters - variables provided to the script as bindingsCopyright © 2017 MuleSoft, Inc.. All rights reserved.