[rules-users] [DroosFlow] Restore the StatefulKnowledgeSession

Mauricio Salatino salaboy at gmail.com
Mon Oct 5 10:26:42 EDT 2009


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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091005/bbe6fc05/attachment.html 


More information about the rules-users mailing list