I have recently started working on drools. I was just designing a simple application to understand it better.
I have a .drl
file having a couple of rules in the "when", "then" format. I have designed a flow diagram in a .bpmn
file(both for the same project). I don't want to set constraints explicitly in my flow diagram.
Is it possible for me to set constraints for my flow diagram in the .drl
file?
So that when I run all processes and rules together, my .drl
file should set constraints for my .bpmn
. I tried doing this by using some global variables. I am not happy with the working though.
It would be great if anyone can help me out.
Also, is it possible to design my own blocks for rule flow having properties which I am interested in? This is just out of curiosity.
Thank you