ResourceChangeScanner is not bound to Guvnor in any way. It just check for
modifications in one or more resources. Resources can be files in the
filesystem, in the classpath or in an URL (being Guvnor a subset of these).
So, you can configure a knowledge agent with a handmade change-set (an xml
containing the resources definitions) pointing to your resources. Don't
forget to start ResourceChangeScanner and ResourceChangeNotifier
using ResourceFactory class.
If you want to have more control over when the changes in a package should
be applied, you can turn off (or never start) these 2 services and force a
scan in the resources using ResourceChangeScannerImpl.scan(). For an
example of this last approach, you can take a look at this test and its
superclass:
https://raw.github.com/droolsjbpm/drools/master/drools-compiler/src/test/...
https://raw.github.com/droolsjbpm/drools/master/drools-compiler/src/test/...
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Developer @
http://www.plugtree.com
- Blog @
http://ilesteban.wordpress.com
2011/12/5 Michael Anstis <michael.anstis(a)gmail.com>
Is there not a file scanner too that can be used with a
KnowledgeAgent?
I also recall there being some talk (reasonably) recently about the
Resource scanner being able to use FILE URLs. Have you tried?
With kind regards,
Mike
On 5 December 2011 19:20, starfish15 <pooja.ghosh(a)accenture.com> wrote:
> As such we are not using GUVNOR in the runtime for rules. We simply have
> the
> PKG files. Create them using GUVNOR, and then save the binary PKG files in
> our environment to run the rules.
>
> Since we r not using GUVNOR, we cant use Resource Scanner to know the
> updated PKG files. Also we want to run the rules w/o a server re-start whn
> the rules are further modified.
>
> Any assistance in the same will be highly appreciated.
>
> Regards,
> starfish
>
> --
> View this message in context:
>
http://drools.46999.n3.nabble.com/Want-help-with-Resource-Scanner-though-...
> Sent from the Drools: User forum mailing list archive at
Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users