<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Unfortunately I'm unable to reproduce this error with the latest stable build, <A href="http://cruisecontrol.jboss.com/cc/artifacts/jboss-rules/drools-4.0.0.SNAPSHOT-brms.zip">http://cruisecontrol.jboss.com/cc/artifacts/jboss-rules/drools-4.0.0.SNAPSHOT-brms.zip</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I was getting a similar error a couple of weeks ago duo <A href="http://web.xml">web.xml</A> descriptor problems. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Please check your <A href="http://web.xml">web.xml</A> for the following servlet mapping.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#0000E1" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><servlet-mapping></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#0000E1" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><servlet-name></SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">PackageDeploymentServlet</SPAN></FONT><FONT class="Apple-style-span" color="#0000E1" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"></servlet-name></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#0000E1" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><url-pattern></SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">/org.drools.brms.JBRMS/package/*</SPAN></FONT><FONT class="Apple-style-span" color="#0000E1" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"></url-pattern></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#0000E1" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"></servlet-mapping></SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>or download the last snapshot. </DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Fernando Meyer</DIV><DIV><A href="mailto:fmcamargo@gmail.com">fmcamargo@gmail.com</A></DIV><DIV>GPG: 5A6D 3374 B055 A513 9A02 A03B 3DB3 7485 D804 DDFB</DIV></SPAN><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV><DIV><BR><DIV><DIV>On May 30, 2007, at 7:01 AM, Rajesh_Kumar wrote:</DIV><BLOCKQUOTE type="cite"><P dir="LTR"><SPAN lang="en-us"></SPAN><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Hi,</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN></P><DIV style=""><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN><BR class="khtml-block-placeholder"></DIV><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">I am also facing the same problem.</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN></P><DIV style=""><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN><BR class="khtml-block-placeholder"></DIV><P dir="LTR"><SPAN lang="en-us"></SPAN><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">I mean</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"> <FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">I</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"> am not</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"> able</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"> to</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"> <FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">download the package after creating the snapshot.</SPAN></FONT></SPAN></P><DIV style=""><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN><BR class="khtml-block-placeholder"></DIV><P dir="LTR"><SPAN lang="en-us"></SPAN><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">My application environment is as follows.</SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Jboss</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"> <FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">AS 4.0.2</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">JDK</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"> 1.5</SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">I have also tried it with the Jboss AS 4.0.5 as BRMS is tested</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"> <FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">on this version of Jboss AS, but result was same.</SPAN></FONT></SPAN></P><DIV style=""><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN><BR class="khtml-block-placeholder"></DIV><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Please let me know if you find any solutions.</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN></P><DIV style=""><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN><BR class="khtml-block-placeholder"></DIV><P dir="LTR"><SPAN lang="en-us"></SPAN><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Regards,</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Arial" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Rajesh Choudhary.</SPAN></FONT></SPAN><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN></P><DIV style=""><SPAN lang="en-us"></SPAN><SPAN lang="en-us"></SPAN><BR class="khtml-block-placeholder"></DIV><P dir="LTR"><SPAN lang="en-us"></SPAN><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Message: 1</SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Date: Wed, 30 May 2007 01:23:58 -0300</SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">From: Fernando Meyer <<A href="mailto:fmcamargo@gmail.com">fmcamargo@gmail.com</A>></SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Subject: Re: [rules-users] Re: JBRMS Query, very imp for me</SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">To: Rules Users List <<A href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>></SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Message-ID: <<A href="mailto:535CD4A5-B9BE-441D-AD95-C7CD8279AC19@gmail.com">535CD4A5-B9BE-441D-AD95-C7CD8279AC19@gmail.com</A>></SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Content-Type: text/plain; charset="us-ascii"</SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Howdy jagaran,</SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"> <FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Can you please give me some informations about your application </SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">environment?</SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">are you running on jboss AS, tomcat or jetty ?</SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">regards Fernando</SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Fernando Meyer</SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><A href="mailto:fmcamargo@gmail.com">fmcamargo@gmail.com</A></SPAN></FONT></SPAN></P><P dir="LTR"><SPAN lang="en-us"><FONT class="Apple-style-span" face="Courier New" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">GPG: 5A6D 3374 B055 A513 9A02 A03B 3DB3 7485 D804 DDFB</SPAN></FONT></SPAN></P></BLOCKQUOTE></DIV><DIV><BR class="khtml-block-placeholder"></DIV></DIV><BR><DIV><DIV>On May 30, 2007, at 7:24 AM, jagaran das wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hi,<BR><BR>NIce to receive your reply.<BR>I am running on jboss-4.0.4.GA.<BR><BR>Jagaran <BR><B><I><A href="mailto:rules-users-request@lists.jboss.org">rules-users-request@lists.jboss.org</A></I></B> wrote:<BLOCKQUOTE class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Send rules-users mailing list submissions to<BR> <A href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR> <A href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>or, via email, send a message with subject or body 'help' to<BR> <A href="mailto:rules-users-request@lists.jboss.org">rules-users-request@lists.jboss.org</A><BR><BR>You can reach the person managing the list at<BR> <A href="mailto:rules-users-owner@lists.jboss.org">rules-users-owner@lists.jboss.org</A><BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents of rules-users digest..."<BR><BR><BR>Today's Topics:<BR><BR> 1. Re: Re: JBRMS Query, very imp for me (Fernando Meyer)<BR> 2. Re: DSL to DRL File Conversion - Is it possible ? (kingston)<BR> 3. About Decision table (kranthikumar dalai)<BR> 4. Two Doubts (Joj)<BR> 5. Re: "Or" and Collect (Dirk Bergstrom)<BR> 6. Example for using globals in Drools3.0.6 (Joj)<BR> 7. Re: Example for using globals in Drools3.0.6 (JLL)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Wed, 30 May 2007 01:23:58 -0300<BR>From: Fernando Meyer <BR>Subject: Re: [rules-users] Re: JBRMS Query, very imp for me<BR>To: Rules Users List <BR>Message-ID: <<A href="mailto:535CD4A5-B9BE-441D-AD95-C7CD8279AC19@gmail.com">535CD4A5-B9BE-441D-AD95-C7CD8279AC19@gmail.com</A>><BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>Howdy jagaran,<BR><BR> Can you please give me some informations about your application <BR>environment?<BR>are you running on jboss AS, tomcat or jetty ?<BR><BR>regards Fernando<BR><BR>Fernando Meyer<BR><A href="mailto:fmcamargo@gmail.com">fmcamargo@gmail.com</A><BR>GPG: 5A6D 3374 B055 A513 9A02 A03B 3DB3 7485 D804 DDFB<BR><BR><BR>On May 30, 2007, at 12:54 AM, jagaran das wrote:<BR><BR>> Hi Mark,<BR>> You are right I would try to use Hibernate to store data in MySql.<BR>> But I have a different problem.<BR>> For creating rule package through JBRMS I have done following stuffs:<BR>><BR>> The project is really great.<BR>> but i am unable to download the binary package.<BR>> The steps followed by me is as below:<BR>> 1. created a category.<BR>> 2. created a package associated with that category.<BR>> 3.Loaded a fact model which is a bean class and linked it with the <BR>> package.<BR>> 4. created some business rules.<BR>> 5.imported the bean class in the configure package option and saved <BR>> the changes.<BR>> 6. created a new snapshot.<BR>> 7. Build the package and it shown a success message too.<BR>> 8. Now tried to download the package but it is giving package not <BR>> found.<BR>> Please let me know the solution.<BR>> The message below is shown after i have created all the necessary <BR>> stuffs.<BR>><BR>> Building a package will collect all the assets, validate and <BR>> compile into a deployable package.<BR>><BR>> and the message that<BR>> Package built successfully.<BR>> But cant down load the package as it is giving the following menage.<BR>><BR>> Status report<BR>> message /drools-jbrms/org.drools.brms.JBRMS/package/com.sample/LATEST<BR>> description The requested resource (/drools-jbrms/ <BR>> org.drools.brms.JBRMS/package/com.sample/LATEST) is not available.<BR>> Please let me know of the solutions.<BR>><BR>> Mark Proctor wrote:<BR>> you lost me, sounds like you don't want to use jackrabbit <BR>> persistence, but have your own way to store normalised rules in <BR>> your own database schema - we don't have anything for that at the <BR>> moment, you'd have to create this yourself.<BR>><BR>> Mark<BR>> jagaran das wrote:<BR>>> Hey Mark,<BR>>><BR>>> Nice to receive your post.<BR>>> If we want to store data directly in the database we need some <BR>>> specific rule table and ruleset table and other tables and a <BR>>> persistence service like Hibernate.<BR>>> But we need to pick the values from the gui and arrange it <BR>>> accordingly.<BR>>><BR>>> Regards<BR>>> JAGARAN<BR>>><BR>>> Download prohibited? No problem! CHAT from any browser, without <BR>>> download.<BR>><BR>><BR>><BR>> Did you know? You can CHAT without downloading messenger. Know how!<BR>> _______________________________________________<BR>> rules-users mailing list<BR>> rules-users@lists.jboss.org<BR>> https://lists.jboss.org/mailman/listinfo/rules-users<BR><BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070530/c72636e9/attachment-0001.html<BR><BR>------------------------------<BR><BR>Message: 2<BR>Date: Tue, 29 May 2007 22:14:14 -0700 (PDT)<BR>From: kingston <BR>Subject: Re: [rules-users] DSL to DRL File Conversion - Is it possible<BR> ?<BR>To: rules-users@lists.jboss.org<BR>Message-ID: <10867626.post@talk.nabble.com><BR>Content-Type: text/plain; charset=us-ascii<BR><BR><BR>Hi Mark ,<BR><BR>Can you just help me in converting this drl to dsl. ? How do i break lines<BR>in DSL involving OR conditions.?<BR>"[when]-" works for AND conditions . Do i really need give some english text<BR>(DSL mapping) for each line of the when condition when i use "[when]-"<BR><BR><BR>//Sample drl file.<BR><BR>package com.fruit;<BR>import com.test.sample.*;<BR><BR><BR>rule "FruitExample"<BR> <BR> when<BR> C: Customer();<BR> Fruit ( name == "apple" , costinrupees == 10) ; &&<BR> eval ( C.getNumOfCustomers() == 20 && ( C.getCityname() == "kanput" ||<BR>C.getCityname() == "Disput" )) <BR> then <BR> System.out.println("Rule Success");<BR> <BR>end<BR><BR><BR>The above conditions could be wrriten on a single line using eval() . But<BR>this looks pretty long. Are there any other options i coudl try for breaking<BR>line.? Do we have any workarounds for this.?<BR><BR><BR><BR>Mark Proctor wrote:<BR>> <BR>> Its not straight forward but you can use the DRLDumper, one a <BR>> PackageDescr, assuming it parses without errors:<BR>> DrlParser parser = new DrlParser();<BR>> PackageDescr pkg = parser.parse( source,<BR>> dsl );<BR>> final DrlDumper drlDumper = new DrlDumper();<BR>> final String drlResult = drlDumper.dump( pkg );<BR>> <BR>> <BR>> <BR>> Michael Neale wrote:<BR>>> no in 3.0 version unfortunately. You can tell the parser to print out <BR>>> the DRL - but it will just write it out the System.out (only for <BR>>> debuggin). Look in RuleParser for that option.<BR>>><BR>>> In trunk - which will be the new version - there is a seperate step <BR>>> which outputs DRL - but I don't think that made it into the M1 release <BR>>> - should be in M2 though.<BR>>><BR>>> On 3/7/07, *kingston* <BR>>> > wrote:<BR>>><BR>>><BR>>> Is there anyway to get the DRL syntax out of the DSL format?<BR>>><BR>>> Is there any Convenient API method Which takes rule in DSL format<BR>>> and the<BR>>> DSL File Name as arguments and returns the DRL Syntax ?<BR>>><BR>>> --<BR>>> View this message in context:<BR>>> <BR>>> http://www.nabble.com/DSL-to-DRL-File-Conversion---Is-it-possible---tf3360408.html#a9347582<BR>>> Sent from the drools - user mailing list archive at Nabble.com<BR>>> <HTTP: nabble.com="">.<BR>>><BR>>> _______________________________________________<BR>>> rules-users mailing list<BR>>> rules-users@lists.jboss.org <BR>>> https://lists.jboss.org/mailman/listinfo/rules-users<BR>>><BR>>><BR>>> ------------------------------------------------------------------------<BR>>><BR>>> _______________________________________________<BR>>> rules-users mailing list<BR>>> rules-users@lists.jboss.org<BR>>> https://lists.jboss.org/mailman/listinfo/rules-users<BR>>> <BR>> <BR>> <BR>> _______________________________________________<BR>> rules-users mailing list<BR>> rules-users@lists.jboss.org<BR>> https://lists.jboss.org/mailman/listinfo/rules-users<BR>> <BR>> <BR><BR><BR>:-/<BR>-- <BR>View this message in context: http://www.nabble.com/DSL-to-DRL-File-Conversion---Is-it-possible---tf3360408.html#a10867626<BR>Sent from the drools - user mailing list archive at Nabble.com.<BR><BR><BR><BR>------------------------------<BR><BR>Message: 3<BR>Date: Wed, 30 May 2007 10:44:23 +0530<BR>From: "kranthikumar dalai" <BR>Subject: [rules-users] About Decision table<BR>To: rules-users@lists.jboss.org<BR>Message-ID:<BR> <BR>Content-Type: text/plain; charset="iso-8859-1"<BR><BR> Hi to all,<BR><BR> we wrote some rules as follows<BR><BR><BR>package com.leave<BR><BR>import com.leave.paternity;<BR><BR><BR><BR>rule "Paternity Approved"<BR><BR>salience 1000<BR><BR>when<BR><BR>paternity : paternity(gender == 'male',status =='married',role<BR>=='permanent',tenure <= 2,year == 1,applied ==2);<BR><BR>then<BR><BR>paternity.eligible = 2;<BR><BR>paternity.available = 2;<BR><BR>System.out.println("leave approved for :" + paternity.getname());<BR><BR>System.out.println("Total eligible leaves are :" + paternity.getEligible());<BR><BR>end<BR><BR>rule "Paternity Approved1"<BR><BR>salience 800<BR><BR>when<BR><BR>paternity : paternity(gender == 'male',status =='married', role<BR>=='permanent(Onsite)',tenure <= 2 , year ==1, applied ==2,withinmonth <=<BR>30); //withinmonth means if applied with in a month after returning from<BR>Onsite<BR><BR>then<BR><BR>paternity.eligible = 2;<BR><BR>paternity.available = 2;<BR><BR>System.out.println("leave approved for :" + paternity.getname());<BR><BR>System.out.println("Total eligible leaves for employee Onsite are :" +<BR>paternity.getEligible());<BR><BR>end<BR><BR><BR><BR>And they are working fine in jboss 4.0<BR><BR><BR><BR>But we need help that in (from the above how can we write decision table for<BR>user (non developer that he wants to change the rulse)<BR><BR>Pls give us some useful suggestions<BR><BR>Regards:<BR><BR>Kranthi Dalai<BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070530/09fbd625/attachment-0001.html<BR><BR>------------------------------<BR><BR>Message: 4<BR>Date: Tue, 29 May 2007 22:16:58 -0700 (PDT)<BR>From: Joj <BR>Subject: [rules-users] Two Doubts<BR>To: rules-users@lists.jboss.org<BR>Message-ID: <10867640.post@talk.nabble.com><BR>Content-Type: text/plain; charset=us-ascii<BR><BR><BR>Hi,<BR><BR>I have two doubts :<BR><BR>1) Can't we use mathematical operations like average, sum, max, min, etc on<BR>the LHS of rule? If, how can I use it? Please show me an example.<BR><BR>2) Can't we manipulate - add and lookup - on a List object on LHS and RHS?<BR>If possible, how can I do it?<BR>Please describe using a sample.<BR><BR><BR>Thanks in advance<BR>Jojan<BR><BR><BR>-- <BR>View this message in context: http://www.nabble.com/Two-Doubts-tf3838282.html#a10867640<BR>Sent from the drools - user mailing list archive at Nabble.com.<BR><BR><BR><BR>------------------------------<BR><BR>Message: 5<BR>Date: Tue, 29 May 2007 22:33:13 -0700<BR>From: Dirk Bergstrom <BR>Subject: Re: [rules-users] "Or" and Collect<BR>To: Rules Users List <BR>Message-ID: <465D0C99.8080605@juniper.net><BR>Content-Type: text/plain; charset=ISO-8859-1<BR><BR>Edson Tirelli was heard to exclaim, On 05/29/07 17:13:<BR>> $badBugs : List() from<BR>> collect( Bug( (devOwner memberOf $group || supportOwner memberOf $group),<BR>> severity == "hair-on-fire" )<BR>> And use || and && for connecting constraints<BR>> and "and" and "or" for connecting CE's.<BR><BR>Ahh, ok. From the examples I'd seen, it was hard to tell, and the docs still<BR>show the two as equivalent for connecting CEs (section 3.15).<BR><BR>This will allow me to replace an ugly predicate hack with a clunky but workable<BR>parenthetical grouping. Of course, if you'd care to implement yet another handy<BR>Collections-based constraint, I could make it really clean:<BR><BR>We've got "contains", and now "memberOf" (thanks for implementing my<BR>suggestion), so how about "intersects"?<BR><BR> CheeseCounter( stinkyCheeses intersects crumblyCheeses )<BR><BR>Then I could write my rule like so:<BR><BR>collect( Bug( (owners intersects $group), ...<BR><BR>This would save me from having to edit ten or twenty rules when management<BR>inevitably decides that another kind of owner has to be included in the rules --<BR>there are actually five "owners" now (which makes for a very ugly parenthetical).<BR><BR>Can I file a jira for "intersects", or should I quit being greedy, and enjoy the<BR>shiny new "memberOf" that I am in fact very happy about? :)<BR><BR>-- <BR>Dirk Bergstrom dirk@juniper.net<BR>_____________________________________________<BR>Juniper Networks Inc., Computer Geek<BR>Tel: 408.745.3182 Fax: 408.745.8905<BR><BR><BR>------------------------------<BR><BR>Message: 6<BR>Date: Tue, 29 May 2007 23:15:01 -0700 (PDT)<BR>From: Joj <BR>Subject: [rules-users] Example for using globals in Drools3.0.6<BR>To: rules-users@lists.jboss.org<BR>Message-ID: <10868057.post@talk.nabble.com><BR>Content-Type: text/plain; charset=us-ascii<BR><BR><BR>Hi,<BR><BR>In the document, its written that "They are typically used to return data"<BR>under globals section. How can I return a global value to the calling<BR>method? In other words, how can I receive it in Java code? Can anybody<BR>explain with a simple example?<BR><BR>And please identify the changes required if I need to get the value of<BR>global in the example below:<BR><BR>........<BR><BR>global String status<BR><BR>rule "FindStatus"<BR> when<BR> student: Student ( mark >= 50 )<BR> then<BR> status = "passed";<BR>end<BR><BR><BR>In this case, there's no need of a global variable, I know. But, anyway, how<BR>can I get its value on the calling method?<BR><BR><BR>Thanks in advance,<BR>Jojan<BR><BR><BR>-- <BR>View this message in context: http://www.nabble.com/Example-for-using-globals-in-Drools3.0.6-tf3838437.html#a10868057<BR>Sent from the drools - user mailing list archive at Nabble.com.<BR><BR><BR><BR>------------------------------<BR><BR>Message: 7<BR>Date: Wed, 30 May 2007 00:50:18 -0700 (PDT)<BR>From: JLL <BR>Subject: Re: [rules-users] Example for using globals in Drools3.0.6<BR>To: rules-users@lists.jboss.org<BR>Message-ID: <10869121.post@talk.nabble.com><BR>Content-Type: text/plain; charset=us-ascii<BR><BR><BR>hi<BR><BR>i thing using a string could cause some problems<BR>better use your own object named like "Mock" containing a string with setter<BR>and getter<BR><BR>in the java code assert the object in working memory with<BR>MemoryManager.getWorkingMemory().setGlobal("mock", mock);<BR><BR>in the rule file<BR> don't forget to import your Mock<BR>and <BR> global Mock mock<BR><BR> in the when <BR> $mock : Mock( )<BR> and other conditions<BR><BR> in the then statement <BR> $mock.setMyString("hello world");<BR><BR>after the rule fire the value must have been changed ...<BR><BR>hope it's clear enough<BR>friendly<BR><BR>JLL<BR><BR><BR>Joj wrote:<BR>> <BR>> Hi,<BR>> <BR>> In the document, its written that "They are typically used to return data"<BR>> under globals section. How can I return a global value to the calling<BR>> method? In other words, how can I receive it in Java code? Can anybody<BR>> explain with a simple example?<BR>> <BR>> And please identify the changes required if I need to get the value of<BR>> global in the example below:<BR>> <BR>> ........<BR>> <BR>> global String status<BR>> <BR>> rule "FindStatus"<BR>> when<BR>> student: Student ( mark >= 50 )<BR>> then<BR>> status = "passed";<BR>> end<BR>> <BR>> <BR>> In this case, there's no need of a global variable, I know. But, anyway,<BR>> how can I get its value on the calling method?<BR>> <BR>> <BR>> Thanks in advance,<BR>> Jojan<BR>> <BR>> <BR>> <BR><BR>-- <BR>View this message in context: http://www.nabble.com/Example-for-using-globals-in-Drools3.0.6-tf3838437.html#a10869121<BR>Sent from the drools - user mailing list archive at Nabble.com.<BR><BR><BR><BR>------------------------------<BR><BR>_______________________________________________<BR>rules-users mailing list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR><BR><BR>End of rules-users Digest, Vol 6, Issue 73<BR>******************************************<BR></HTTP:></BLOCKQUOTE><BR><DIV> <BR class="khtml-block-placeholder"></DIV><HR size="1"> Download prohibited? No problem! <A href="http://us.rd.yahoo.com/mail/in/ywebmessenger/*http://in.messenger.yahoo.com/webmessengerpromo.php">CHAT</A> from any browser, without download.<DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">rules-users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A></DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>