The EPC Reusable Component provides methods for working with EPC values, including generation of valid EPC values that can be written to tags. It also supports a query to decode an EPC value into its constituent fields.
The ruc.targetBackend value of ruc.wse, which uses the WebSphere® Sensor Events API, and the value of ruc.its support the generation of EPC values.
The input payload attributes for the epcgen call for the ruc.targetBackend value of ruc.wse are:
Attribute | Description |
---|---|
EPCRUCConstants.EPC_RUC_PROFILE_NAME | This attribute is a print profile name defined in WebSphere Sensor Events |
EPCRUCConstants.EPC_RUC_PACK_TYPE | This required attribute sets the package level indicator in the generated EPC. For more information about the concept of pack type, see Configuring pack types. |
EPCRUCConstants.EPC_RUC_ASSET_TYPE | This required attribute sets the asset type indicator in the generated EPC. |
EPCRUCConstants.EPC_RUC_TAG_QUANTITY | This attribute is optional, and defaults to 1. |
The input payload attributes for the epcgen call for the ruc.targetBackend value of ruc.its are:
Attribute | Description |
---|---|
EPCRUCConstants.EPC_RUC_PROFILE_NAME | This optional attribute is a print profile name defined in WebSphere Sensor Events |
EPCRUCConstants.EPC_RUC_PACK_TYPE | This attribute is optional, and required only if the profile name is given. |
EPCRUCConstants.EPC_RUC_ASSET_TYPE | This attribute is optional, and required only if the profile name is given. |
EPCRUCConstants.EPC_RUC_TAG_QUANTITY | This attribute is optional, and defaults to 1. |
EPCRUCConstants.EPC_RUC_ENCODING_FORMAT | This attribute is optional. |
EPCRUCConstants.EPC_RUC_REQUEST_SOURCE | This attribute is optional. |
EPCRUCConstants.EPC_RUC_RANDOM | This attribute is optional. |
EPCRUCConstants.EPC_RUC_ALPHANUMERIC | This attribute is optional. |
EPCRUCConstants.EPC_RUC_COMPANY_PREFIX | This attribute is optional, and required only if the profile name is not given. |
EPCRUCConstants.EPC_RUC_FILTER_VALUE | This attribute is optional, and required only if the profile name is not given. |
EPCRUCConstants.EPC_RUC_GTIN14 | This attribute is optional, and required only if the encoding format is EPCRUCConstants.EPC_INPUT_TYPE_SGTIN96. |
EPCRUCConstants.EPC_RUC_EXTENSION_DIGIT | This optional attribute defaults to 0, and is required only if the encoding format is EPCRUCConstants.EPC_INPUT_TYPE_SSCC96. |
Name | Description | PID | Agent properties |
---|---|---|---|
EPCAgent | RUC EPC Agent | com.ibm.premises.reusable.epc.EPCAgent |
|
See Configuring the messaging interface for the WebSphere Application Server configuration details.
To invoke epcgen, the payload of either the IBM® Sensor Events or the Map, must include the required properties from Table 1 and Table 2, depending on the target back-end implementation.
To invoke epcdecode using IBM Sensor Events or XML, the payload must include:
Generic payload created from a map can also be used. It must include either of the following:
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.
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 3. The payload of the message published on the success response topic will include the result under this key: