[Users] Assign in BPEL
ccaron
caron.clement at gmail.com
Wed Mar 16 10:54:58 CET 2011
I managed to fix a part of the problem by adding this
Code:
for(final Attribute attr: (List<Attribute>)rightTemp.getAttributes()) {
leftSide.setAttribute(((Attribute)attr.clone()).detach());
}
in the assign part of BPELAssigner.java, giving this :
Code:
// 3 - affect
if((rightSide.getChildren() != null)&&(rightSide.getChildren().size() > 0)) {
final Element rightTemp = (Element) ((Element) rightSide.clone()).detach();
for(final Attribute attr: (List<Attribute>)rightTemp.getAttributes()) {
leftSide.setAttribute(((Attribute)attr.clone()).detach());
}
final Iterator<Element> it = rightTemp.getChildren().iterator();
while(it.hasNext()) {
final Element child = it.next();
leftSide.addContent(((Element)child.clone()).detach());
}
} else {
leftSide.setText(this.affectTextElementOrAttributeValueInRightSide(rightSide));
}
I'm still working on remaining problem of namespace.
Clément
-------------------- m2f --------------------
Subscribe/Unsubscribe emails notifications.
Response to this email will be posted on the Petals forum.
Please delete the existing text before responding :)
Read the topic online:
http://forum.petalslink.com/viewtopic.php?p=30698#30698
-------------------- m2f --------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/a4a78abb/attachment.htm>
More information about the Users
mailing list