Expression
Use Javascript expressions to define custom filters
Objective
Enable developers the flexibility to define filtering logic using Javascript.
This is ideal when there is a need to fine tune the filtering process to the needs of the use case.
Example
This will provide all IBM
events to the next processors.
Top level StreamEvent attributes are not available within the scripting processing context.
Attributes schema
Attributes | Description | Data Type | Required |
---|---|---|---|
expression | A valid Javascript expression that returns a boolean value | String |
Last updated