Modifier and Type | Field and Description |
---|---|
static String |
INPUT_VARIABLE_IDENTIFIER |
static String |
PROPERTIES_IDENTIFIER |
Constructor and Description |
---|
ScriptExecutor(ScriptExecutorType scriptExecutorType)
Create a script executor of the provided script executor type
|
Modifier and Type | Method and Description |
---|---|
Model |
execute(MappingResource mappingResource,
String inputVariable,
String properties)
Method to execute the mapping config in the
MappingResource on
input variable and returns the output model |
public static final String PROPERTIES_IDENTIFIER
public static final String INPUT_VARIABLE_IDENTIFIER
public ScriptExecutor(ScriptExecutorType scriptExecutorType)
scriptExecutorType
- public Model execute(MappingResource mappingResource, String inputVariable, String properties) throws JSException, SchemaException
Executor
MappingResource
on
input variable and returns the output modelexecute
in interface Executor
mappingResource
- mapping resource modelinputVariable
- input variableJSException
- if mapping throws an exceptionSchemaException
Copyright © 2021 WSO2. All rights reserved.