Is it possible to get Drools to load all the rules table within an excel
spreadsheet if they are spread across multiple worksheets?
From the documentation I have read it appears drools will only load the rules
from the first/a specified worksheet.
The only way I have found to do it is to load
Hi,
I had written some code for this a while ago. But, basically Drools uses jxl
for compiling decision tables.
You can also use JXL. It has an API that gives you all the worksheet names,
which you can then pass to the compiler one by one to compile all your decision
tables.
From memory it
You should use a code constraint, that allows you to access the variable
directly (if you define them as variables of your process at least,
click the background of your process and edit the variables property).
For example, if you have a variable count, you can have a code
constraint (MVEL or
What you need to do is implement your own SystemEventListener
implementation to override the default one. Before you do anything
meaningful with Drools, you'll want to override the default by calling:
SystemEventListenerFactory.setSystemEventListener(YOUR
SystemEventListenerImpl);
Here's
I'm not sure that having a thread wait like this until all processes
have completed is a good idea in general, as in theory processes could
run for a long time (hours/days/weeks/...). Unless of course you are
only using synchronous processes, but in that case the engine will only
return once the
Thanks Macon,
That is the information I was looking for. I was looking at the code and
it looked like there were some comments hinting at making the
SystemEventListener configurable. Is this a future feature? or am I
reading too much into the comments?
Thanks,
Steve Ronderos
Hello Kris,
Thank you for your reply.
I am currenty doing test-driven development outside an application
server to learn the API. I launch processes from within a unit test
method; hence my need to wait in this manner so that I can perform a
final assertion on process state (after the process
Hi Everyone,
I have a problem deploying drools5 project. In our deployment process due
to security reasons JVMS are not allowed to create clasloader. However
Drools is trying to create a CompositeClassLoader which interns calls a
System Class Loader's constructor, that is not allowed by JVM.
Kris, thanks for your answer...
I've tried to access the variable in a split constraint (return count != 1;)
with mvel dialect and I got this trace in runtime:
Uncaught exception on client
java.lang.RuntimeException: unable to execute ReturnValueEvaluator
at