Skip to Main Content

Developer Community

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Writing Logs from BPEL process

The simple way is to create a Java Embedding in BPEL with code like the following. Suppose you want to log the BPEL variable “RetryCount”:

<extensionActivity>

<bpelx:exec name="Java_Embedding1">

<![CDATA[

Object obj = getVariableData("RetryCount");

java.util.logging.Logger logger = java.util.logging.Logger.getLogger("oracle.soa.Logger");

oracle.fabric.logging.LogFormatter.configFormatter(logger);

logger.info("RetryCount is "+ obj);

]]>

</bpelx:exec>

</extensionActivity>

You will find the message “RetryCount is 1” in the diagnostic.log

Comments
Post Details
Added 2 days ago
0 comments
20 views