Friday, September 17, 2010

Debugging Oracle BPEL process using Sensors in 11g

Sensor is a great feature if you want customise audit trail or debug BPEL processes. The following use case is logging a custom audit message after a transformation BPEL activity has finished, the steps are as follows:

1. Open the composite application

2. Go into your BPEL process

3. Add a new variable called "AuditMessage"



4. Populate value for AuditMessage, in this case I want to set "ReadMessage process step completed successfully." message to the AuditMessage at ReadMessage process step.



5. Change to Monitor View

6. Create sensor at the ReadMessage process step

7. Label the sensor as "ActivitySensor_ReadMessage"

8. Set evaluation time at Completion

9. Create activity variable sensor

10. Create sensor action

11. Sensor is illustrated with an antena icon

12. Save and deploy your composite application

13. Run your composite application
14. Logon to Oracle Enterprise Manager and navigate to SOA Infra

15. Click on the Instance ID

16. Click on the BPEL component

17. Navigate to Sensor Values tab

Further reading: