[rules-users] Rules that cumulate on consequence
hi folks We are working on a requirement that requires us to have multiple rules that could fire for a given input and for all the rules that fire, we would want to cumulate the consequence to reach the final consequence. As an example, if we want to identify the credit score for a person, based on his gender you might want to assign/increment/decrement the score, then based on nationality, and so on. So, considering the long list of such criteria, having rules that cover all scenarios and are still mutually exclusive isnt a scalable solution. Could you please advice on how this could be achieved. We run Drools 5.1.1 and Guvnor; rules are made using the guided editor with DSLs. Awaiting your support, Best Regards -lj -- View this message in context: http://drools.46999.n3.nabble.com/Rules-that-cumulate-on-consequence-tp3530214p3530214.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Rules that cumulate on consequence
Thanks a billion mantis! We do think this would work; let me try it and confirm. -- View this message in context: http://drools.46999.n3.nabble.com/Rules-that-cumulate-on-consequence-tp3530214p3530252.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] String length check
@Davide, I'm using the guided editor and I am putting the value as 8 But the generated source shows 8. Not sure of this is a defect in Drools or something that I'm doing incorrectly. -- View this message in context: http://drools.46999.n3.nabble.com/String-length-check-tp3502269p3506079.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Using Enumeration for long lists
Hi, We are planning to use Drools for a Blacklist validation logic which requires us to manage very long list (could be tens of thousands of IDs). Can we use the native Drools enumeration for this? Would this be an optimal implementation? The other option we were thinking of was to have a list managed separately in our core application and have in lucene indexed such that Drools rule checks against the index. But, as you can see, it creates a lot of development as well as maintenance overhead. Thanks in advance for any tips on this topic. Best Regard -lj -- View this message in context: http://drools.46999.n3.nabble.com/Using-Enumeration-for-long-lists-tp3140051p3140051.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Retrieving Enumerated List from Drools
Hi, We have a custom CMS which we use to manage content like banner images, and other personalization content. We would be using Drools to define user segments and would be associating a unique code and short name to it - code for the system and short name for the business users. Now, is there a way for our custom CMS to be able to retrieve the enumerated list (basically all possible values of that data element) such that it can be used for mapping content in the CMS? Any tip would be helpful. Best Regards -lj -- View this message in context: http://drools.46999.n3.nabble.com/Retrieving-Enumerated-List-from-Drools-tp3140076p3140076.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Using Enumeration for long lists
Hi, I understand Drools does support enumerated lists of values for checking conditions and assigning consequences. Am i mistaken? The ID would be a numeric value of 8 or 12 bytes in length. The Blacklist validation would be just the basic full word match. Best Regards -lj -- View this message in context: http://drools.46999.n3.nabble.com/Using-Enumeration-for-long-lists-tp3140051p3140095.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Retrieving Enumerated List from Drools
Hi, Sorry for the minimal information. We have a B2C application which is basically into eCommerce. You can consider it another amazon or ebay. And one thing we do today in a very crude way is personalize the appearance and content (ie., products, pricing of products, banner images, etc) based on the user profile. For example, on Valentine's day if the user is a male, he gets to see gifts for a female and vice versa. So, as part of a Solution revamp, we have decided to use Drools to manage product visibility by having a rule which says... if the user is male, dont show this but show that as a basic example. Now, there are certain functionalities we have as core in our Content Management System (like a custom Joomla or Drupal) which we wouldnt want to migrate entirely to Drools. So, we would define the segments in Drools and map such segments to the existing entities. eg: Segment can be Male vs Female with Segment Codes SEG_MALE and SEG_FEMALE as an example where SEG_MALE and SEG_FEMALE are two possible values in an enumerated list. Now, this being the situation, we want to be able to retrieve this list of enumerated values into our CMS so that we can map them to existing entities like banner images. Hope this helps. Best Regards -lj -- View this message in context: http://drools.46999.n3.nabble.com/Retrieving-Enumerated-List-from-Drools-tp3140076p3140125.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users