Counters
The Counters tab allows creating a new counter and viewing the properties of the counters in MIP, such as minimum, maximum and current value.
Counters can be used to track and report how often a particular step or event in an integration process occurs. This can be useful for understanding how many times an application, service, or intersystem communication performs a particular action.
For example, an integration process might increment a counter each time it successfully transfers a customer record from one system to another. In this way, you can evaluate how effective the integration is and determine how much data is lost in case of any errors or interruptions. Counters can be used in a variety of scenarios, such as monitoring integration processes, debugging, and evaluating performance. In this way, you can better understand the data exchange in your system and make improvements if necessary.
| Field | Description |
|---|---|
| Name | Counter Name |
| Minimum Value | Sets the lower limit of the counter and determines the starting point. |
| Maximum Value | It determines the upper limit that defines the range in which the counter will operate. |
| Current Value | It represents the ongoing count and shows the current position of the counter. The starting point of the counter is specified in Current Value. |
| Length | Specifies the character length of the current value of the counter. |
Clicking the three dots under the "Action" heading offers the following options:
- Edit Counter: Allows changing counter details.
- Delete Counter: Allows the removal of counter.
Defined counters can use with XSLT Mapping and Counter Connector.
Example using for XSLT Mapping.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xslt-functions="mip:xslt:functions" version="3.0">
<xsl:template match="*">
<xsl:value-of select="xslt-functions:counter('INCREASE','definedCounterName')"/>
</xsl:template>
</xsl:stylesheet>