and here I found an excellent article on using a Java embedded action.... great stuff, Brazilian friend, bem feito!
Just code this into a Java Embedded activity:
Object countLines = getVariableData("countLines"); System.out.println("IN LOOP countLines=" + countLines); /* writes to the audit trail - will then be visible in BPEL console at runtime*/ addAuditTrailEntry("countLines is: " + countLines);
This article seems to be interesting on how to use log4j from a BPEL process
See also here for more on logging XML in BPEL
2 comments:
Thanks for the reference, really appreciated it!
About using addAuditTrailEntry, just a word of caution: each call to this adds a step to the instance's audit trail (obviously), so registering too many entries on a single instance can seriously mess up visualization from BPEL's console (meaning, browser crash).
Cheers,
Mazanatti
Thanx Pier! What I needed :)
Post a Comment