Select Monitor at the top of Oracle BPEL Designer. In the Structure window, expand the Sensors folder. Right-click Activity, and select Create. To the right of the Activity Name field, click the Browse icon to select the activity

Using Oracle BPEL Process Manager Sensors 17-7 Figure 17–5 Creating a Variable Sensor Based on your selection for the Target field, the Output Namespace and Output Datatype fields are automatically filled in. A new entry is created in the bpel_process_name_sensor.xml file, as shown in Example 17–2 : Example 17–2 bpel_process_name_sensor.xml file sensor sensorName=LoanApplicationSensor classname=oracle.tip.pc.services.reports.dca.agents.BpelVariableSensorAgent kind=variable target=inputpayload variableConfig outputNamespace=http:www.autoloan.comnsautoloan outputDataType=loanApplication sensor To configure a fault sensor: If you want to monitor faults for this example, from the identity service, you can create a fault sensor.

1. In the Structure window, expand the Sensors folder.

2. Right-click Fault, and select Create.

3. Click the Browse icon above the Namespace field to select to create a fault sensor,

as shown in Figure 17–6 . 17-8 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 17–6 Creating a Fault Sensor Based on your selection, the Namespace and Local Parts fields are automatically filled in. A new entry is created in the bpel_process_name_sensor.xml file, as shown in Example 17–3 : Example 17–3 bpel_process_name_sensor.xml file sensor sensorName=IdentityServiceFault classname=oracle.tip.pc.services.reports.dca.agents.BpelFaultSensorAgent kind=fault target=is:identityServiceFault faultConfig sensor

17.2.3 How to Configure Sensor Actions

When you create sensors, you identify the activities, variables, and faults you want to monitor during runtime. If you want to publish the values of the sensors to an endpoint for example, you want to publish the data of the LoanApplicationSensor variable sensor created in Figure 17–5 to a JMS queue, then create a sensor action, as shown in Figure 17–7 , and associate it with the LoanApplicationSensor variable. To configure a sensor action:

1. In the Structure window, right-click the Sensor Actions folder.

2. Select Create Sensor Action.

3. Enter the details described in Table 17–1 . Table 17–1 Sensor Actions Dialog Field Description Name Enter a name or accept the default name. Publish Type Select the destination to which to publish sensor data. For more information, see section Section 17.1, Introduction to Sensors. JMS Connection Factory If your publish type is JMS Queue, JMS Topic, or JMS Adapter, specify the connection factory.