--- Begin Message ---Hi Fernando Thanks for your reply. Could you please tell me that is there any alternative to overcome this problem? Because this is a legal case in which the user just enter "" for a String field. So i have to validate this in my rule file. With Regards Prateek Katiyar ________________________________From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Thu 10/4/2007 5:31 PM To: [email protected] Subject: rules-users Digest, Vol 11, Issue 29 Send rules-users mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of rules-users digest..." Today's Topics: 1. About FactHandle ([EMAIL PROTECTED]) 2. RE: About FactHandle (Anstis, Michael (M.)) 3. Cannot recreate a rule or package after archiving in the BRMS (Shahad Ahmed) 4. Re: FW: About Quotes in Xml file (Fernando Meyer) ---------------------------------------------------------------------- Message: 1 Date: Thu, 4 Oct 2007 15:27:06 +0530 From: <[EMAIL PROTECTED]> Subject: [rules-users] About FactHandle To: <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" Hi I am using Drools 4.0. As per the Drools 4.0 documentation if we are declaring a object as global then we can not use "insert(java.lang.Object Object)" method on this object. It will be inserted implecetly.Now if we want to update this object in the RHS part of our rule file then we need the "FactHandle" for the object. Now as we know that the return type of "setGlobal(java.lang.String identifier, java.lang.Object value)" method is "void". So please tell me that how can i update this object in my rule file? Thanks. With Regards Prateek Katiyar The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071004/86ffeedf/attachment-0001.html ------------------------------ Message: 2 Date: Thu, 4 Oct 2007 12:20:26 +0100 From: "Anstis, Michael \(M.\)" <[EMAIL PROTECTED]> Subject: RE: [rules-users] About FactHandle To: "Rules Users List" <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4159 bytes Desc: not available Url : http://lists.jboss.org/pipermail/rules-users/attachments/20071004/2394d4eb/smime-0001.bin ------------------------------ Message: 3 Date: Thu, 4 Oct 2007 12:26:17 +0100 From: "Shahad Ahmed" <[EMAIL PROTECTED]> Subject: [rules-users] Cannot recreate a rule or package after archiving in the BRMS To: "Rules Users List" <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" If you archive a rule or package to delete it in the BRMS then you cannot create a new rule or package with the same name as the archived assets - you get an error saying the rule or package already exists! Is this the expected behaviour, or a bug? I have asked this question before (more than 3 days ago, honest:), but got no reply, so apologies to anyone who has read this question earlier. The workaround I'm using at the moment is to rename a package or rule before archiving it. This seems to allow you to create a new rule/package with the same name as the original rule/package - but it isn't nice or intuitive. Thanks Shahad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071004/63430673/attachment-0001.html ------------------------------ Message: 4 Date: Thu, 4 Oct 2007 09:00:55 -0300 From: "Fernando Meyer" <[EMAIL PROTECTED]> Subject: Re: [rules-users] FW: About Quotes in Xml file To: "Rules Users List" <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="utf-8" Hi, Definatelly it's a bug in the literalrestrictionhandler, http://jira.jboss.org/jira/browse/JBRULES-1248 and it's already available in the 4.0.2-snapshot Regards On 10/4/07, Anstis, Michael (M.) <[EMAIL PROTECTED]> wrote: > > Forwarded to user group under condition "#4. Send emails directly to > mailing list members, especially the developers" of the forum guidelines. > > ------------------------------ > *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > *Sent:* 04 October 2007 07:42 > *To:* Anstis, Michael (M.) > *Subject:* About Quotes in Xml file > > Hi > Thanks for your reply. > > I have a field "*m_rfqId*" in one of my JavaBean "*RFQBean*" and i want > to implement a rule on this field as > > *rule "Check_NotNullof_rfqId"* > > *agenda-group "Check"* > > *when* > > *RFQBean((m_rfqId == null)||(m_rfqId == ""))* > > *then* > > *response.setStatus("For RFQ Bean: The value of m_rfqId is null.");* > > *System.out.println(response.getStatus());* > > *end* > > Now when i used XmlDumper for the .xml format of this rule then i got the > following syntax: > > *<rule name="Check_NotNullof_rfqId">* > > *<rule-attribute name="agenda-group" value="Check" />* > > ** > > *<lhs><pattern object-type="RFQBean" >* > > *<or-constraint-connective><field-constraint field-name="m_rfqId"> * > > *<literal-restriction evaluator="==" value="null" />* > > ** > > *</field-constraint>* > > *<field-constraint field-name="m_rfqId"> * > > *<literal-restriction evaluator="==" value="" />* > > ** > > *</field-constraint>* > > ** > > *</or-constraint-connective>* > > ** > > *</pattern>* > > ** > > *</lhs><rhs> response.setStatus("For RFQ Bean: The value of m_rfqId is > null.");* > > *System.out.println(response.getStatus());* > > *</rhs>* > > *</rule>* > > When i tried with this .xml format then i got the follwing error: > * > > org.drools.compiler.DroolsParserException > *: *org.xml.sax.SAXParseException* > : <literal-restriction> requires an 'value' attribute > > at org.drools.compiler.PackageBuilder.addPackageFromXml( > *PackageBuilder.java:177*) > > at com.wipro.rfq.report.bean.Validator.readRule( > *Validator.java:90*) > > at com.wipro.rfq.report.bean.Validator.main( > *Validator.java:47*) > > Now please tell me that how can i achieve my requirement? > > Have a great day. > > *With Regards* > *Prateek *** > > > > > The information contained in this electronic message and any attachments > to this message are intended for the exclusive use of the addressee(s) and > may contain proprietary, confidential or privileged information. If you are > not the intended recipient, you should not disseminate, distribute or copy > this e-mail. Please notify the sender immediately and destroy all copies of > this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of viruses. The > company accepts no liability for any damage caused by any virus transmitted > by this email. > > www.wipro.com > > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > > > -- Fernando Meyer http://fmeyer.org <http://fmeyer.org/> JBoss Rules Core Developer [EMAIL PROTECTED] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071004/d8c52ee4/attachment.html ------------------------------ _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users End of rules-users Digest, Vol 11, Issue 29 *******************************************<<winmail.dat>>
--- End Message ---
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
