Data Attribute Swapper Processor – Swaps the current transaction data into or out of an attribute.
With the Data Attribute Swapper Processor the eiConsole and eiPlatform treat data flowing through the system in two pieces. They can swap data between attributes and the data stream. First is the main transaction stream, which is treated as an input stream. All of the major operations performed by various stages in the eiConsole and eiPlatform act on this stream. Contextual information is also available in the form of transaction attributes (a map of values that travel along with the primary data stream and can be accessed for any purpose). In some cases, it is important to switch data between the main data stream and one of these transaction attributes.
As with all the components of the eiConsole the user is presented with a graphical Interface with easy to configure panels. To swap data between Attributes and the Data Stream we have the Data Attribute Swapper.
Select the Processor Configuration tab and click on Add Processor.
Select the Data Attribute Swapper Processor from the drop-down.
This Processor can be used in either direction. It can either take data from an Attribute and use it for the data stream, or it can take the current transaction data and store it in an Attribute.
You also have the option to treat this information as an XML object. The Attribute Name configuration item should be the name of the transaction Attribute that will be used to either store or retrieve the transaction data. If you want to take data from an Attribute and make it the primary data stream, check the Copy Attribute to Data box and uncheck the Copy Data to Attribute checkbox. To go in the other direction do the reverse. If you would like to store the data as a Parsed document object model as opposed to an input stream, check the box that reads Use Document Object Model.
Use Stream: if selected, attributes will be stored/retrieved via cache InputStreams (IMPORTANT: This and Use Document Object Model are mutually exclusive options)