Package com.redwood.agent.api.rtx
Interface RTXRowRELScript<T>
-
- Type Parameters:
T
- return type
public interface RTXRowRELScript<T>
Compiled REL script for execution on an RTX Row.
-
-
Method Detail
-
call
T call(RTXRow row) throws Exception
Call the script. This method can only be used from within a job, as it requires access to the jobContext. To run this script outside of a job, seecall(RTXRow, Map)
.If the method is called from a job that is within a chain, then the parameters of that chain will be available as chainParameters.name. The parameters of the job will be available as parameters.name.
- Parameters:
row
- the row to use, columns are available as columns.name- Returns:
- the result of the expression.
- Throws:
Exception
- if an error occurs during evaluation.
-
call
T call(RTXRow row, Map<String,Object> parameters) throws Exception
Call the script. When running from within a job,call(RTXRow)
should be preferred, as that sets up the parameters and chainParameters contexts correctly based on the context job.The values of the parameters map are available as parameters.key.
,- Parameters:
row
- the row to use, columns are available as columns.nameparameters
-- Returns:
- the result of the expression.
- Throws:
Exception
- if an error occurs during evaluation.
-
-