The WBE Reusable Component allows WebSphere® Sensor Events application
developers to forward tag read events to WebSphere Business Events to be
processed by the rules engine. In WebSphere Business Events, Event
Flows and Interaction Sets define the rules that are processed when
the tag read enters WebSphere Business Events.
WebSphere Business Events must
be installed in order to use the WBE Reusable Component.
When defining Event Flows and Interaction Sets, use the files found
in the IBM_RFID_HOME\install\wbe directory.
The WebSphereSensorEventsProject.xml file
in that directory contains the WebSphere Business Events definition
for the WebSphere Sensor Events TagRead
events, Event objects, Intermediate objects, and sample Actions.
WebSphere Sensor Events configuration
Table 1. WBE agent propertiesName |
Description |
PID |
Agent properties |
WBEAgent |
RUC WBE Agent |
com.ibm.premises.reusable.wbe.WBEAgent |
- generate.output.failure=rucresponse/wbe/generate/failure
- generate.output.success=rucresponse/wbe/generate/success
- include.location.context=false
- publish.outbound.parameter.key=wbe.action
- publish.outbound.topic=wbe
- publish.output.failure=rucresponse/wbe/publish/failure
- publish.output.success=rucresponse/wbe/publish/success
- publishoutbound.output.failure=rucresponse/wbe/publishoutbound/failure
- publishoutbound.output.success=rucresponse/wbe/publishoutbound/success
- wbe.local.jms.topic=jms/eventTopic
- wbe.location=local
- wbe.port=9080
- wbe.url=http://localhost
- wbe.version=6.2
- wbe.xsltransform=none
|
Methods
- generateWBEXMLEvent(ISensorEvent event)
- generateWBEXML(String event_xml) (Exposed as
Web service)
- generateWBEXMLMap(Map event_payload_map)
- generateWBEXMLMap(Map event_payload_map, String eventType,
String sourceId)
- publishToWBEEvent(ISensorEvent event)
- publishToWBE(String event_xml) (Exposed as Web
service)
- publishToWBEMap(Map event_payload_map)
- publishToWBEMap(Map event_payload_map, String eventType,
String sourceId)
- publishToWBEOutboundEvent(ISensorEvent event)
- publishToWBEOutbound(String event_xml) (Exposed
as Web service)
- publishToWBEOutboundMap(Map event_payload_map)
- publishToWBEOutboundMap(Map event_payload_map, String
eventType, String sourceId)
Using the WBE Reusable Component
To invoke
the WBE Reusable Component using IBM® Sensor
Events or XML, the payload must include:
- PassiveRFIDTagRead
- PassiveRFIDAggregatedTagRead
Generic payload created from a map can also be used. It must
include either of the following:
- WBERUCConstants.TAG_KEY_INOUT
- WBERUCConstants.TAGLIST_KEY_INOUT
Note: TAG_KEY_INOUT takes
a String value. TAGLIST_KEY_INOUT takes
a value of java.util.List populated with Strings.
To
publish to Reusable Components MDBs, set the following values for
the JMS topic and eventType. For multi-action Reusable Components,
the topic is checked in the message selector and in the MDB code.
- publish: profileid/rucaction/wbe/publish
- publishoutbound: profileid/rucaction/wbe/publishoutbound
- generate: profileid/rucaction/wbe/generate
The JMS topic and eventType for the MDB output from the Reusable
Component comes from the agent properties. Default output topics for
success and failure for each action are shown in Table 1.