Skip navigation links

Oracle Fusion Middleware Sensor Java API Reference for BPEL Process Manager
11g Release 1 (11.1.1)
E14900-01


com.oracle.bpel.sensor
Interface DataPublisher


public interface DataPublisher

This interface needs to be implemented by custom data publishers.

The publish(com.oracle.bpel.sensor.schemas.ITSensorAction, com.oracle.bpel.sensor.schemas.ITSensorActionData, org.w3c.dom.Element) method is invoked whenever a sensor associated to the custom data publisher is fired.

Note: Invocations of the publish(com.oracle.bpel.sensor.schemas.ITSensorAction, com.oracle.bpel.sensor.schemas.ITSensorActionData, org.w3c.dom.Element) method might occurr concurrently, therefore it is assumed that the code inside this method is thread safe.

Since:
10.1.2

Method Summary
 void publish(ITSensorAction action, ITSensorActionData data, org.w3c.dom.Element xmlData)
          Publish sensor data.

 

Method Detail

publish

void publish(ITSensorAction action,
             ITSensorActionData data,
             org.w3c.dom.Element xmlData)
             throws java.lang.Exception
Publish sensor data.
Parameters:
action - Metadata of the sensor action that triggered the publishing
data - The sensor data to publish
xmlData - The ITSensorActionData object as a Element object. This object is provided for your convenience. It might be used in cases where further XML processing of the data is required or in the case where the XML document is printed to some file or the console.
Throws:
java.lang.Exception - If publishing fails. In this case the caller logs the exception to the BPEL PM log file.

Skip navigation links

Oracle Fusion Middleware Sensor Java API Reference for BPEL Process Manager
11g Release 1 (11.1.1)
E14900-01


Copyright © 2009, Oracle and/or its affiliates. All rights reserved.