I have a requirement of run rules on dynamic map instead of POJO, for example:<br><br><div style="margin-left: 40px;"><b>when<br> Map(</b> TransCode == "LOGIN" , userName == "wangzx", password == "123456" )<br>
<b>then<br> doSth1()<br><br>when<br> Map( </b>TransCode = "SaveOrder" userName == "wangzx" category == "Book")<br><b>then<br> doSth2()<br><br></b></div>the Fact is not a Java Bean, but a dynamic map<String, Object>, so the TransCode == "Login" is what we means map("TransCode") == "Login".<br>
<br>By using map insteam of POJO, we can build a rules run on the message dispatch, since there is a lot of Message Types, and each message type has different schema, so using dynamic types is more flexible than POJO.<br>
<br>Can someone tell me how can it be supported in drools? Very thanks.<br>