Mark Proctor | 1 Oct 15:42

[rules-dev] Drools Examples Documentation Gets Beefed Up

Feedback welcome.
http://blog.athico.com/2007/10/drools-examples-documentation-gets.html

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

Jeff Brown | 1 Oct 17:46
Favicon

Re: [rules-dev] Drools Examples Documentation Gets Beefed Up

Section 10.1.13 says that the rules file for Conway is PetStore.drl.



jb

On 10/1/07, Mark Proctor < mproctor <at> codehaus.org> wrote:
Feedback welcome.
http://blog.athico.com/2007/10/drools-examples-documentation-gets.html

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



--
Jeff Brown
Principal Software Engineer
Object Computing Inc.
http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Mark Proctor | 1 Oct 18:02

[rules-dev] Re: JBoss rules execution algorithm

For the case when r2 has the 'not'. When 4 doesn't exist r3 is true, when r3 fires it asserts 4, thus r3 can no longer be true, however r4 retracts the 4 and 2  still exists, thus enabling r3 to match again which causes the recursion - basically the insertion and retracting of 4 is toggling r3 on and off. Best thing to do is always use the audit log so you can visualise what's going on.

Mark
lukichev wrote:

Dear Mark,

 

I have a question concerning rule execution algorithm in JBoss 4.0.1.

 

There are 2 rule sets, one runs in a circle and another one stops.

 

The first one, which stops:

 

rule "r1"

      when

            $num1:Integer(intValue == 1)

      then

            insert(new Integer(2));

end

 

rule "r2"

      when

            $num1:Integer(intValue == 2)

      then

            insert(new Integer(3));

end

 

rule "r3"

      when

            $num1:Integer(intValue == 2)

      then

          insert(new Integer(4));

end

 

rule "r4"

      when

            $num1:Integer(intValue == 3)

            $num2:Integer(intValue == 4)

      then

            retract($num2);

end

 

The second one, which runs in a circle, is different from the one above by the additional condition in r3:

 

            not $num2:Integer(intValue == 4)

 

I would expect the same behavior of these two rule sets, but it is different. Could you, please, comment, why this is so?

 

Sincerely,

Sergey Lukichev

Research Assistant, REWERSE I1, rule modeling and markup


_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Paul Browne | 2 Oct 09:27
Favicon
Gravatar

[rules-dev] Comment from doing the NumberGuess (RuleFlow) example

Folks,

Two general comments on the format of the RuleFlow (.rf) file from when I was doing the NumberGuess documentation.

When I built workflow apps using jBPM I was able to edit the workflow XML files by hand. Some people prefer this and it makes it easier should somebody want to build an alternative editor for these files ( e.g Web Based instead of the Eclipse IDE).  For jBPM I *had* to edit these manually , as the IDE kept crashing.

The comment / complaint is that the Drools Ruleflow files are much harder to edit. Yes, it's xml but the nodes do not seem to be in any particular order. With jBPM , the nodes tend to be arranged in a flow from Start to End.

Talking of Web Based editors for flow, have you seen the Ajax / DHTML Editor that Yahoo has for Pipes: http://firstpartners.net/blog/technology/xml/2007/03/23/yahoo-pipes-in-10-easy-steps-sample-for-iona-dublin/

This shows that it is possible to have a Flow editor implemented in HTML.

Just my two thoughts.

Paul


On 10/1/07, Mark Proctor <mproctor <at> codehaus.org> wrote:
Feedback welcome.
http://blog.athico.com/2007/10/drools-examples-documentation-gets.html

Mark
_______________________________________________
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
Mark Proctor | 2 Oct 14:52

Re: [rules-dev] Comment from doing the NumberGuess (RuleFlow) example

Paul Browne wrote:
Folks,

Two general comments on the format of the RuleFlow (.rf) file from when I was doing the NumberGuess documentation.

When I built workflow apps using jBPM I was able to edit the workflow XML files by hand. Some people prefer this and it makes it easier should somebody want to build an alternative editor for these files ( e.g Web Based instead of the Eclipse IDE).  For jBPM I *had* to edit these manually , as the IDE kept crashing.

The comment / complaint is that the Drools Ruleflow files are much harder to edit. Yes, it's xml but the nodes do not seem to be in any particular order. With jBPM , the nodes tend to be arranged in a flow from Start to End.
The XML is not currently meant to be human editable. We have an AST and we just dump that to XML using XStream. The reason for this is the tech is still maturing and we don't want to lock ourselves into supporting a particularly XML format yet. Again once our ruleflow matures we'll look at a simplified XML that we will support a long time.

Talking of Web Based editors for flow, have you seen the Ajax / DHTML Editor that Yahoo has for Pipes: http://firstpartners.net/blog/technology/xml/2007/03/23/yahoo-pipes-in-10-easy-steps-sample-for-iona-dublin/
Yes seen the SVG thing, its a matter of resources, if someone contributes the code we would love to see that :) Maybe once ruleflow matures we can put some resources into this.

This shows that it is possible to have a Flow editor implemented in HTML.

Just my two thoughts.

Paul


On 10/1/07, Mark Proctor <mproctor <at> codehaus.org> wrote:
Feedback welcome.
http://blog.athico.com/2007/10/drools-examples-documentation-gets.html

Mark
_______________________________________________
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
Paul Browne | 2 Oct 15:10
Favicon
Gravatar

Re: [rules-dev] Comment from doing the NumberGuess (RuleFlow) example

No problems. Always aware that it's easy to make suggestions , but hard to get the time to actually implement them.


On 10/2/07, Mark Proctor < mproctor <at> codehaus.org> wrote:
Paul Browne wrote:
Folks,

Two general comments on the format of the RuleFlow (.rf) file from when I was doing the NumberGuess documentation.

When I built workflow apps using jBPM I was able to edit the workflow XML files by hand. Some people prefer this and it makes it easier should somebody want to build an alternative editor for these files ( e.g Web Based instead of the Eclipse IDE).  For jBPM I *had* to edit these manually , as the IDE kept crashing.

The comment / complaint is that the Drools Ruleflow files are much harder to edit. Yes, it's xml but the nodes do not seem to be in any particular order. With jBPM , the nodes tend to be arranged in a flow from Start to End.
The XML is not currently meant to be human editable. We have an AST and we just dump that to XML using XStream. The reason for this is the tech is still maturing and we don't want to lock ourselves into supporting a particularly XML format yet. Again once our ruleflow matures we'll look at a simplified XML that we will support a long time.

Talking of Web Based editors for flow, have you seen the Ajax / DHTML Editor that Yahoo has for Pipes: http://firstpartners.net/blog/technology/xml/2007/03/23/yahoo-pipes-in-10-easy-steps-sample-for-iona-dublin/
Yes seen the SVG thing, its a matter of resources, if someone contributes the code we would love to see that :) Maybe once ruleflow matures we can put some resources into this.

This shows that it is possible to have a Flow editor implemented in HTML.

Just my two thoughts.

Paul


On 10/1/07, Mark Proctor <mproctor <at> codehaus.org > wrote:
Feedback welcome.
http://blog.athico.com/2007/10/drools-examples-documentation-gets.html

Mark
_______________________________________________
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
Mark Proctor | 3 Oct 00:21

[rules-dev] drl parser tests

Edson,

I notice that RuleParserTest.testLatinChars is failing, and you've 
marked it as FIX_ME (btw its FIXME). Is this a FUTURE, or meant to be 
fixed for 4.0.2?

Also I notice we hvae RuleParserTest and DrlParserTest, do we have a 
clean rule of thumb here which goes in which test - as it seems to 
overlap to me?

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

ekke | 3 Oct 11:17
Picon
Gravatar

[rules-dev] test snapshots


just tested the latest snapshot
before I always used only the 4.0.1

because I'm new to this list - if I find bugs, should I post this here
in the drools-dev list or should I report a JIRA (or both)

just recognized that one of my unit-tests fails and the reason
is a class cast exception using snapshot
(4.0.1 runs this test fine)
so I reported a JIRA (JBRULES-1245) - hope its the right way

ekke
--

-- 
View this message in context: http://www.nabble.com/test-snapshots-tf4560614.html#a13015242
Sent from the drools - dev mailing list archive at Nabble.com.

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

Mark Proctor | 3 Oct 13:58

Re: [rules-dev] test snapshots

ekke wrote:
> just tested the latest snapshot
> before I always used only the 4.0.1
>
> because I'm new to this list - if I find bugs, should I post this here
> in the drools-dev list or should I report a JIRA (or both)
>   
JIRA is best really, we get so much in the mailing lists stuff can get 
forgotten.
> just recognized that one of my unit-tests fails and the reason
> is a class cast exception using snapshot
> (4.0.1 runs this test fine)
> so I reported a JIRA (JBRULES-1245) - hope its the right way
>
> ekke
>   

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

Sourav.Biswas | 4 Oct 11:38
Favicon

[rules-dev] how to use rule files generated by Guided DRL editor

 

 

Hi,

 

I had been trying to write rules using the guided DRL editor. I am new to Drools and have just started using it. I am getting two files- one with .brxml extension and another one with .package extension. Cud u kindly give me some information on which classes to use in my java code in order to use these rules. A sample code(if possible) would be very helplful.

 

Thanks And Regards,

 

Sourav Biswas

 

 

 

 

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Gmane