[rules-users] Exceptions on Human Task creation

tolitius webakaunt at gmail.com
Mon Apr 12 13:50:01 EDT 2010


@Robert,

   See if this helps:

    TaskService taskService = new TaskService(emf,
SystemEventListenerFactory.getSystemEventListener());
    
    MockUserInfo userInfo = new MockUserInfo();  // this of course is a mock
only if it is a TEST :)
    
    taskService.setUserinfo(userInfo);
    
    TaskServiceSession taskSession = taskService
        .createSession();

    taskSession.addUser(new User("Administrator"));

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

/Anatoly
-- 
View this message in context: http://n3.nabble.com/Exceptions-on-Human-Task-creation-tp710098p714100.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list