Yes, you must use the
JPAKnowledgeService
to do that:
StatefulKnowledgeSession ksession =
JPAKnowledgeService.newStatefulKnowledgeSession( kbase, null, env );

Take a look at:
http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html_single/index.html#d0e1496

2009/10/5 Anderson vasconcelos <anderson.vass@gmail.com>
Hi

I'm have a flow with two moments. First the client created the task. Second  the user approve the task.  The Second  can occurred in another day, year, month. Has one way to persist the StatefulKnowledgeSession in database and recuperated them again?

This is necessary:
1) Because my Application Server can crash and i need to recuperated my session
2) Because i need to update the facts after user approve task

Thanks


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -