OK, I'd see your use as something like this:- 1. Define the rules (you give an example of) 2. At runtime insert appropriate facts into a KnowledgeSession 3. The rules return some indicator of the appropriate "customisation" required
If this makes sense, you should probably read about using Globals (to return a list of "customisations" out of WM) or StatelessSessions (which sounds more appropriate, for scalability). On 5 July 2011 10:09, lansyj <[email protected]> wrote: > 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 > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
