Re: [rules-users] Condition syntax to access Map

2011-07-28 Thread bolsover
Mark Thanks for the info - although it was not actually the solution to my problem, it prompted me to look again at my assertion that there were not any null values. In actual fact answerData[0] was null ( I should have been checking for answerData[100]) and this was causing the error. You

Re: [rules-users] Condition syntax to access Map

2011-07-28 Thread bolsover
Thanks for the pointer to the MVEL documents - I can forsee null-safe operator user.?manager.name syntax being most useful. As for making the null test the default action - I'm not sure - I can't say I have ever actually 'wanted' a nullpointer - but there may be some special case. David -- View

[rules-users] Condition syntax to access Map

2011-07-27 Thread bolsover
I'm struggling with the syntax to access a mapped object - hoping that someone can help with this.. I have the following condition in a rule: $a : Answer(getAnswerData().get(0).getValue_str() == Valves) Answer is a pojo where answerData is a Maplt;Integer, AnswerDatagt; object. AnswerData is

[rules-users] Is my project a suitable candidate for Drools?

2011-07-15 Thread bolsover
Although a reasonably experienced Java programmer, I'm completely new to Drools and am just in the process of exploring some options for my current project. Advice from practioners here would be very welcome. An existing web based b2b application allows clients to select products from the