Jose Miguel Loor wrote:
private StatefulKnowledgeSession getKSession(final String changeSetUrl) throws ProcessRulesException {
StatefulKnowledgeSession ksession = getKBase(changeSetUrl).newStatefulKnowledgeSession();
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", new SystemOutWorkItemHandler());
return ksession;
}
Here you have two issues:
- you create non persistence session and thus nothing ends up in data base
- use SystemOutWorkItemHandler as handler for human tasks so it will simply print its properties and move on with the next nodes, most likely ending up as completed process instance
Take a look in the docs on how to setup persistent sessions and make sure that it's configured towards the same db as console.
HTH