### eventVectorScript

Runs a eventVector subsetter script via JSR223. The event is put as "event" and the channelGroup as "channelGroup". The channel and event objects are a VelocityChannelGroup and VelocityEvent, respectively, the same classes used in the templates for the printlineChannelProcess. See the scripting tutorial for more information on inlining scripts into a SOD recipe.

### Example

    <eventVectorScript type="jython">
        for channel in channelGroup.getChannels():
            if channel.getOrientationCode() == 'N' and abs(channel.getAzimuth()) > 5:
                # reject N channels that are more than 5 degrees from north
                result = util.fail('channel not really North'+channel.getAzimuth())
    </eventVectorScript>

### This consists of

<eventVectorScript>

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

### Places this can be found

In eventVector there is a choice between all of the following

- bestChannelAtStation
- ANDEventChannelWrapper
- OREventChannelWrapper
- eventVectorAND
- eventVectorOR
- eventVectorNOT
- eventVectorScript
- externalEventVectorSubsetter
- eventChannel