Creating a New Custom Aggregation
This section describes the overall process for creating a new custom Aggregation.
Refer to the About Aggregations section of the Oracle Utilities Meter Solution Business User Guide for more functional information.
Execute the following steps:
- Create a business object for the aggregator measuring component.
This will flatten the dimensional value(s) into searchable characteristics.
Whether this business object is a parent or a child of another aggregator
business object depends on when periodic aggregation should occur:
- If you want the periodic aggregation to occur when another aggregation occurs, it can be a child business object (meaning that it inherits the lifecycle (and therefore the deferred monitor) of the parent)
- If you want to schedule its periodic aggregation independently from other aggregation business objects, this must NOT be a child business object as it will require its own deferred monitor (and deferred monitors can only be defined on parent business objects)
-
Create UI maps for the aggregator business object as follows:
- One to display the aggregator measuring component (Display)
- One to allow user to change / add a new one (Maintenance)
Note: A newer alternative to creating UI Maps would be to use UI Hints directly within the Business Object. - Create an info plug-in for the aggregator business object that concatenates together its dimension types and values.
- Create a "Find Constituent Measuring Components" algorithm and plug it on the aggregator business object. This will be passed the aggregator measuring component and the from and to date/times. It will insert the constituent measuring component IDs and the respective from / to date-time of each onto a temporary table.
- Create a measuring component type instance and reference the new aggregator measuring component business object (as well as the types of constituent measuring component types that should be aggregated).
- Create a query zone for Consumption Statistics search to allow users to find the aggregator measuring component.
Optional steps:
- Create a business object for the dimension scanner activity. This should be a child business object of the base package dimension scanner business object.
- Create UI maps for the activity business object, as follows:
- One to display the dimension scanner activity (Display).
- One to allow users to change/add a new one (Maintenance).
Note: A newer alternative to creating UI Maps would be to use UI Hints directly within the Business Object. - Create an info plug-in that will describe what it scans.
- Create an Enter algorithm on the Scan state that finds distinct combinations of the dimensional values and creates new aggregator measuring components when new ones are detected.
Note: You can reuse the base package deferred monitor Aggregation Dimension Scanner Monitor (D1-ADS) batch control
.