Some 'more, in-depth' information on Oracle BPEL PM, ESB and other SOA, day2day things

Sunday, March 19, 2006

Using XMLHelper.convertToCollaxaElement(org.w3c.dom.Element pElement) within bpelx:exec

Ever tried setting a new fresh new Dom Element with setVariableData in BPEL 10.1.2.0.2?

Last week I helped one of my colleaques in LA - and he reported that using
setVariableData was not working as expected.

I remembered that the bpelx:java activty in his process was using Oracle's XML Parser to create some new dom elements by hand.
Although the XMLElement implements org.w3c.dom.Element - the variable he tried to fill was not getting filled properly. (some kind of null, instead of filled.)

Luckily I remembered a basic lesson on how the engine works behind the scenes, from one of our engineers - and he told me I need to convert a newly created element before using setVariableData to fill it into a process variable.

How to accomplish that?
From the XMLHelper api (com.collaxa.xml.XMLHelper()) use the convertToCollaxaElement
[org.w3c.dom.Element convertToCollaxaElement(org.w3c.dom.Element pElement)] method, and voila, your variable will be filled :-)

Having questions? send your feedback on convertToCollaxaElement within bpelx:java here

0 Comments:

Post a Comment

<< Home