The Inference Reusable Component infers
the presence of tags based on aggregations from the back-end system.
It uses previously recorded aggregations to infer parent, children,
and sibling relationships.
These queries are currently supported on the ruc.targetBackend value
of ruc.its only.
WebSphere Sensor Events configuration
Table 1. Inference agent propertiesName |
Description |
PID |
Agent Properties |
InferenceAgent |
RUC Inference Agent |
com.ibm.premises.reusable.inference.InferenceAgent |
- ruc.targetBackend=ruc.its
- children.output.success=rucresponse/inference/children/success
- children.output.failure=rucresponse/inference/children/failure
- parent.output.success=rucresponse/inference/parent/success
- parent.output.failure=rucresponse/inference/parent/failure
- siblings.output.success=rucresponse/inference/siblings/success
- siblings.output.failure=rucresponse/inference/siblings/failure
|
Using the Inference Reusable Component
To invoke the Inference 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:
- ReportingRUCConstants.TAG_KEY_INOUT
- ReportingRUCConstants.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.
- getChildren: profileid/rucaction/inference/children
- getParent: profileid/rucaction/inference/parent
- getSiblings:
profileid/rucaction/inference/siblings
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. The payload includes
a group with the name
ObjectEventConstants.RUCMDB_RESULT_KEY_OUT with
a counter appended for every event map returned. For example:
- RUCMDBRESULT1 -> Map1
- RUCMDBRESULT2 -> Map2
- RUCMDBRESULT3 -> Map3
Methods
- getChildren(boolean markInferredTags, boolean keepInferenceTag,
boolean keepParentOfSiblings, boolean deepInference, (String [] EPCs)) (Exposed
as Web service)
- getParent(boolean markInferredTags, boolean keepInferenceTag,
boolean keepParentOfSiblings, boolean deepInference, (String [] EPCs)) (Exposed
as Web service)
- getSiblings(boolean markInferredTags, boolean keepInferenceTag,
boolean keepParentOfSiblings, boolean deepInference, (String [] EPCs)) (Exposed
as Web service)