Using Filters in Rules

Within an artifact based rule it is possible to specify a filter. This filter works in addition to the artifact type "built-in filter". In particular, only artifacts of the specified type that pass the filter is handled by the rule at execution time.

A filter is a Java class that must implement the IArtifactFilter interface specified in the Tigerstripe external api. This interface requires a single select(IArtifact artifact) method that returns true for artifacts that are handled and false for those that should be excluded.

If the filter imports any classes, these must either be defined in other files in the src directory of the plug-in project, or must be in JARs that are added to the plug-in project as a runtime dependency


© copyright 2005, 2006, 2007 Cisco Systems, Inc. - All rights reserved