@eljefe,

    If you look at the source code of WSHumanTaskHandler, the first thing it
tries to do is to connect to the Mina Server (via Mina Client):

           public void executeWorkItem(WorkItem workItem, WorkItemManager 
manager)
{
>>>>                    connect();
                Task task = new Task();
                 // other stuff
           }

    here is the connect method (within WSHumanTaskHandler):

        public void connect() {

             client = new MinaTaskClient(
"org.drools.process.workitem.wsht.WSHumanTaskHandler",
                                                      new
TaskClientHandler(SystemEventListenerFactory.getSystemEventListener() ) );
                }
        }

"WSHumanTaskHandler" is tightly coupled with MinaServer to implement the
WS-HumanTask standard (that defines a lifecycle of the Human Task),
therefore, the only way to use out of the box "WSHumanTaskHandler", is to
start the MinaServer:

MinaTaskServer server = new MinaTaskServer(taskService);
    Thread thread = new Thread(server);
    thread.start();
    Thread.sleep(500);

You can read more about it in Drools Flow documentation, but it is a bit
high level, so also take a look at the practical approach:
http://www.packtpub.com/article/drools-jboss-rules-5.0-flow-part2

/Anatoly
-- 
View this message in context: 
http://n3.nabble.com/Drools-Flow-Error-Question-tp689838p690119.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to