Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I compare oracle.jbo.domain.Numbers in EL-expressions?

776761Sep 8 2010 — edited Sep 8 2010
Hello,

I'm using JDeveloper 11.1.1.2 on a windows xp system. In setting up a taskflow, and in a router case expression I want to compare an oracle.jbo.domain.Number to a long (or int, whatever) literal. These are the expressions I've currently tried and their errors:

#{(pageFlowScope.curTemplateType eq 3002)} - causes a conversion (Number to long) error
#{(pageFlowScope.curTemplateType.getValue eq 3002)} - curTemplateType doesn't have the getValue property
#{(pageFlowScope.curTemplateType.getValue() eq 3002)} - com.sun.el.parser.ParseException: Encountered "(" at line 1, column 42. Was expecting one of: ...


pageFlowScope.curTemplateType is an oracle.jbo.domain.Number.

the Number API explicitly says getValue is what should be used in EL-expressions... so can anyone tell me what I'm doing wrong, or if there's any other way to branch conditionally based on this variable's value?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 6 2010
Added on Sep 8 2010
3 comments
1,131 views