In an orchestration I am calling the business rule engine. I send two
messages in, and based on information in the first message the second
message
should be updated. If certain rules are triggered I need to insert a new
node
in the message, called "Error" containing a code. This element should
appear
between two existing elements. I have tried many tips, but haven't been
able
to put the element/node in the right place. No matter what I try the
element
is added to the end of the message.
Since multiple rules can fire, I need to be able to add the "Error"
element
multiple times. Each time with a code for the specific rule fired.
Anyone know how to do this?