requestGeneratorScript

Runs a request generater script via JSR223. The event is put as "event" and the channel as "channel". The channel and event objects are a VelocityChannel and VelocityEvent, respectively, the same classes used in the templates for the printlineChannelProcess. The result is expected to be put as "request" by the script as a List or an array of RequestFilter objects. See the scripting tutorial for more information on inlining scripts into a SOD recipe.

Example

<requestGeneratorScript type="jython">
   from java.util import ArrayList
   from edu.iris.Fissures.IfSeismogramDC import RequestFilter
   from edu.iris.Fissures.model import TimeInterval, UnitImpl
   window = TimeInterval(5, UnitImpl.MINUTE)
   rf = RequestFilter(channel.id,
  event.preferred.fissuresTime,
  event.preferred.time.add(window).getFissuresTime())
   result = ArrayList()
   result.add(rf)
</requestGeneratorScript>

This consists of

<requestGeneratorScript>

An attribute named type with a value of Any Text Any text
</requestGeneratorScript>

Places this can be found

In requestGenerator there is a choice between all of the following