Developing Apama Applications > Developing Apama Applications in Event Modeler > Using Standard Blocks > The Utility blocks > List v2.0
List v2.0
As scenarios do not support a sequence type, the List block addresses this potential requirement by providing a dynamically-sized sequence of string items. It provides facilities for adding, inserting, accessing, removing, as well as iterating across, elements within this sequence.
Parameters
Parameter
Description
item
Holds an item for an add or nextIndex operation.
index
Index for an add, get or remove operation.
Operations
Operation
Description
add
Adds the value currently held in item to the end of the list.
insert
Adds the value held in item to the list at the position held in index.
get
Retrieves the item stored at the position held in index.
clear
Empties the list.
remove
Removes the item at the position stored in the index parameter.
next
For iterating through the list - forces the next result to be output.
reset
Resets the iterator to the first entry in the list.
nextIndex
For iterating through the list - move the iteration position to the next instance of item stored in the item parameter and outputs the results.
Input feeds
This block has no input feeds.
Output feeds
Feed
Field
Description
result
item
Holds the item for a retrieval operation.
index
Holds the index of a retrieved item.
found
true if an item was found in the list, false otherwise.
size
Number of entries in the list.
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.