Contents

Duplicate content check is used to classify input messages to duplicate and unique based on content in input XML at XPath provided using CPS. Depending on Cache Duration Time and Sleep Interval, input messages are retained in cache and sent in sleep intervals.

Configuration


Figure 1: Component Property Sheet

Configure Schema of Input: Using schema editor, load/enter xml schema of input message.
Sleep Interval ( taken in milliseconds ): Intervals at which duplicate messages are throttled out to Duplicate port.
Cache Duration Time ( taken in milliseconds ) : Time duration for which message should be retained in cache. If in case cache is not empty and duration exceeds, then cache is not cleaned until all messages are throttled to duplicate ports.
XPath : Choose XPath from which content should be extracted.

Functional Demonstration

Scenario 1

Configure component as shown in Figure 1. Using Feeder send input messages and it can be observed that messages with same "STNO" are classified into duplicate and unique and sent to respective displays.


Figure 2: Sample Event Process

Sample Input

 
Figure 3: Sent 10 messages with same "STNO"

Sample Output

Unique port :

Figure 4: Shows only 1 message which is unique, since cache has no messages at present.

Duplicate port


Figure 5: Shows 9 messages since they have same STNO as first message.

Useful Tips

  • CPS does not accept negative values for sleep interval and cache duration. Only if values entered are non-negative Validate button press will pop-up Success message.
  • If Cache time is zero, then component throttles messages to Unique port with no gap (sleep interval), irrespective of sleep interval being non-zero value.
  • If sleep interval is zero, then cache is cleared as per cache duration time. While clearing cache, no messages are lost.
Adaptavist ThemeBuilder EngineAtlassian Confluence