Wolfgang Laun | 1 Apr 2011 08:02
Picon

Re: [rules-dev] Decision table - Otherwise

Michael,

My position is that an otherwise for a single column is likely to
cause trouble by misunderstandings. Especially the operators >, >=, <,
<= are likely to be used to separate intervals, as in
r1:   age > 14, age <= 28
r2:   age > 28, age <= 42

If you apply the proposed definition, the otherwise results in
rx:   age <= 14, age > 42
which is obviously never true.

You can construct similar blackouts with two different fields, e.g.
r1:   age > 60, income > 100000
r2:   age > 40, income > 80000

You will have to do an in-depth analysis of the AST resulting from the
condition definition resulting from rule table lines $n+2 and $n+3 in
order to get it right.

My opinion is: Don't do it unless you can do it right.

Cheers
Wolfgang

PS: I could provide a definition for otherwise with matches and
soundslike, but I'd rather not.

On 31 March 2011 21:25, Michael Anstis <michael.anstis <at> gmail.com> wrote:
> Hi,
(Continue reading)

praveen p | 1 Apr 2011 08:40
Picon

Re: [rules-dev] Query on drools

Hi,
 
I'm not using drools to generate data, a java program would do that. I just want to know whether the java program can connect to drools, fetch corresponding rules from it and generate data based on the rule fetched(the conditions for data generation and the upper and lower limits come from rules). Please let me know if this is possible.
 
Regards,
Praveen.



On Tue, Mar 29, 2011 at 7:17 PM, Wolfgang Laun <wolfgang.laun <at> gmail.com> wrote:
Rules do not generate data. Rules can tell you whether existing data meets conditions. Now if you create test data randomly, you can run a rule base with this data, and at the end of the day, you will know whether you have a data set matching a certain rule - or not. But I don't think that this approach is the way you should go.
-W




On 29 March 2011 15:12, praveen p <p.praveenn <at> gmail.com> wrote:

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.


_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev



_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev


_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Leonardo Gomes | 1 Apr 2011 08:49
Picon

Re: [rules-dev] Forking to apply manual patch

I managed to fork/clone and get diffs from everything I did, but I still need to install Maven 3 and make it coexist with Maven 2 to be able to compile and test. Should be applying the patches later today, hopefully.

Thanks, Geoffrey.


On Thu, Mar 31, 2011 at 7:02 PM, Geoffrey De Smet <ge0ffrey.spam <at> gmail.com> wrote:


Op 31-03-11 17:25, Leonardo Gomes schreef:
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).

and clone your forks
- Manually apply my patches
locally, and then commit and push to your forks
, create a pull request.
2 probably, one for each repository
but yes, that should work :)


Is that correct? Anything else to keep in mind?

Thanks,
Leonardo.



_______________________________________________ rules-dev mailing list rules-dev <at> lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-dev

-- With kind regards, Geoffrey De Smet

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev


_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Michael Anstis | 1 Apr 2011 09:01
Picon
Gravatar

Re: [rules-dev] Decision table - Otherwise

hehe, so I walked into this one with my eyes wide shut :)

Given it is only possible to define implicit logical AND's between field constraints within a decision table and given it is not possible to introduce complexity with parenthesis, is the immediate problem domain smaller than the more generalised discussion surrounding "otherwise" or "else"?

The first limitation can be overcome by converting multiple single field constraints on the same field to a single compound field constraint on the same field; thus:-

r1:   age > 14, age <= 28 (i.e. age > 14 && <= 28) becomes
rx:   age <= 14 || > 28

I wonder whether this problem cannot simply be resolved with application of DeMorgan's Theorems (something I know a little about from studying electronics as a student years ago).

Unlike some commentators I am not an expert in first order logic, and therefore would appreciate guidance if people are willing to help.

Thanks,

Mike

On 1 April 2011 07:02, Wolfgang Laun <wolfgang.laun <at> gmail.com> wrote:
Michael,

My position is that an otherwise for a single column is likely to
cause trouble by misunderstandings. Especially the operators >, >=, <,
<= are likely to be used to separate intervals, as in
r1:   age > 14, age <= 28
r2:   age > 28, age <= 42

If you apply the proposed definition, the otherwise results in
rx:   age <= 14, age > 42
which is obviously never true.

You can construct similar blackouts with two different fields, e.g.
r1:   age > 60, income > 100000
r2:   age > 40, income > 80000

You will have to do an in-depth analysis of the AST resulting from the
condition definition resulting from rule table lines $n+2 and $n+3 in
order to get it right.

My opinion is: Don't do it unless you can do it right.

Cheers
Wolfgang

PS: I could provide a definition for otherwise with matches and
soundslike, but I'd rather not.


On 31 March 2011 21:25, Michael Anstis <michael.anstis <at> gmail.com> wrote:
> 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
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev <at> lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Wolfgang Laun | 1 Apr 2011 09:04
Picon

Re: [rules-dev] Query on drools

Yes, it would be possible, Rules, after compilation, are available as
Abstract Syntax Trees, representing the conditions. However, to access
these objects, you need to use classes from the "unstable" part of the
API, and there won't be much documentation helping you along.

Let me say that this is a very roundabout way of defining limits for
data generation. A conidtion is nothing but a boolean expression with
extensions such as "forall", "exists", "not", "collect", "accumulate",
which (I think) you won't be using anyway.

But I reserve my judgement because I don't know the specification for
your data generator.

-W

On 1 April 2011 08:40, praveen p <p.praveenn <at> gmail.com> wrote:
> Hi,
>
> I'm not using drools to generate data, a java program would do that. I just
> want to know whether the java program can connect to drools, fetch
> corresponding rules from it and generate data based on the rule fetched(the
> conditions for data generation and the upper and lower limits come from
> rules). Please let me know if this is possible.
>
> Regards,
> Praveen.
>
>
>
> On Tue, Mar 29, 2011 at 7:17 PM, Wolfgang Laun <wolfgang.laun <at> gmail.com>
> wrote:
>>
>> Rules do not generate data. Rules can tell you whether existing data meets
>> conditions. Now if you create test data randomly, you can run a rule base
>> with this data, and at the end of the day, you will know whether you have a
>> data set matching a certain rule - or not. But I don't think that this
>> approach is the way you should go.
>> -W
>>
>>
>>
>>
>> On 29 March 2011 15:12, praveen p <p.praveenn <at> gmail.com> wrote:
>>>
>>> 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.
>>>
>>> _______________________________________________
>>> rules-dev mailing list
>>> rules-dev <at> lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>>
>>
>>
>> _______________________________________________
>> rules-dev mailing list
>> rules-dev <at> lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev <at> lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Geoffrey De Smet | 1 Apr 2011 09:12
Picon
Gravatar

Re: [rules-dev] Forking to apply manual patch

If you're building the first time since the split-up, do take a look at the README to avoid all kinds of pitfalls:
  https://github.com/droolsjbpm/droolsjbpm-build-bootstrap/blob/master/README.md
It also talks about using UTF-8 encoding, unix (\n) line endings (in non-java files too), ...

Op 01-04-11 08:49, Leonardo Gomes schreef:
I managed to fork/clone and get diffs from everything I did, but I still need to install Maven 3 and make it coexist with Maven 2 to be able to compile and test. Should be applying the patches later today, hopefully.

Thanks, Geoffrey.


On Thu, Mar 31, 2011 at 7:02 PM, Geoffrey De Smet <ge0ffrey.spam <at> gmail.com> wrote:


Op 31-03-11 17:25, Leonardo Gomes schreef:
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).

and clone your forks
- Manually apply my patches
locally, and then commit and push to your forks
, create a pull request.
2 probably, one for each repository
but yes, that should work :)


Is that correct? Anything else to keep in mind?

Thanks,
Leonardo.



_______________________________________________ rules-dev mailing list rules-dev <at> lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-dev

-- With kind regards, Geoffrey De Smet

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev


_______________________________________________ rules-dev mailing list rules-dev <at> lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-dev

-- With kind regards, Geoffrey De Smet
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Wolfgang Laun | 1 Apr 2011 12:54
Picon

Re: [rules-dev] Decision table - Otherwise

Hello Michael,

On 1 April 2011 09:01, Michael Anstis <michael.anstis <at> gmail.com> wrote:
hehe, so I walked into this one with my eyes wide shut :)

Given it is only possible to define implicit logical AND's between field constraints within a decision table and given it is not possible to introduce complexity with parenthesis, is the immediate problem domain smaller than the more generalised discussion surrounding "otherwise" or "else"?

The first limitation can be overcome by converting multiple single field constraints on the same field to a single compound field constraint on the same field; thus:-

r1:   age > 14, age <= 28 (i.e. age > 14 && <= 28) becomes
rx:   age <= 14 || > 28

I wonder whether this problem cannot simply be resolved with application of DeMorgan's Theorems (something I know a little about from studying electronics as a student years ago).

Attaboy!
 

Unlike some commentators I am not an expert in first order logic, and therefore would appreciate guidance if people are willing to help.

Well, the point is that you can come up with pretty nasty constraints even without parentheses:

   a > $1 && != $2 && < $3    # implicit assumption: $1 < $2 < $3

Of course, de Morgan will help you here, too, but you'll have to develop some hefty symbolic expression handling.

If expressions E1, E2, are the combined logical expressions for some field from rules r1, r2,..., the "otherwise" condition is

¬ ( E1 || E2 || ... ) =
¬ E1 && ¬ E2 && ...

and you continue to apply de Morgan's laws to all Ei.

But what about the very natural constraint combination of two or more fields as in my age/income example?

Perhaps an entirely different approach should be considered, too. I'm thinking of a generic mechanism, which would have to gain control before any rule from a certain rule table is executed for another fact or set of facts. Then you could inspect all pending activations, and whenever you have one for a rule without an "otherwise" in a column it should discard any activations for the same fact set for rules with an "otherwise" in that column. I think this could be done from an agenda listener.

-W



 

Thanks,

Mike

On 1 April 2011 07:02, Wolfgang Laun <wolfgang.laun <at> gmail.com> wrote:
Michael,

My position is that an otherwise for a single column is likely to
cause trouble by misunderstandings. Especially the operators >, >=, <,
<= are likely to be used to separate intervals, as in
r1:   age > 14, age <= 28
r2:   age > 28, age <= 42

If you apply the proposed definition, the otherwise results in
rx:   age <= 14, age > 42
which is obviously never true.

You can construct similar blackouts with two different fields, e.g.
r1:   age > 60, income > 100000
r2:   age > 40, income > 80000

You will have to do an in-depth analysis of the AST resulting from the
condition definition resulting from rule table lines $n+2 and $n+3 in
order to get it right.

My opinion is: Don't do it unless you can do it right.

Cheers
Wolfgang

PS: I could provide a definition for otherwise with matches and
soundslike, but I'd rather not.


On 31 March 2011 21:25, Michael Anstis <michael.anstis <at> gmail.com> wrote:
> 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
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev <at> lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev


_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev


_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
praveen p | 1 Apr 2011 15:37
Picon

Re: [rules-dev] Query on drools

Hi W, thanks for the valuable info. To give you more clarity on what my data generator is trying to do I'll give you examples of some scenario:

There is property called age in my java application of data type integer for which 1000 random ages have to be generated. Now there is a rule associated with this 'age' property inside drools which says 'age should be between 18 and 60'. The java application has to go, fetch this rule from drools, come back to the java layer and generate 1000 random integers between the values 18 and 60.

There is a property called Date in my java application of data type data for which 250 random dates have to be generated. Now there is a rule associated with this 'date' property inside drools which says 'dates should only be between current month and last month'. The  java application has to go, fetch this rule from drools, come back to java layer and generate 250 random dates between current and previous month.

The data generation java functions are written and called based on the given rule and data type.
 
Can operations of these types be achieved with the use of drools?
 
Regards,
Praveen.
On Fri, Apr 1, 2011 at 12:34 PM, Wolfgang Laun <wolfgang.laun <at> gmail.com> wrote:
Yes, it would be possible, Rules, after compilation, are available as
Abstract Syntax Trees, representing the conditions. However, to access
these objects, you need to use classes from the "unstable" part of the
API, and there won't be much documentation helping you along.

Let me say that this is a very roundabout way of defining limits for
data generation. A conidtion is nothing but a boolean expression with
extensions such as "forall", "exists", "not", "collect", "accumulate",
which (I think) you won't be using anyway.

But I reserve my judgement because I don't know the specification for
your data generator.

-W


On 1 April 2011 08:40, praveen p <p.praveenn <at> gmail.com> wrote:
> Hi,
>
> I'm not using drools to generate data, a java program would do that. I just
> want to know whether the java program can connect to drools, fetch
> corresponding rules from it and generate data based on the rule fetched(the
> conditions for data generation and the upper and lower limits come from
> rules). Please let me know if this is possible.
>
> Regards,
> Praveen.
>
>
>
> On Tue, Mar 29, 2011 at 7:17 PM, Wolfgang Laun <wolfgang.laun <at> gmail.com>
> wrote:
>>
>> Rules do not generate data. Rules can tell you whether existing data meets
>> conditions. Now if you create test data randomly, you can run a rule base
>> with this data, and at the end of the day, you will know whether you have a
>> data set matching a certain rule - or not. But I don't think that this
>> approach is the way you should go.
>> -W
>>
>>
>>
>>
>> On 29 March 2011 15:12, praveen p <p.praveenn <at> gmail.com> wrote:
>>>
>>> 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.
>>>
>>> _______________________________________________
>>> rules-dev mailing list
>>> rules-dev <at> lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>>
>>
>>
>> _______________________________________________
>> rules-dev mailing list
>> rules-dev <at> lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev <at> lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Wolfgang Laun | 1 Apr 2011 15:57
Picon

Re: [rules-dev] Query on drools

Rules associate types (classes) with constraints on properties. So, in
fact, some rule will tell you: class Person, property int age, lower
bound 18, upper bound 60. To generate data, you'll have to create 1000
persons, each with some random age. (I'm assuming that you may want to
set other Person attributes according to other constraints in the same
rule - otherwise generating 1000 Persons between 18 and 60 will get
you about 20 persons for each age.)

You cannot express a constraining value such "current month" and "last
month". Such dynamic values would have to come from variables or other
facts; you cannot have them in rules (except as names).

-W

On 1 April 2011 15:37, praveen p <p.praveenn <at> gmail.com> wrote:
> Hi W, thanks for the valuable info. To give you more clarity on what my data
> generator is trying to do I'll give you examples of some scenario:
>
> There is property called age in my java application of data type integer for
> which 1000 random ages have to be generated. Now there is a rule associated
> with this 'age' property inside drools which says 'age should be between 18
> and 60'. The java application has to go, fetch this rule from drools, come
> back to the java layer and generate 1000 random integers between the values
> 18 and 60.
>
> There is a property called Date in my java application of data type data for
> which 250 random dates have to be generated. Now there is a rule associated
> with this 'date' property inside drools which says 'dates should only be
> between current month and last month'. The  java application has to go,
> fetch this rule from drools, come back to java layer and generate 250 random
> dates between current and previous month.
>
> The data generation java functions are written and called based on the given
> rule and data type.
>
> Can operations of these types be achieved with the use of drools?
>
> Regards,
> Praveen.
> On Fri, Apr 1, 2011 at 12:34 PM, Wolfgang Laun <wolfgang.laun <at> gmail.com>
> wrote:
>>
>> Yes, it would be possible, Rules, after compilation, are available as
>> Abstract Syntax Trees, representing the conditions. However, to access
>> these objects, you need to use classes from the "unstable" part of the
>> API, and there won't be much documentation helping you along.
>>
>> Let me say that this is a very roundabout way of defining limits for
>> data generation. A conidtion is nothing but a boolean expression with
>> extensions such as "forall", "exists", "not", "collect", "accumulate",
>> which (I think) you won't be using anyway.
>>
>> But I reserve my judgement because I don't know the specification for
>> your data generator.
>>
>> -W
>>
>>
>> On 1 April 2011 08:40, praveen p <p.praveenn <at> gmail.com> wrote:
>> > Hi,
>> >
>> > I'm not using drools to generate data, a java program would do that. I
>> > just
>> > want to know whether the java program can connect to drools, fetch
>> > corresponding rules from it and generate data based on the rule
>> > fetched(the
>> > conditions for data generation and the upper and lower limits come from
>> > rules). Please let me know if this is possible.
>> >
>> > Regards,
>> > Praveen.
>> >
>> >
>> >
>> > On Tue, Mar 29, 2011 at 7:17 PM, Wolfgang Laun <wolfgang.laun <at> gmail.com>
>> > wrote:
>> >>
>> >> Rules do not generate data. Rules can tell you whether existing data
>> >> meets
>> >> conditions. Now if you create test data randomly, you can run a rule
>> >> base
>> >> with this data, and at the end of the day, you will know whether you
>> >> have a
>> >> data set matching a certain rule - or not. But I don't think that this
>> >> approach is the way you should go.
>> >> -W
>> >>
>> >>
>> >>
>> >>
>> >> On 29 March 2011 15:12, praveen p <p.praveenn <at> gmail.com> wrote:
>> >>>
>> >>> 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.
>> >>>
>> >>> _______________________________________________
>> >>> rules-dev mailing list
>> >>> rules-dev <at> lists.jboss.org
>> >>> https://lists.jboss.org/mailman/listinfo/rules-dev
>> >>>
>> >>
>> >>
>> >> _______________________________________________
>> >> rules-dev mailing list
>> >> rules-dev <at> lists.jboss.org
>> >> https://lists.jboss.org/mailman/listinfo/rules-dev
>> >>
>> >
>> >
>> > _______________________________________________
>> > rules-dev mailing list
>> > rules-dev <at> lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/rules-dev
>> >
>> >
>>
>> _______________________________________________
>> rules-dev mailing list
>> rules-dev <at> lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev <at> lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Geoffrey De Smet | 1 Apr 2011 16:43
Picon
Gravatar

[rules-dev] Last bunch of GAV changes: artifactId drools-api renamed to knowledge-api

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
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Gmane