Basic Collection
The basic collection provides a wrapper around one or more filters. Within a collection are filters that may select or exclude objects within the repository. Filters act on previously selected objects within the collection. For example, if filter 1 includes objects A and B, then filter 2 excludes object B, then the collection contains only object A. However, if filter 1 excludes object B, then filter 2 includes objects A and B, then the collection contains both object A and B. This is because object B was not yet in the collection to exclude.
Common parameters used by one or more filters can be included as a collection parameter and then inherited by all of the filter parameters. Any collection based parameter may be overwritten by a filter based parameter.
Parameters may also be inherited from the referring task components. The best example is to set the repository in the task and let it be inherited by the filter rather than specifying the repository parameter in each filter.
Attributes
Attribute Name |
Description |
name |
Descriptive name of the collection. |
type |
“Basic” |
Contains Elements
-
Filter
Example
The following example defines collection of all released manuals.
<Collection name="ReleasedDocuments" type="Basic"> <Param name="containerName" value="Manuals"/> <Param name="containerType" value="wt.inf.library.WTLibrary"/> <Param name="objectType" value="com.company.DynamicDocument"/> <Filter name="IncludeReleased" type="StateFilter"> <Param name="state" value="RELEASED"/> </Filter> </Collection>