[jboss-user] [jBPM] - Add jsp or html form to user-task without using guvnor

Rajan Bansal do-not-reply at jboss.com
Tue Aug 30 07:27:48 EDT 2011


Rajan Bansal [http://community.jboss.org/people/rajan01] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/623731#623731

--------------------------------------------------------------
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
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/623731#623731]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110830/0ab0792f/attachment-0001.html 


More information about the jboss-user mailing list