RegNow order forms processing - an example of Block Parsers usage.
Example Description
This example shows how to parse data from messages containing the same fields using the block parser.
To load the example, import the rules list rules.txt from Examples\BlockParser folder.
The example is the solution of task of parsing data from RegNow order forms. Upon message receiving, customer's name, company name, mailing address and country code are parsed from it. Based on the country code, the country name is identified. The data parsed are stored into a text file.
Example Rule Description
Filtering
There is the Subject Filter that will filter all messages except debug messages from the example.
Processing
●Parsing of Shipping block and Purchasing block
●Identifying which of the blocks is to be processed
●Processing of the shipping block if necessary
●Processing of the purchasing block if necessary
●Identification of the country name based on the country code
●Storage of the data parsed into a file
Debug Messages
There are two debug messages to show how the rule works. The first one contains filled purchasing block; the second one contains filled shipping block..