Decision table - Otherwise
by Michael Anstis
Hi,
I'm adding support for "otherwise" to (for the time being) the guided
decision table in Guvnor.
The idea being if you set a cell to represent "otherwise" the generated rule
is the opposite of the accumulation of the other cells; perhaps best
explained with an example:-
Person( name == )
Mark
Kris
Geoffrey
<otherwise>
This would generate:-
Person(name not in ("Mark", "Kris", "Geoffrey")
Equals is the simple example, this is my thoughts for the other operators we
might like to support:-
- != becomes "in (<list of the other cells' values)"
- < becomes ">= the maximum value of the other cells' values
For example:-
Person ( age < )
10
20
30
<otherwise>
Person ( age >= 30 )
- <= becomes "> the maximum value of the other cells' values
- > becomes "<= the minimum value of the other cells' values
- >= becomes "< the minimum value of the other cells' values
- "in" becomes "not in (<a list of all values contained in all the other
cells' lists of values>)"
For example:-
Person ( name in )
Jim, Jack
Lisa, Jane, Paul
<otherwise>
Person ( name not in ("Jim", "Jack", "Lisa", "Jane", "Paul" ) )
- I'm not sure there is a simple solution for "matches" and "soundslike"
but welcome advice, although a possibility might be to create a compound
field constraint:-
Person ( name soundslike )
Fred
Phil
not Person ( name soundslike "Fred" || soundslike "Phil" )
Would this be considered the most suitable approach?
Inputs and thoughts welcome.
Thanks,
Mike
13 years, 8 months
Forking to apply manual patch
by Leonardo Gomes
Hello Guys,
I didn't actually followed-up on all emails about the Git repository, but I
think that it should be simple.
*Problem:*
I would like to manually apply the changes that I did into
lr_unlinking_20101116 branch (+ some other changes I didn't commit yet) to
the newly split repositories.
I modified: drools-api, drools-core, drools-compiler.
*Solution:*
- Fork https://github.com/droolsjbpm/droolsjbpm-knowledge for the drools-api
changes
and https://github.com/droolsjbpm/drools for the others (core and compiler).
- Manually apply my patches, create a pull request.
Is that correct? Anything else to keep in mind?
Thanks,
Leonardo.
13 years, 9 months
Last bunch of GAV changes: artifactId drools-api renamed to knowledge-api
by Geoffrey De Smet
There are a few more GAV changes.
None of the directory structures needed to be changed, so the impact
should be small.
1) Most notably, *the artifactId of drools-api has been renamed to
knowledge-api.*
This is because it contains both the drools and the jBPM api.
Note: its groupId org.drools stays unaffected at this time.
This impacts droolsjbpm-tools, as the lib/drools-api.jar manifest entry
is now lib/knowledge-api.jar.
As a result tools might need to build up to 3 times (due to the problem
that tycho 0.11 will fix).
2) *Everything is set to groupId org.drools again.*
The repository parent poms, introduced during the split-up,
used a mixture of groupId org.drools and org.droolsjpbm.
This caused more confusion that it solves, so - until we come up with a
better alternative - everything is set to groupId org.drools again.
Note: all actual jars never had another groupId than org.drools.
--
With kind regards,
Geoffrey De Smet
13 years, 9 months
Query on drools
by praveen p
Hi,
We need to make a decision on whether to use Jboss drools for our project,
please help me out on this. We are planning to develop a tool which
generates random test data based on some conditions. These conditions can be
something like age>18<60, 6 lettered string containing only first four
letters of an alphabet, Amount=Price*quantity. We are planning to store
these conditions in drools rule engine and generate data based on them. The
java application has to connect to drools, fetch the rule associated with a
property, get back to java layer and generate some output based on these
rules. Is this possible using drools? Please let me know the possibility and
provide some clarity on it.
Regards,
Praveen.
13 years, 9 months