Hi,
Did u mean the task completed listener as below?
TaskEventKey key = new TaskEventKey(TaskCompletedEvent.class, -1);
TaskCompletedHandler eventResponseHandler = new TaskCompletedHandler(manager, client);
client.registerForEvent(key, false, eventResponseHandler);
I called this code while starting the application, still it wont continue. But in my code for every startup of application we create a new StatefulKnowledgeSession and new task client. Is this a problem?