Create a variable “LogMessage” of type string.
Click to Monitor tab.
Select “Monitoring Objects” Drop Down list and select “sensors…” as shown below.
Click Plus icon and select Variable sensor.
Select the target variable “LogMessage” which we created earlier. Click the plus(+) icon to create sensor action.
Click the plus icon & select database then click ok.
In the dialog that pops up, call the Sensor Action “SensorAction”, and leave “Publish Type” to
“Database”.
This means that the Sensor events (including their data) will be written to a pre-defined database tables in the BPEL dehydration store.
In this case (this being a Variable Sensor), that table is “VARIABLE_SENSOR_VALUES”.
Click the Bpel icon in right top. Select the Assign activity & map the variables as shown.
Deploy the application and login into the em console. When you test the application you will see the logs as shown below.
You can also see the sensor values below.
No comments:
Post a Comment