Testing the Attributes

Procedure

  1. When using custom attributes and components, ensure that you modify the process so you use the new component id (see Initialize Input Data) as shown below:
    com_tibco_n2_ec_api_base_Factory.createAttribute();
    a.attributeId = -1;
    a.attributeName = "componentId";
    a.value.add("ECCustomAudit");
    auditRequest.event.attribute.add(a);
  2. Deploy the business process with the above change and execute (see Deploy and Test the ECCustomAudit Application).
  3. In the first form enter customAttr1 as the attrName and customAttr1 Data as the attrVal.
  4. The audit message with the first form data is written into the extended attribute table (ec_event_attr) as shown below:
  5. In the second form enter customAttr2 as the attrName and 10 as the attrVal (as customAttr2 is defined as LONG).
  6. The audit message with the second form data is written into the extended attribute table (ec_event_attr) as shown below.