0 Replies Latest reply on Aug 31, 2010 9:06 AM by Alexandr Panasovich

    Attach a file to process

    Alexandr Panasovich Newbie

      I'm just starting to work with JBPM4. I found a great example http://www.jorambarrez.be/blog/2009/07/21/jbpm-4-0-basic-taskform-tutorial-whats-new-part-4/ But I want to start form to add the ability attachments. Like this file (request_vacation.ftl)

      <html>
      <body>
      
      <form action="${form.action}" method="POST" enctype="multipart/form-data">
      
      <h3>How many days would you like to go on vacation?</h3>
      <select name="number_of_days">
      <option value="3">3 days</option>
      <option value="5">5 days</option>
      <option value="10">10 days</option>
      </select>
      
      <br/>
      <br/>
      
      Your name: <input type="text" name="employee_name" /><br/>
      Your email address: <input type="text" name="employee_email" /><br/>
      
      <br/>
      <br/>
      <input type="file" name="doc"/>
      <input type="submit" name="Done"/>
      
      </form>
      </body>
      </html>

       

      But when you start the process error

       

      rg.jboss.resteasy.spi.UnhandledException: org.jbpm.api.JbpmException: couldn't rollback: BaseTransaction.rollback - [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no transaction!
           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)
           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      

       

      Please help solve the problem