2.152 Create or Edit Sensor Action Dialog

Use to manage (create, edit, or delete) sensor actions.

Sensor actions enable you to publish sensor data to an endpoint, such as a database or a JMS queue. You can create multiple sensor actions for an activity sensor.

Element Description

Name

Enter a name for the activity or accept the default value of SensorActionnumber.

Publish Type

Select one of the following publishing types. The publishing type specifies the destination to which to publish the sensor data.

  • Database: Publishes sensor data to the Oracle BPEL Process Manager reports schema only in the database. The database publisher type cannot be configured to publish to arbitrary database tables. Query this data with SQL commands. This type is the default selection

  • JMS Queue: Publishes sensor data to a Java Message Service (JMS) queue.

  • JMS Topic: Publishes sensor data to a JMS topic.

  • Custom: Publishes sensor data to a custom Java class that implements the data publisher interface.

  • JMS Adapter: Uses the JMS adapter to publish to remote queues or topics and a variety of different JMS providers. The JMS Queue and JMS Topic publishing types only publish to local JMS destinations. If you select the JMS Adapter publishing type, you must create an entry in the weblogic-ra.xml file from the Oracle WebLogic Server Administration Console. Each JMS connection factory (pool) entry created at the Console corresponds to one JNDI entry in weblogic-ra.xml. Update the Sensor dialog with the chosen JNDI name selected during the creation of the JMS connection factory (pool).

Note: Caching data in the data publisher is not supported; data publishers must be stateless.

JMS Connection Factory

If your publish type selection is JMS Queue, JMS Topic, or JMS Adapter, specify the connection factory.

Publish Target

If your publish type selection is JMS Queue, JMS Topic, Custom, or JMS Adapter, you must specify a publish target. The publish target represents different things depending on the publish type specified:

  • If the publish type is a database, this field is left blank.

  • If the publish type is JMS Queue, JMS Topic, or JMS Adapter, this represents the JMS destination's JNDI name.

  • If the publish type is Custom, this represents the fully-qualified Java class name.

Filter

Enter filter logic as a boolean expression. A filter enables you to monitor sensor data within a specific range. For example, you may want to monitor loan requests in which the loan amount is greater than $100,000. In this case, you can enter an expression such as the following:

boolean(/s:actionData/s:payload/s:variableData/s:data/autoloan:
loanAmount > 100000)

Enable

Enable or disable a sensor action. By default, sensor actions are enabled. If you disable a sensor action by deselecting this checkbox, the action does not publish data.

Related Topics

Using Oracle BPEL Process Manager Sensors in Developing SOA Applications with Oracle SOA Suite

Understanding Sensor Public Views and the Sensor Actions XSD in Developing SOA Applications with Oracle SOA Suite

Understanding Technology Adapters