[jboss-jira] [JBoss JIRA] Commented: (JBRULES-375) "?" doesn't seem to be recognized in the excel spreadsheet.
Thierry R (JIRA)
jira-events at jboss.com
Mon Jul 24 19:00:13 EDT 2006
[ http://jira.jboss.com/jira/browse/JBRULES-375?page=comments#action_12339994 ]
Thierry R commented on JBRULES-375:
-----------------------------------
The bug occurs as well in a rule consequence (RHS). Thank you
> "?" 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: Mark Proctor
>
> 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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list