Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Excerpt
hiddentrue

 invoked before a Subscription is activated by an Event Processor

Usage

Pre-Subscription plugins are invoked before a Subscription is activated by an Event Processor.  This is an opportunity to take any action on the Subscription, including but not limited to:

  • validation
  • logging
  • auditing
  • optimization
  • security filtering

Include Page
StopProcessing-CAN
StopProcessing-CAN

Invocation

Pre-Subscription plugins are invoked serially, prioritized by descending OSGi service ranking.  That is, the plugin with the highest service ranking will be executed first. 

The output of a Pre-Subscription plugin is sent to the next Pre-Subscription plugin, until all have executed and the create Subscription operation is sent to the Event Processor.

Examples

Include Page
ApplicationName
ApplicationName
 includes a Pre-Subscription Plugin example in the SDK that illustrates how to modify a subscription's filter. This example is located in the 
Include Page
ApplicationName
ApplicationName
 trunk at sdk/sample-plugins/ddf/sdk/plugin/presubscription.