Developing transformations
Transformations manipulate the event generated by a source target before it is delivered to the target portlet. You can develop a transformation to convert an event name, parameter name, or parameter value to match the needs of a target portlet. Using transformations to handle events is optional.
For example, if the source target sends an event that includes the cost of a selected item in US dollars, use a transformation to convert the cost to Japanese yen before the event is delivered to the target portlet.
Specify the transformation for an event using one of the following
methods:
- During runtime, the console administrator edits a page to create or edit wires. The administrator has the option of specifying the transformation for an event.
- A wire descriptor is deployed to the console and specifies the unique name of a transformation for a wire. The unique name is provided in the transformation descriptor.
- The target portlet can use the transformation APIs to specify which transformation handles an event before it is delivered to the target.