[rules-users] No rules loaded when reading package from Guvnor

Esteban Aliverti esteban.aliverti at gmail.com
Fri Nov 18 03:53:57 EST 2011


@Michael, yes, Geoffrey merged it. I couldn't finish the test I was
preparing because I need to finish some stuff first :(. The fact that "mvn
test -Dtest=Whatever" is not working is also making my life miserable :)

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Thu, Nov 17, 2011 at 2:43 PM, sgo <simon.goumaz at elca.ch> wrote:

> Confirmed. There is no issue loading the package from the filesystem.
> We do need to keep the kbase in sync without restarting our app, so for now
> we'll just avoid loading directly from Guvnor.
>
> Thanks a lot both for your help.
>
>
> Esteban wrote:
> >
> > I think you are fighting with this known bug:
> > https://issues.jboss.org/browse/GUVNOR-1699
> >
> > ResourceChangeScanner is marking guvnor's resources as removed. I
> > committed
> > a patch some days ago.
> > If you are not interested in keep the kbase in sync with the changes made
> > in Guvnor, a valid workaround could be not to use the kagent and get the
> > pkg directly from Guvnor's URL
> >
> > Best Regards,
> >
> > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
> >
> > Esteban Aliverti
> > - Developer @ http://www.plugtree.com
> > - Blog @ http://ilesteban.wordpress.com
> >
> >
> > On Wed, Nov 16, 2011 at 3:43 PM, sgo &lt;simon.goumaz@&gt; wrote:
> >
> >> Update: if I don't start the resource change scanner, the session
> created
> >> with Spring is fine too. So, when starting the scanner, the difference
> >> between the Spring case (package loaded but no rules) and the Java code
> >> case
> >> (no package at all) may be due to code sequence, as in the code I'm
> using
> >> the scanner is started in my service class constructor, after creating
> >> the
> >> session in Java code but before Spring beans are injected. Depending on
> >> your
> >> replies I may then try testing with different sequences.
> >>
> >>
> >> sgo wrote:
> >> >
> >> > @Michael:
> >> >
> >> > Yes this is the right track... I created an alternate session without
> >> > Spring by simply loading the package from the URL with a
> >> KnowledgeBuilder,
> >> > it worked (the rules were there).
> >> >
> >> > Then I went on and created another session with a KnowledgeAgent
> >> loading
> >> > my XML ChangeSet (still without Spring), and I observed the following:
> >> > 1. When the session is created, all is fine (package and rules loaded
> >> > properly in session)
> >> > 2. When I start the ResourceChangeScanner
> >> > (ResourceFactory.getResourceChangeScannerService().start()), however,
> >> the
> >> > loaded package disappears from the session.
> >> >
> >> > So there are now two things I need to understand:
> >> > 1. Why does starting the scanner clear the packages loaded in the
> >> session?
> >> > 1. What is the issue when using Spring, as with Spring I still have my
> >> > package loaded in the session but no rules?
> >> >
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://drools.46999.n3.nabble.com/No-rules-loaded-when-reading-package-from-Guvnor-tp3510245p3512855.html
> >> Sent from the Drools: User forum mailing list archive at Nabble.com.
> >> _______________________________________________
> >> rules-users mailing list
> >> rules-users at .jboss
> >> https://lists.jboss.org/mailman/listinfo/rules-users
> >>
> >
> > _______________________________________________
> > rules-users mailing list
> > rules-users at .jboss
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/No-rules-loaded-when-reading-package-from-Guvnor-tp3510245p3515794.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111118/0db9d48f/attachment.html 


More information about the rules-users mailing list