Data Attribute Swapper
With the eiConsole and eiPlatform Data Attribute Swapper Processor, Users Can Swap Data Between Attributes and the Data Stream
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 purposes). In some cases, it is important to switch data in 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.
First – choose the Data Attribute Swapper Processor from the Add Processor dropdown menu.
Then name the Processor: SwapAttributeAndData and hit Add.
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 Attribute->Data box and uncheck the Data->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.