By Michael.Czapski on Nov 26, 2007
This example implements a part of the ELS functionality dealing with linking a number of related messages until all are collected or a time period elapses, whichever is the soone, a counted and timed correlation pattern, or an aggregator pattern with a timer.
Unlike the implementation from Example 2, on which it is heavily based, this implementation will correlate a varying number of messages, statically set at design time, or as many as it receives within a given time period expressed as a static duration. Thus the same implementation can be used to correlate 2, 3, 10 or 30 messages, by modifying the value of a single business process attribute, over a statically configured time period. By obtaining the value of the business process attribute which controls the message count or which controls duration, from the environment or the initial message, one will change the static implementation into a dynamic counted and timed correlation solution.
CorrelationExample_03_CountedAndTimed.pdf discusses the solution and illustrates key points that vary between Example 2 and this example.
CountedAndTimes.zip is the Java CAPS 5.1.3 project export that implements the solutuin.