How to: |
In iWay Service Manager, a Special Register (SREG) is a name-value pair that defines a variable that is carried throughout the system. Once defined, this variable is available to be bound to all components of the system. For example, a document arriving on HTTP can report its origin IP address in the special register IP. Using the expression _sreg(IP) in the channel directs the output onto a queue with the name of the IP address. For a complete list of special registers provided, see the iWay Service Manager Programmer's Guide. For more information on defining a special register of your own, see Configuring General Properties Using the Console.
A common use of special register routing is to send the contents of a document to the appropriate database instance configured for the internationalization encoding of the document. You can use all of the iWay-supplied special registers to route a document dynamically.
To add a register set to a channel:
The Channels pane opens.
The Assign register pane opens.
iWay Software |