Glad to see you are upgrading to Drools 5.0.1.GA.
I suspect the problem is in the Smooks transformation.
If you look at the smooks-res.xml (well at least the one in SOA-P-4.3.CP01 quickstarts),
if has the param "setOn" specified for the Customer to set it on the
OrderHeader.
I believe this might have changed with recent versions of Smooks, although I though it was
deprecated and still allowed (at least with Smooks in SOA-P-4.3.CP01). I can't
remember off hand the new was to set a relationship with Smooks.
Also, the SetupMessage class does not have to add the customer and orderHeader to the
messsage. Instead, the SmooksAction can use the setPayloadLocation to something like
orderPayload, and then the object-paths in the BusienssRulesProcessor action can specify
body.orderPayload.TheCustomer, etc.
Setting the dispose and continue property would still be required, and could be done in
the SetupMessage class or in a groovy script.
When you have a chance I would like to talk with you about how to support the new CEP
features in Drools 5.0.1.GA. It is the "real way" to do stateful rules of the
type this quickstart is intended to illustrate.
Jeff
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233348#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...