[jboss-user] [JBoss jBPM] - EL Condition failing

falazar do-not-reply at jboss.com
Wed Mar 28 10:28:18 EDT 2007


The server is throwing an error when trying to compare a variable against a condition:


Caused by: org.jbpm.JbpmException: couldn't evaluate expression '#{amount > 1000}'
        at org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:33)
        at org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:20)
        at org.jbpm.graph.node.Decision.execute(Decision.java:119)
        ... 63 more
Caused by: org.jbpm.jpdl.el.ELException: An exception occured trying to convert String "234.56" to type "java.lang.Long"
        at org.jbpm.jpdl.el.impl.Logger.logError(Logger.java:482)
        at org.jbpm.jpdl.el.impl.Logger.logError(Logger.java:499)
        at org.jbpm.jpdl.el.impl.Logger.logError(Logger.java:567)
        at org.jbpm.jpdl.el.impl.Coercions.coerceToPrimitiveNumber(Coercions.java:441)
        at org.jbpm.jpdl.el.impl.Coercions.applyRelationalOperator(Coercions.java:927)
        at org.jbpm.jpdl.el.impl.RelationalOperator.apply(RelationalOperator.java:86)
        at org.jbpm.jpdl.el.impl.GreaterThanOperator.apply(GreaterThanOperator.java:120)
        at org.jbpm.jpdl.el.impl.BinaryOperatorExpression.evaluate(BinaryOperatorExpression.java:170)
        at org.jbpm.jpdl.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:264)
        at org.jbpm.jpdl.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:191)
        at org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:29)
        ... 65 more


Definition fragment:
  
    
      <![CDATA[#{amount > 1000}]]>
    
    
      <![CDATA[#{amount <= 1000}]]>
    
  

Thanks,
  James Ratcliff


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032347#4032347

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032347



More information about the jboss-user mailing list