[jboss-dev-forums] [jBPM Development] - Unable to start-up human task

phumla Andrease do-not-reply at jboss.com
Mon Jul 25 12:02:07 EDT 2011


phumla Andrease [http://community.jboss.org/people/paa] created the discussion

"Unable to start-up human task"

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

--------------------------------------------------------------
Hi All

Please HELP!! new bee :| 


I have created my own human task process but i cant get it to start using eclipse when i debug it, what could be the issue?
I have tried everything i could think of , "even compared it with a the evaluation process"

 http://community.jboss.org/servlet/JiveServlet/showImage/2-617437-16789/ERROR2.bmp  http://community.jboss.org/servlet/JiveServlet/downloadImage/2-617437-16789/450-245/ERROR2.bmp 
My Java Class

package com.jbpm.process;

import java.util.HashMap;
import java.util.Map;

import org.drools.KnowledgeBase;
import org.drools.builder.KnowledgeBuilder;
import org.drools.builder.KnowledgeBuilderFactory;
import org.drools.builder.ResourceType;
import org.drools.io.ResourceFactory;
import org.drools.logger.KnowledgeRuntimeLogger;
import org.drools.logger.KnowledgeRuntimeLoggerFactory;
import org.drools.runtime.StatefulKnowledgeSession;
import org.jbpm.process.workitem.wsht.WSHumanTaskHandler;

/**



* This is a sample file to launch a process.

 */

public class ProcessTest {



    public static final void main(String[] args) {

        try {

            // load up the knowledge base

            KnowledgeBase kbase = readKnowledgeBase();

            StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();

            KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newThreadedFileLogger(ksession, "test", 1000);

            ksession.getWorkItemManager().registerWorkItemHandler("Human Task", new WSHumanTaskHandler());

            // start a new process instance

            Map<String, Object> params = new HashMap<String, Object>();

            params.put("employee", "Krisv");

            params.put("comment", "Load login screen");

        ksession.startProcess("com.jbpm.process.captureProcess", params);



            logger.close();

        } catch (Throwable t) 

        {

            t.printStackTrace();

        }

    }



    private static KnowledgeBase readKnowledgeBase() throws Exception {

        KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();

        kbuilder.add(ResourceFactory.newClassPathResource("Capture.bpmn"), ResourceType.BPMN2);

        return kbuilder.newKnowledgeBase();

    }
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110725/6342ca69/attachment.html 


More information about the jboss-dev-forums mailing list