JBoss Community

Re: How to add Listory logger

created by Adam Bach in jBPM - View the full discussion

modify CommandDelegate.java

 

private StatefulKnowledgeSession getSession() {

        if (ksession == null) {

            ksession = newStatefulKnowledgeSession();

            new JPAWorkingMemoryDbLogger(ksession);//this is new line!!!

        }

        return ksession;

    }

 

 

Is this enough to make history logging working?

Reply to this message by going to Community

Start a new discussion in jBPM at Community