[jboss-user] [jBPM] - Attempt to test human task API on jbpm5.4.CR1 failed

dany171 do-not-reply at jboss.com
Tue Nov 20 16:07:39 EST 2012


dany171 [https://community.jboss.org/people/dany171] created the discussion

"Attempt to test human task API on jbpm5.4.CR1 failed"

To view the discussion, visit: https://community.jboss.org/message/777560#777560

--------------------------------------------------------------
Hi all,

I tried to test the human task API over the jbpm5.4.CR1 version, based on  https://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-task-api-usage-example https://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-task-api-usage-example.

I created  a maven project and started to setup it , so , I added dependencies into the pom.xml and configuring it to use jBPM5.4.CR1 libraries, because the original example did not compiled.

After that I get the TaskServer running succesfully, I was very happy.

Then I tried to run ProcessTaskAPITest class and in the instruction (the bold line)

| 
 | 
 | KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); |
| 
 | 
 | *kbuilder.add(ResourceFactory.newClassPathResource(process), ResourceType.BPMN2);* |

 it throwns the next exception in execution time.

*java.lang.NoSuchMethodError: org.jbpm.workflow.core.node.EndNode.setScope(I)V*
    at org.jbpm.bpmn2.xml.EndEventHandler.handleTerminateNode(EndEventHandler.java:116)
    at org.jbpm.bpmn2.xml.EndEventHandler.end(EndEventHandler.java:63)
    at org.drools.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:417)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
    at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:296)
    at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:175)
    at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:46)
    at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:247)
    at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:652)
    at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:688)
    at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:45)
    at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:34)
    at com.test.human.api.ProcessTaskAPITest.readKnowledgeBase(ProcessTaskAPITest.java:182)
    at com.test.human.api.ProcessTaskAPITest.main(ProcessTaskAPITest.java:116)

I think, it is because of the versions of the dependencies in my pom.xml, because I changed them, but I can't fix it until now. 

I'm attaching my project, so, if somebody can take a look and give guideliness I will really appreciate (I have some days trying to run it), or fi anybody can share to me an project testing the human task api with jbpm 5.3 or 5.4 it will be really nice for me.

Thanks in advanced.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20121120/b3eee80a/attachment-0001.html 


More information about the jboss-user mailing list