2 Replies Latest reply on Sep 2, 2011 12:09 AM by Rajan Bansal

    Add jsp or html form to user-task without using guvnor

    Rajan Bansal Newbie

      Hi,

      I am developing the web-application using spring.. And I want to handle the back-ground process using jBPM5.1.

       

      I am able to shift the database from h2 to oracle-db successfully..

      And I call the jbpm process from the controller..

      I am not using and dont want to use  the jbpm-console and gwt-console and not even the guvnor repository..

       

      Now I want to add forms which are in "Jsp and html" to be attaced with user-task-nodes...

      I am using eclipse and didn't find any means to add forms

       

      So in the .bpmn file I tried to add form by written but un-sucessfull as shown below:

      <dataOutputAssociation>

              <sourceRef>_2_performanceOutput</sourceRef>

              <targetRef>performance</targetRef>

            </dataOutputAssociation>

            <potentialOwner>

              <resourceAssignmentExpression>

                <formalExpression>#{employee}</formalExpression>

              </resourceAssignmentExpression>

            </potentialOwner>

            <rendering id="requestform">

           <jbpm:form>evaluation/Request Approval.ftl</jbpm:form>

            </rendering>

          </userTask>

       

      It gives an error:

      (null: 124, 18): The prefix "jbpm" for element "jbpm:form" is not bound.

      16:53:46,228 ERROR [STDERR] org.xml.sax.SAXParseException: The prefix "jbpm" for element "jbpm:form" is not bound.

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

      16:53:46,228 ERROR [STDERR]     at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:293)

      16:53:46,228 ERROR [STDERR]     at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:172)

      16:53:46,228 ERROR [STDERR]     at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:46)

      16:53:46,228 ERROR [STDERR]     at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:249)

      16:53:46,228 ERROR [STDERR]     at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:516)

      16:53:46,228 ERROR [STDERR]     at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:560)

      16:53:46,228 ERROR [STDERR]     at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)

      16:53:46,228 ERROR [STDERR]     at com.jbpmweb.jbpm.Evaluation.readKnowledgeBase(Evaluation.java:54)

      16:53:46,228 ERROR [STDERR]     at com.jbpmweb.jbpm.Evaluation.processCalling(Evaluation.java:31)

      16:53:46,228 ERROR [STDERR]     at com.jbpmweb.service.ProbationService.handleJbpmRequest(ProbationService.java:20)

      16:53:46,228 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      16:53:46,228 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      16:53:46,228 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      16:53:46,228 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      16:53:46,228 ERROR [STDERR]     at org.springframework.web.servle

       

       

      Please tell me how to add html or jsp forms to user-tasks???

       

      Regards

      Rajan Bansal