OK, I&#39;d see your use as something like this:-<br><br>1. Define the rules (you give an example of)<br>2. At runtime insert appropriate facts into a KnowledgeSession<br>3. The rules return some indicator of the appropriate &quot;customisation&quot; required<br>
<br>If this makes sense, you should probably read about using Globals (to return a list of &quot;customisations&quot; out of WM) or StatelessSessions (which sounds more appropriate, for scalability).<br><br><div class="gmail_quote">
On 5 July 2011 10:09, lansyj <span dir="ltr">&lt;<a href="mailto:lansyjp@gmail.com">lansyjp@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
Sorry for the minimal information.<br>
<br>
We have a B2C application which is basically into eCommerce. You can<br>
consider it another amazon or ebay.<br>
<br>
And one thing we do today in a very crude way is personalize the appearance<br>
and content (ie., products, pricing of products, banner images, etc) based<br>
on the user profile. For example, on Valentine&#39;s day if the user is a male,<br>
he gets to see gifts for a female and vice versa.<br>
<br>
So, as part of a Solution revamp, we have decided to use Drools to manage<br>
product visibility by having a rule which says... if the user is male, dont<br>
show this but show that as a basic example. Now, there are certain<br>
functionalities we have as core in our Content Management System (like a<br>
custom Joomla or Drupal) which we wouldnt want to migrate entirely to<br>
Drools. So, we would define the segments in Drools and map such segments to<br>
the existing entities.<br>
<br>
eg: Segment can be Male vs Female with Segment Codes SEG_MALE and SEG_FEMALE<br>
as an example where SEG_MALE and SEG_FEMALE are two possible values in an<br>
enumerated list. Now, this being the situation, we want to be able to<br>
retrieve this list of enumerated values into our CMS so that we can map them<br>
to existing entities like banner images.<br>
<br>
Hope this helps.<br>
<br>
Best Regards<br>
<br>
-lj<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Retrieving-Enumerated-List-from-Drools-tp3140076p3140125.html" target="_blank">http://drools.46999.n3.nabble.com/Retrieving-Enumerated-List-from-Drools-tp3140076p3140125.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>