Jeff Parks | 1 Sep 01:33 2010
Picon
Picon

RuleFlowProcessFactory - no XML output?

I like the idea of creating a Drools Process via the Process API. It fits my usage model very well . What surprises me is that I have not seen a way to take the RuleFlowProcess and create a Process in XML format, which I would think to be a natural extension. I have to think I am missing something – can someone share me some code snippet that accomplishes my goal?

 

 

thanks

_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Jeff Parks | 1 Sep 01:38 2010
Picon
Picon

Re: RuleFlowProcessFactory - no XML output?

I should have mentioned that I am using Drools 5.1.1

 

From: Jeff Parks [mailto:jeff.parks <at> comcast.net]
Sent: Tuesday, August 31, 2010 4:33 PM
To: 'rules-users <at> lists.jboss.org'
Subject: RuleFlowProcessFactory - no XML output?

 

I like the idea of creating a Drools Process via the Process API. It fits my usage model very well . What surprises me is that I have not seen a way to take the RuleFlowProcess and create a Process in XML format, which I would think to be a natural extension. I have to think I am missing something – can someone share me some code snippet that accomplishes my goal?

 

 

thanks

_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Vijay K Pandey | 1 Sep 04:45 2010

Re: RuleFlowProcessFactory - no XML output?

Pass your RuleFlowProcess (process) object to following Drools XML dumper classes to get what you need.

 

String processBPMNXML = XmlRuleFlowProcessDumper.INSTANCE.dump(process);

 

String processRFXML  = XmlBPMNProcessDumper.INSTANCE.dump(process);

 

Will return the XML in BPMN or RuleFlow respectively.

 

Vijay

From: rules-users-bounces <at> lists.jboss.org [mailto:rules-users-bounces <at> lists.jboss.org] On Behalf Of Jeff Parks
Sent: Tuesday, August 31, 2010 6:39 PM
To: rules-users <at> lists.jboss.org
Subject: Re: [rules-users] RuleFlowProcessFactory - no XML output?

 

I should have mentioned that I am using Drools 5.1.1

 

From: Jeff Parks [mailto:jeff.parks <at> comcast.net]
Sent: Tuesday, August 31, 2010 4:33 PM
To: 'rules-users <at> lists.jboss.org'
Subject: RuleFlowProcessFactory - no XML output?

 

I like the idea of creating a Drools Process via the Process API. It fits my usage model very well . What surprises me is that I have not seen a way to take the RuleFlowProcess and create a Process in XML format, which I would think to be a natural extension. I have to think I am missing something – can someone share me some code snippet that accomplishes my goal?

 

 

thanks

_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
tom ska | 1 Sep 08:40 2010
Picon

Re: How can I know, how many facts are processed by stateFulSession?

Hello,
I think you understood me. Your solution is to validate facts in the rule. OK - I think this is a good idea, but... What if rules are created by no-IT (no-Math-aware ;) ) people? I can imagine situation where they do not validate this issue (div by 0). What then? If I send 1000 facts to ksession, and 901 has value set to 0? I want my 900 correct facts back. How can I know, how many have been processed?

P.S. I don't want to use globals to count this.

Thanks,
tom.

2010/8/31 Edson Tirelli <tirelli <at> post.com>
   I am not sure I understand your problem. The rule clearly should NOT match facts with value 0, as it will raise division by zero error all the time. So, the solution, in my mind is:

rule "r1"
    when
        p : CTestObj( value != 0 )

    then
        p.setValue( 1 / p.getValue() );
end

   If you need to give a different treatment to objects with value == 0, just add another rule for them.

   []s
   Edson


2010/8/31 tom ska <tiberium.linux <at> gmail.com>
Hello,
I have a class and rule:

class CTestObj
{
        private double value;

        void setValue(double v) {
                this.value = v;
        }

        double getValue() {
                return this.value;
        }
}

rule "r1"
    when
        p : CTestObj
    then
        p.setValue( 1 / p.getValue() );
end

As you can see, in this rule, there is risk, to put into stateFulSession object with value set 0. I can't validate this, because, this problem has a variation where I put into stateFulSession object with set no 0, but the rule will modify it...
So - I can't validate this = fact with value 0 is correct.

But I process with stateFulSession many, many facts... For example 1000. And, after 900 facts it occurs, that fact number 901 has value set on 0. In effect I get an exception:  org.drools.runtime.rule.ConsequenceException: java.lang.ArithmeticException: / by zero. And ksession stops processing facts. But, 900 facts are processed! I don't want to process them second time.
And this is my question:

How can I know, which fact is first no-processed fact? Which one stoped fireAllRules method?
Beacuse I don't want to process them another time.

Greetings :)
tom.





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




--
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat <at> www.jboss.com

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


_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
tom | 1 Sep 08:49 2010
Picon

Re: Getting rule's body to application.


Hi,
I want to ask for another thing connected to my question: am I to use Apache
Jackrabbit to solve my problem? I want to get rules body (CONDITION, ACTION,
globals definition...) but in Drools I see only classes which contains only
rule's name and rule's package.

Guvnor does it somehow. As far as I know, it uses Jackrabbit. Is this the
only one method?

Thanks,
tom.
--

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Getting-rule-s-body-to-application-tp1393181p1398650.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Mark Proctor | 1 Sep 09:11 2010

Re: copyright violation issue on Drools

On 01/09/2010 02:27, 山本 裕介 wrote:
Richard's answer was: - I am actually currently on PTO but will get back to you as soon as practicable when I return.(Aug 21) - We will not be removing those changes. Please do not continue asking about this matter.(Aug 31)
Yusuke Yamamoto,

A mailing list is not the right place to raise legal questions, there won't be many lawyers on here. I made my own opinion on how OSS licensing works very clear and the need for certainty. If you think I'm wrong then go through the Red Hat legal department and i'll obide by their decision.

Whatever your dispute is with Red Hat, don't take it out by needlessly harrasing my community and throwing your toys out of the pram; it won't achieve anything other than to make yourself look like a very troubled individual.

I've been as polite as I can, but you've harassed us on irc recently, despite me politely pleeding with you to leave and then decided to paste your own stupidity (irc log) into jira https://jira.jboss.org/o browse/JBRULES-2660. Now your pasting private conversations into public forums on a topic that no one on here cares about.

If you think your grievances are real and not achieving satisfaction directly with the Red Hat legal department,  then seek legal council and do it through the proper channels, otherwise STFU.

My guess is you are hoping to achieve your spiteful aims by being a bully and publicly harassing Red Hat communities and trying to publicly embarass Red Hat, your former employer. Unfortunately, for you, the only thing you are achieving is leaving a trail of google search results for your future employers to find, that will be on the internet FOREVER. Do you want them to form their opinion of youself from this thread?

So do yourself and your career a favour, take a holiday, go relax and put this behind you. Move forward with your life as you won't achieve anything positive going going down this route.

I think it's at times like this we can all learn a thing or two from Grand Master Yoda - "Fear is the path to the dark side. Fear leads to anger. Anger leads to hate. Hate leads to suffering."

Mark

PS. My advice is for you not to reply to this, and let this thread die here, nothing positive for you can be achieved.
That's why I post this matter to this list. On Sep 1, 2010, at 6:19 AM, Mark Proctor wrote:
Because this is a legal matter no one in my team can do anything or discuss anything with you, we've been instructed that everything must go through RHT legal. Please discuss this directly with Richard Fontana: rfontana <at> redhat.com Mark On 31/08/2010 17:41, 山本 裕介 wrote:
I have consulted RH legal dept. only to get no meaningful response. I guess Edson is the one who commit most of these files. The how and why they need to be uncommitted is attached to the Jira issue. Thanks, Yusuke On Sep 1, 2010, at 1:34 AM, Mauricio Salatino wrote:
Hi Yusuke, good question. I'm not sure where is the right place, but you are only asking to rollback your changes right? who commit all your contributions to the jboss repo? I also saw that you mention: "For several reasons, I decided to withdraw those contributions introduced from my spare time. " can you mention those reasons? so we, as community can learn why you want to remove your contributions. I'm just curious. Greetings. On Tue, Aug 31, 2010 at 12:50 PM, 山本 裕介 <yamamoyu <at> gmail.com> wrote: Where is the appropriate forum for copyright issues? On Sep 1, 2010, at 12:45 AM, Greg Barton wrote:
This is not the appropriate forum for copyrighgt issues. GreG On Aug 31, 2010, at 9:40, 山本 裕介 <yamamoyu <at> gmail.com> wrote: Hi, There's a copyright violation issue on Drools 5.1 release. Please remove the changes listed in the following issue. https://jira.jboss.org/browse/JBRULES-2660 Thanks, Yusuke _______________________________________________ rules-users mailing list rules-users <at> lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list rules-users <at> lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________ rules-users mailing list rules-users <at> lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO <at> http://www.plugtree.com - MyJourney <at> http://salaboy.wordpress.com - Co-Founder <at> http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - _______________________________________________ rules-users mailing list rules-users <at> lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________ rules-users mailing list rules-users <at> lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Alexandros Karypidis | 1 Sep 09:52 2010
Picon

Archived documentation for Drools 3?

  Hi all,

The Drools web site only has the docs/tutorials/etc for version 4 
onwards. I am looking for archived documentation of Drools version 3.x.y 
(I am new to Drools and need to work on a legacy application written 
with that version). Does anyone happen to have it?

Kind regards,
Alexandros

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

Mark Proctor | 1 Sep 10:01 2010

Re: Archived documentation for Drools 3?

  On 01/09/2010 08:52, Alexandros Karypidis wrote:
>    Hi all,
>
> The Drools web site only has the docs/tutorials/etc for version 4
> onwards. I am looking for archived documentation of Drools version 3.x.y
> (I am new to Drools and need to work on a legacy application written
> with that version). Does anyone happen to have it?
>
> Kind regards,
> Alexandros
You should be able to build the docs from here:
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/tags/3.0.6-GA/

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

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

Swapnil Sawant | 1 Sep 10:16 2010

Grouping of rules in Guvnor GUI

Hi,

 

 

How can I achieve grouping of rules through Guvnor GUI ?

 

For example,

 

Lets say I have created Rule 1 , Rule 2 , Rule 3 and Rule 4 by using ”Guvnor GUI only”.

 

Now , I want to group Rule 1 and 2 in “RuleGrp1” and Rule 3 and 4 in “RuleGrp2” using “Guvnor GUI only”.

 

 

I have heard about “agenda-group” in DRL files. But , I don’t wish to write this attribute in DRL files(in other words,I want to avoid writing DRL file manually) and then run the RuleGroup.

 

I want this whole process of creating and grouping of rules to be done “only using Guvnor” , so that I can point to the resulting binary package URL directly in my changeset.xml and start firing rules in my application.

 

Can any one pl help me in finding how to achieve this ?

 

 

Thanks & Regards,

Swapnil Sawant


This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Swindells, Thomas | 1 Sep 10:24 2010

Re: Grouping of rules in Guvnor GUI

What are you hoping to achieve by these groups of rules?

 

From: rules-users-bounces <at> lists.jboss.org [mailto:rules-users-bounces <at> lists.jboss.org] On Behalf Of Swapnil Sawant
Sent: 01 September 2010 09:16
To: rules-users <at> lists.jboss.org
Subject: [rules-users] Grouping of rules in Guvnor GUI

 

Hi,

 

 

How can I achieve grouping of rules through Guvnor GUI ?

 

For example,

 

Lets say I have created Rule 1 , Rule 2 , Rule 3 and Rule 4 by using ”Guvnor GUI only”.

 

Now , I want to group Rule 1 and 2 in “RuleGrp1” and Rule 3 and 4 in “RuleGrp2” using “Guvnor GUI only”.

 

 

I have heard about “agenda-group” in DRL files. But , I don’t wish to write this attribute in DRL files(in other words,I want to avoid writing DRL file manually) and then run the RuleGroup.

 

I want this whole process of creating and grouping of rules to be done “only using Guvnor” , so that I can point to the resulting binary package URL directly in my changeset.xml and start firing rules in my application.

 

Can any one pl help me in finding how to achieve this ?

 

 

Thanks & Regards,

Swapnil Sawant

 

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________



**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster <at> nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Gmane