Accessing Crossframe Gadget Demo Applications

Procedure

  1. Go to the location where you installed TIBCO ActiveMatrix BPM. For example :C:\Program Files\tibco\amx-bpm\bpm\n.n\samples\.
  2. Unzip the file amxbpm-crossframe-communication-sample.zip. This contains the folder com.tibco.openspace.sample.managedhub.
  3. For details on setting up, compiling, running, and deploying the demo applications contained in this folder, see: \com.tibco.openspace.sample.managedhub\war\readme.txt

Result

When a gadget running under Openspace is developed as a GWT application then Managed Events can be used to receive events from Openspace and to fire/receive events to/from other gadgets running under Openspace. The normal GWT Event/Handler model is extended to transparently fire Managed Events to locally registered handlers and also publish these on the PageBus ManagedHub to any subscribed gadgets. When a ManagedEvent is fired it is JSON (JavaScript Object Notation) serialized and passed as a PageBus message. When this message is received a ManagedEvent class of the original type is created and this ManagedEvent is fired just as if it were locally fired by the gadget application.

A non-GWT gadget can also publish and subscribe to the JSON serialized message format using the JavaScript PageBus interface directly. In this case a published message must be created to match the JSON serialized message and the received message is processed directly as a PageBus message. The JavaScriptDemo application provides an example of how this is done. See the JavaScriptDemo.js file.