Decision Activity with Join finish don't work!
marc.carrio Apr 16, 2010 8:08 AMHi guys!
I use a jbpm4.3 with tomcat, mysql and jbpm-console 2.0 in Windows XP
I have the next simply process:
<?xml version="1.0" encoding="UTF-8"?>
<process name="Alta" xmlns="http://jbpm.org/4.0/jpdl">
  <start form="main/GestioUsuaris/Init.ftl" g="15,86,48,48" name="Nou Usuari">
      <transition to="exclusive1"/>
  </start>
  <end g="615,108,48,48" name="Usuari d'alta"/>
  
   <task assignee="mary" form="main/GestioUsuaris/CA.ftl" g="454,82,100,80" name="Secretaria">
      <transition to="Usuari d'alta"/>
      <notification template="task-assign"/>
   </task>
   
   <task assignee="mary" form="main/GestioUsuaris/Tel.ftl" g="212,36,100,80" name="Telefonia">
      <transition to="Secretaria"/>
      <notification template="task-assign"/>
  </task>
   
   <decision expr="#{chkTel}" g="96,87,114,70" name="exclusive1">
      <transition g="-16,-18" name="ok" to="Telefonia"/>
      <transition g="-23,7" name="ko" to="Nothing"/>
   </decision>
   
  <task assignee="mary" form="main/GestioUsuaris/Tel.ftl" g="211,178,100,80" name="Nothing">
      <transition to="Secretaria"/>
      <notification template="task-assign"/>
  </task> 
  
</process>
The problem is after then 'Telefonia' task. the error that displays is:
org.jboss.resteasy.spi.UnhandledException: org.hibernate.NonUniqueResultException: query did not return a unique result: 2
     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:717)
     org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
causa raíz
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:844)
org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:835)
I tested with a "join" after tasks and before ('Secretaria' and 'Nothing') task but the error is the same.
The examples don't have joins! How I can do a decission activity with "joined" finish?
Thanks a lot for advance!
Mary
 
     
    
 
     
    
 
    