[jboss-user] [jBPM] New message: "EL with arrays"

ciccio ciccio do-not-reply at jboss.com
Mon Feb 15 05:21:28 EST 2010


User development,

A new message was posted in the thread "EL with arrays":

http://community.jboss.org/message/526295#526295

Author  : ciccio ciccio
Profile : http://community.jboss.org/people/ciccioVega

Message:
--------------------------------------------------------------
Hi guys,
i have a node <decision>: i want to evaluate the size of my arraylist "output"
 
<decision g="107,428,48,48" name="evaluate Complex">
     <transition g="-36,-18" name="to   end" to="end">
          <condition expr="#{output !=null &&  fn:length(output) == 1 &&  output[0] != null }"/>
     </transition>
        <transition g="6,-17" name="to initGlobal" to="initGlobal"/>
</decision>

 
the head of my process.jpdl.xml is 
<process name="example" xmlns="http://jbpm.org/4.3/jpdl" xmlns:fn="http://java.sun.com/jsp/jstl/functions">

 

 
I explained *xmlns:fn="http://java.sun.com/jsp/jstl/functions"* to use function because calling directly, in EL expression,  #{output.size} and #{output.length} the result was an Exception.
 
The exception is:
org.jboss.resteasy.spi.UnhandledException: org.jbpm.api.JbpmException: script evaluation error: javax.el.ELException: Could not resolve function 'fn:length'
     org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
     org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
     org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
     org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
     org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
     org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
     org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
     org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
     org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 
 
 
 
root cause
 
org.jbpm.api.JbpmException: script evaluation error: javax.el.ELException: Could not resolve function 'fn:length'
     org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:130)
     org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:118)
 

 
 
Any suggestions?
Thanks in advance.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/526295#526295




More information about the jboss-user mailing list