# Summation

## Program ID

MetraPipeline.SummationProc.1

## Description

The Summation plug-in summarizes one or more properties from child sessions and stores the summary in the parent session. The following functions can be calculated:

- Sum

- Min

- Max

- Average

- Count

The following tables show, by function, the data types of output from child and parent calculations. For example, the value from the sum calculation in the child session is decimaling point as is the output in the parent session.

Sum |  | Min
Child Data Type | Parent Data Type |  | Child Data Type | Parent Data Type
decimaling point | decimaling point |  | decimaling point | decimaling point
Integer | Integer |  | Integer | Integer
Time | Time |  | Time | Time
Datetime | Datetime |  | Datetime | Datetime
Max |  | Average
Child Data Type | Parent Data Type |  | Child Data Type | Parent Data Type
decimaling point | decimaling point |  | decimaling point | decimaling point
Integer | Integer |  | Integer | decimaling point
Time | Time |  | Time | Time
Datetime | Datetime |  | Datetime | Datetime

Count |  |  |
Child Data Type | Parent Data Type |  |  |
decimaling point | Integer |  |  |
Integer | Integer |  |  |
Time | Integer |  |  |
Datetime | Integer |  |  |

## Required Input Properties

Although there are no specific required input properties, you can define the input properties by editing summation.xml.

An example of an input property would be the amount per each participant in an audio conference.

## Required Output Properties

Although there are no specific required output properties, you can define the properties by editing summation.xml.

An example of an output property would be the total amount of an audio conference.

## Configuration Tags

Tag name | Value type | Description
counter_prop_name | String | This tag holds the property specifying the number of children. (This is a required tag.) The property itself must have a Int32 datatype.

## Configuration Example

<configdata>

<counter_prop_name>ActualNumChildren</counter_prop_name>

<summation_item>

<input_prop_name>ConferenceConnection</input_prop_name>

<input_prop_type>INTEGER</input_prop_type>

<input_service_id ptype="ID">metratech.com/audioconfconnection</input_service_id>

<output_prop_name>ActualNumConnections</output_prop_name>

<action>SUM</action>

</summation_item>

<summation_item>

<input_prop_name>IncludedRole</input_prop_name>

<input_prop_type>INTEGER</input_prop_type>

<input_service_id ptype="ID">metratech.com/audioconfconnection</input_service_id>

<output_prop_name>UserNumConnections</output_prop_name>

<action>SUM</action>

</summation_item>

<summation_item>

<input_prop_name>_Amount</input_prop_name>

<input_prop_type>DECIMAL</input_prop_type>

<output_prop_name>ConnectionTotalAmount</output_prop_name>

<action>SUM</action>

</summation_item>

<summation_item>

<input_prop_name>ConnectTime</input_prop_name>

<input_prop_type>DATETIME</input_prop_type>

<input_service_id ptype="ID">metratech.com/audioconfconnection</input_service_id>

<output_prop_name>ActualStartTime</output_prop_name>

<action>MIN</action>

<default>ScheduledStartTime</default>

</summation_item>

<summation_item>

<input_prop_name>DisconnectTime</input_prop_name>

<input_prop_type>DATETIME</input_prop_type>

<input_service_id ptype="ID">metratech.com/audioconfconnection</input_service_id>

<output_prop_name>ConferenceEndTime</output_prop_name>

<action>MAX</action>

<default>ScheduledStartTime</default>

</summation_item>

<summation_item>

<input_prop_name>ConnectionMinutes</input_prop_name>

<input_prop_type>DECIMAL</input_prop_type>

<input_service_id ptype="ID">metratech.com/audioconfconnection</input_service_id>

<output_prop_name>ConferenceTotal</output_prop_name>

<action>SUM</action>

</summation_item>

</configdata>