Sending an event from a HATS JSR 286 portlet

  1. Create a global variable containing the object, or objects, to send. You can do this in several ways including: executing an Extract global variable action or a Set global variable action. Any HATS global variable that contains one or more Serializable objects can be used in communication. Global variables can be thought of as wrappers for the objects of JSR 286 events.
  2. Add a Send global variable action to a HATS screen event or to an unmatched screen application event to send the objects in the global variable as a portlet event. For information about how to do this, see Send global variable action.

    This action can be used in conjunction with the Extract global variable action to send input entered by the user from one portlet to another. For example, you can add an Extract global variable action between the Apply transformation action and the Send global variable action to capture data the user enters and send it to other portlets.

  3. When the HATS JSR 286 portlet project is run and the Send global variable action is executed, the event name and the contents of the specified global variable are passed to WebSphere® Portal which then notifies the portlets wired to this HATS JSR 286 portlet to receive the event.