AnsweredAssumed Answered

Include Forms in .bar Business Archive

Question asked by eye on Jan 27, 2011
Latest reply on Jan 31, 2011 by eye
Hi everyone,

I have a little problem here. I'm trying to use acitiviti purely as a set of webapps. I put together a small process consisting of start, usertask and end. I packed it together with a form into a .bar archive, the form being placed in a subprocess .forms. I deploy the process with Probe and start it with Explorer. It runs and finishes but without displaying a form. Tomcat log window displays the following:
16:00:04,890  ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 0
0270010 There is no form for task '784'.
org.springframework.extensions.webscripts.WebScriptException: 00270010 There is no form for task '784'.
        at org.activiti.rest.api.task.TaskFormGet.executeStreamingWebScript(TaskFormGet.java:54)
        at org.activiti.rest.util.ActivitiStreamingWebScript.execute(ActivitiStreamingWebScript.java:65)
        at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:595)

So I see two possibilities. Either my bpmn file contains an error. The relevant task looks like this:

         <userTask id="Einleitung" name="Einleitung" activiti:formkey="forms/einleitung.form">
         <documentation id="sid-cf757708-a723-4f38-bc0a-31e6af605b57">Original ID: "sid-320379B6-D1E0-4933-975C-64D2FA536123"</documentation>
         <extensionElements>
           
         </extensionElements>
         <incoming>SequenceFlow</incoming>
         <outgoing>SequenceFlow_2</outgoing>
         <humanPerformer id="sid-59f545cc-ea54-4342-a4b5-02bb8de5886b">
            <resourceAssignmentExpression id="sid-c347f762-e3c8-48fe-8d2c-028092832265">
               <formalExpression id="sid-b7f5c776-17fd-4939-b0dd-bdd8877e9b4e">fozzie</formalExpression>
            </resourceAssignmentExpression>
         </humanPerformer>
      </userTask>

or Probe did not add the .form files to the classpath, which they have to be if I interpret the users guide correctly ( http://www.activiti.org/userguide/index.html#buildInFormRendering ). However I am not sure about that as the Deployment section of the users guide did not help me to figure out how else to deploy forms. Maybe somebody can point me to my error so I can fix this.

Kind regards

Dirk

Outcomes