Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Duplicate content check imicroservice s used to classify input messages into 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 on sleep intervals.

Configuration

Image RemovedImage Added
Figure 1: Component Property Sheet

...

Using schema editor, load/enter the XML schema for the input message. This property will be visible if the input source is chosen as XML.

Image Added

Figure 2: Configure input schema

Sleep Interval

The time gap (in milliseconds) with which duplicate messages are throttled through the Duplicate port.

...

Choose XPath from which content should be extracted. This property will be visible if the Duplicate Identifier Source is selected as BODY.

Image Added

Figure 3: Configure XPath

Property Name

Specify the property name whose value will be used to check if the message is duplicate of the earlier message. This property will be visible if the Duplicate Identifier Source is selected as HEADER.

...

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


Figure 2: Sample Event Process

Sample Input

Image RemovedImage Added 
Figure 3: Sent 10 messages with same "STNOAuthor"

Sample Output

Unique port :
Image Removed   Image Added
Figure 4: Shows only 1 message which is unique, since cache has no messages at present.

Duplicate port

Image RemovedImage Added
Figure 5: Shows 9 messages since they have same STNO Author as first message.

Useful Tips

...

Adaptavist ThemeBuilder EngineAtlassian Confluence