Sequencer is used to Generate a sequence to the messages and send them to outputport based on Retention Duration,Resequence Interval and Sequence type.In a Multithreaded environment the messages are not guaranteed to reach the output in the order of their arrival.Sequencer can be used to to guarantee the output reaching in the order of their arrival to the output port.

The generation of the sequence could be Continuous and NON-continuous as well.

Configuration

Sequencer Mode:it has two options  Generate and Resequence.The first option is used to generate a sequence starting  from the given Initial Sequence Number .Resequence sorts all the messages as it is stored in the sorted map,hence they appear in the order of their arrival.This is most useful in Multithreaded environment.

Sequence Holder Property is the property by  which the messages are compared.

Retention Duration: Duration for which the message is retained in the component.

Resequence Interval :Interval after which resequencing is attempted.

Table Name Prefix: Prefix name of the table  used for storing sequence number or message to be resequenced.This is used as a parameter to ensure that different processes uses different table.This parameter is appended to the tablename before creation of table. if two different processes use the same Table Name Prefix  indepently,then both the sequences of different processes gets stored in same table,Hence it is advisable to check if there is already a table existing with this Table Name Prefix

Intial Sequence Number:Number from which sequence starts.By default it is set to 1.

Sequence Type :  Select Continuous  to have two consecutive sequence numbers differ by 1.When Non-Continuous is selected the sequence numbers are not generated continuously.

Sequence Numbering on Component Restart: Previous runcount will be considered if Continue from previous run is choosen,else the run count is started from initial Sequence number set in the cps.

Icon

Retention DurationResequence Interval,Sequence Type  is not applicable for Generate Sequencer Mode.

Functional Demonstration

Scenario 1

Configure component as shown in Figure 1. Using Feeder send input messages and it can be observed that received messages have different Sequence_id generated continuously.

Sample Output

Useful Tips

  • Retention DurationResequence Interval,Sequence Type  properties appear only on selection of Resequence from Sequencer Mode.
  • Sequence Holder Property and Table Name Prefix values cannot be left empty.

 

Adaptavist ThemeBuilder EngineAtlassian Confluence