Package com.redwood.scheduler.api.rtx
Interface RTXRowRELScript<T>
-
- Type Parameters:
T
- return type
public interface RTXRowRELScript<T>
Compiled REL script for execution on an RTX Row.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
call(RTXRow row, SchedulerSession session)
Call the script.T
call(RTXRow row, SchedulerSession session, Map<String,Object> parameters)
Call the script.
-
-
-
Method Detail
-
call
T call(RTXRow row, SchedulerSession session) 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, SchedulerSession, 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.namesession
- the session for any REL or REL Entry Points.- Returns:
- the result of the expression.
- Throws:
Exception
- if an error occurs during evaluation.
-
call
T call(RTXRow row, SchedulerSession session, Map<String,Object> parameters) throws Exception
Call the script. When running from within a job,call(RTXRow, SchedulerSession)
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.namesession
- the session for any REL or REL Entry Points.parameters
-- Returns:
- the result of the expression.
- Throws:
Exception
- if an error occurs during evaluation.
-
-