<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Attempt to test human task API on jbpm5.4.CR1 failed
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/dany171">dany171</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/777560#777560">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi all,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>I tried to test the human task API over the jbpm5.4.CR1 version, based on </span><a class="jive-link-external-small" href="https://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-task-api-usage-example" target="_blank">https://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-task-api-usage-example</a><span>.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I created&#160; 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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>After that I get the TaskServer running succesfully, I was very happy.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Then I tried to run ProcessTaskAPITest class and in the instruction (the bold line)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";"><br/></td><td style=";"><br/></td><td style=";">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();</td></tr><tr><td style=";"><br/></td><td style=";"><br/></td><td style=";"><strong>kbuilder.add(ResourceFactory.newClassPathResource(process), ResourceType.BPMN2);</strong></td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p> it throwns the next exception in execution time.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>java.lang.NoSuchMethodError: org.jbpm.workflow.core.node.EndNode.setScope(I)V</strong></p><p>&#160;&#160;&#160; at org.jbpm.bpmn2.xml.EndEventHandler.handleTerminateNode(EndEventHandler.java:116)</p><p>&#160;&#160;&#160; at org.jbpm.bpmn2.xml.EndEventHandler.end(EndEventHandler.java:63)</p><p>&#160;&#160;&#160; at org.drools.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:417)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(Unknown Source)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)</p><p>&#160;&#160;&#160; at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)</p><p>&#160;&#160;&#160; at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:296)</p><p>&#160;&#160;&#160; at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:175)</p><p>&#160;&#160;&#160; at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:46)</p><p>&#160;&#160;&#160; at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:247)</p><p>&#160;&#160;&#160; at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:652)</p><p>&#160;&#160;&#160; at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:688)</p><p>&#160;&#160;&#160; at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:45)</p><p>&#160;&#160;&#160; at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:34)</p><p>&#160;&#160;&#160; at com.test.human.api.ProcessTaskAPITest.readKnowledgeBase(ProcessTaskAPITest.java:182)</p><p>&#160;&#160;&#160; at com.test.human.api.ProcessTaskAPITest.main(ProcessTaskAPITest.java:116)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks in advanced.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/777560#777560">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>