Monday 7 June 2010

Create Sensor and Sensor Actions in Jdeveloper 11.1.1.x

One small change between Jdeveloper 11.1.1.x and 10.1.3.x is different views for updating a bpel file vs setting up sensors for the same.

When we open the bpel file, there is a dropdown at the right side. Select Monitor to create or update sensor and sensor actions.


Sensor and Sensor Actions can be created in the Structure Pane.
Create a Variable Sensor “AuditMessage_Sensor”.


Then create a sensor action “PublishToAuditTopic” to publish the sensor data to the JMS topic “jms/db/AuditTopic”. This JMS topic has been previously configured on the weblogic server.



The Sensor action is configured in the following manner to publish the data to the JMS topic jms/db/AuditTopic.

Assign a bucketset to the output variable of a Business Rule Decision Function

To assign a bucket set to the input variable of a business rule decision function, we can do the same while creating the rule itself. But to assign a bucketset to the output variable, we need to update the fact of the output variable.
1. Open the rules designer
2. Click on Facts.
3. Select the output variable for which we need to assign a bucketset.
4. Click on Edit.
5. In the list of Bucketset, select the appropiate bucketset and click OK.

Now in the rule, in the Actions part, when we assert or modify the output variable message, we should get the bucketset as a dropdown.

How to replace urls and any other text in multiple files

Usually we encounter scenarios where we need to change urls or something else to ensure the composites work in other enviroments as well.
One easy way I managed to do this was by using notepad++. http://notepad-plus-plus.org/

It gives the capability of doing a "Find in files" and then we can replace anything requried at a any folder level.

JDeveloper hangs while using Expression Builder in Assign

Using the Expression Builder to build XPath expressions may cause Oracle JDeveloper to hang. If that happens, perform the following steps:
1. Kill the Oracle JDeveloper process.
2. Restart Oracle JDeveloper.
3. Select Tools > Preferences > SOA, and deselect the Validate Expression checkbox.
After performing these steps, Oracle JDeveloper should no longer hang.