]
Michael Neale resolved JBRULES-375.
-----------------------------------
Resolution: Done
should be gone with the new excel API that I used a while back.
"?" doesn't seem to be recognized in the excel
spreadsheet.
-------------------------------------------------------------
Key: JBRULES-375
URL:
http://jira.jboss.com/jira/browse/JBRULES-375
Project: JBoss Rules
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Decision tables
Affects Versions: 3.0.1
Environment: window xp, eclipses-3.1.2
Reporter: wen Lin
Assigned To: Michael Neale
In the action cell, I have
int score = (i.getMyScore()< $param)? i.getMyScore(): $param; c.setAdjustScore(score);
c.setFlag(false); modify( c );
and got the following errors:
[mTokens]: line 25:39 state 0 (decisionfiltered=16) no viable alt line 25:39;
char='?'
[mTokens]: line 37:39 state 0 (decisionfiltered=16) no viable alt line 37:39;
char='?'
[mTokens]: line 49:39 state 0 (decisionfiltered=16) no viable alt line 49:39;
char='?'
[mTokens]: line 61:39 state 0 (decisionfiltered=16) no viable alt line 61:39;
char='?'
[mTokens]: line 73:39 state 0 (decisionfiltered=16) no viable alt line 73:39;
char='?'
[mTokens]: line 85:39 state 0 (decisionfiltered=16) no viable alt line 85:39;
char='?'
[mTokens]: line 97:39 state 0 (decisionfiltered=16) no viable alt line 97:39;
char='?'
Rule Compilation error Syntax error on token ")", ? expected after this token
Rule Compilation error Syntax error on token ")", ? expected after this token
Rule Compilation error Syntax error on token ")", ? expected after this token
Rule Compilation error Syntax error on token ")", ? expected after this token
Rule Compilation error Syntax error on token ")", ? expected after this token
Rule Compilation error Syntax error on token ")", ? expected after this token
Rule Compilation error Syntax error on token ")", ? expected after this token
------------------------------------------------------------------
but the problem disappears while I use the following instead:
c.setAdjustScore(Math.min(i.getMyScore (), $param));
---------------------------------------------------------------------------------------
It seems to me that either "?" is not recognized or "(a>b)? a:b"
doesn't work ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: