I'm creating an decision table using Drools and having trouble with the greater than character ('>'). I saw on the drools documentation that you could use '>' and '<' but I seem to get something wrong.
The column is (I don't have enough reputation yet to post images):
- |CONDITION|
- | | (empty cell)
- |duration >|
- |Duration|
- |50|
- |200|
The thing is that the architecture doesn't allow me to get the full object. I can only have some fields from the RemoteObject.
So the thing I can do is:
Integer duration = getRemoteObjectDuration();
kSession.insert(duration);
kSession.fireAllRules();
Which results in:
[6,2]: [ERR 102] Line 6:2 mismatched input '>' in rule "RuleTable_11"
[14,2]: [ERR 102] Line 14:2 mismatched input '>' in rule "RuleTable_12"
[0,0]: Parser returned a null Package
I could create a dummy object containing my field, but there must be something better to do. Does anyone have an idea about this?
durationis located? There is nothing like an "Integer on the java side". Inserting Integer objects as facts isn't useful except in very special situations. - laune