I'm using KieFileSystem.write
to load a .drl file dynamically. Does it matter the location where the file is written within the virtual file system? All tutorials I found online seem to suggest src/main/resources/myRules.drl
and as far as I can tell rules written to other locations (say myRules.drl
) are not being loaded.
I think I read somewhere that Drools scans the classpath for .drl files. Does that mean it also loads files from the physical file system when a virtual one is explicitly created or does the virtual replaces the physical one?
Is there any detail explanation how the rule loading works?
I'm not using maven for my project BTW.