How do I compare oracle.jbo.domain.Numbers in EL-expressions?
776761Sep 8 2010 — edited Sep 8 2010Hello,
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.