An Example of Word Iterator Usage

Count of message words - An Example of Word Iterator Usage.

Example Description

This example shows how to use Word Iterator component, which allows to parse data word by word and to execute a set of processing components for every parsed word.

To load the example, import the rules list rules.txt from Examples\WordIterator folder.

The example allows counting of the number of words in a message and to store words into a text file.

Example Rule Description

Filtering

There is the Subject Filter that filters all messages except debug messages from the example.

Processing

Iterating through Body text source, parsing every word to the Word variable and executing for it next operations:

Storing of the word parsed and its number into the text file.

Debug Messages

There is one debug message used to show how the rule works.

© 2020 Mediatwins s.r.o. All rights reserved.