To publish a custom data source for use with AgilePoint:
- Create an assembly with a class that implements the IWebPartDataSource interface. This class should contain your custom logic to get data from external Data Source. The assembly should be strongly named.
The following specifications describe the interface:
- Pi ids parameter - Contains all process instance IDs the Web Part will render.
This is useful if you want to filter your queries to external data source based on
process instance ID. In fact, AgilePoint strongly recommends you use this parameter
to optimize the performance, based on this diagram:
- Fields parameter: - An array of NameValues. Contains the fields that are
configured for rendering on Web Part results. The name property of NameValue is the
internal name of the field, and the value is the display name of the field.
- Filters parameter - An array of NameValues. Contains the filters for the data
source. The Name property of NameValue is the internal name of the field, and the
value is the value of the filter.
- ConfigData parameter - Is an array of NameValues. It contains configuration
data for the data source.
- Return type - You must return a DataTable with your custom data. This
DataTable should contain a column named ProcessInstanceID. This column is essential
to merge with the main data source.
- GetRequiredParameters method - This method enables you to specify what
parameters are needed to configure the data source. On configuration-time, those
parameters will be rendered on Data Source Parameters configuration grid.
- Deploy the assembly to the GAC.