Skip to main content

Passing runtime parameters to script processors.

  • February 19, 2022
  • 0 replies
  • 215 views

AkshayJadhav
StreamSets Employee
Forum|alt.badge.img

Question:

Is it possible to pass runtime parameters defined in the pipeline configuration to the script body of a script processor?

 

Answer:

Yes, it is possible to pass in runtime parameters into the script body using special notation.

For JavaScript and Jython Evaluator processors:

record.value['field'] = ${runtime_param}

For Groovy processor:

record.value['field'] = sdcFunctions.pipelineParameters()['runtime_param']

 

Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply