channelScript

Runs a channel subsetter script via JSR223. The networkSource is put as "networkSource" and the channel as "channel". The channel object is a VelocityChannel, the same class used in the templates for the printlineChannelProcess. See the scripting tutorial for more information on inlining scripts into a SOD recipe.

Example

<channelScript type="jython">
    netCode = channel.getNetworkAttr().get_code()
    if netCode == 'IU' or netCode == 'II':
      print netCode
      result = True
    else:
      result = False
</channelScript>

This consists of

<channelScript>

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

Places this can be found

In channel there is a choice between all of the following