public class GroovyScriptModelStep extends ModelStep implements IModelStepContextAware
ModelStep.ParameterError
configureParameters, label
Constructor and Description |
---|
GroovyScriptModelStep() |
Modifier and Type | Method and Description |
---|---|
void |
applyConfig()
This method adapt parameters from the configuration, this method is
called after config parameters has been adjusted
usually this method modify the getInputParametersByRef and
getOutputParametersByRef return
|
void |
compileScript()
compile the script Content, and define the compiledScript member
|
void |
defineContext(java.util.Map<java.lang.String,java.lang.Object> context) |
boolean |
doesGroovyScriptIsSink() |
void |
evaluateScriptParameters() |
java.util.Map<AbstractParameter,java.lang.Object> |
execute(java.util.Map<AbstractParameter,java.lang.Object> inputValues)
Execute the step, for interpret engine
|
ModelParameter[] |
getAllParametersByRef()
Get the parameter list reference
|
java.lang.String |
getLabel() |
java.lang.String |
getName() |
java.lang.String |
getScriptContent() |
boolean |
isCompiled() |
void |
setScriptContent(java.lang.String scriptContent) |
filterParameters, findModelParameterRefByName, getConfigureParametersByRef, getId, getInputParametersByRef, getOutputParametersByRef, getParameterByName, getScheduleOrder, isConfigured, setId, setLabel, toString, validateConfigValues, validateParameterValues
public void defineContext(java.util.Map<java.lang.String,java.lang.Object> context)
defineContext
in interface IModelStepContextAware
public ModelParameter[] getAllParametersByRef()
ModelStep
getAllParametersByRef
in class ModelStep
public void applyConfig() throws java.lang.Exception
ModelStep
applyConfig
in class ModelStep
java.lang.Exception
public java.util.Map<AbstractParameter,java.lang.Object> execute(java.util.Map<AbstractParameter,java.lang.Object> inputValues) throws java.lang.Exception
ModelStep
public void setScriptContent(java.lang.String scriptContent)
public java.lang.String getScriptContent()
public boolean isCompiled()
public boolean doesGroovyScriptIsSink()
public void evaluateScriptParameters() throws java.lang.Exception
java.lang.Exception
public void compileScript() throws java.lang.Exception
java.lang.Exception