<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Vincent,<br>
<br>
Thanks for the response.<br>
<br>
I think that I was wondering about whether a Guvnor enumeration was
usable at runtime (maybe by a DRL function) as well as being used
for driving a Guvnor dropdown list in the guided editor.<br>
Do you know whether it is possible?<br>
<br>
Chris<br>
<br>
On 19/10/2010 10:15, Vincent Legendre wrote:
<blockquote cite="mid:4CBD61AC.7070101@eurodecision.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
I think you had listed all possibilities of Guvnor about that.<br>
<br>
To sum up, if you want something dynamic, typically linked to a
DB, you should use you personnal class<br>
If the enums are more 'static', why enumeration (which is a guvnor
ressource like others, ie a resource you can upload) are not OK ?<br>
<br>
<br>
Le 19/10/2010 10:24, Chris Selwyn a écrit :
<blockquote cite="mid:4CBD55C8.3050809@selwyn-family.me.uk"
type="cite">
<pre wrap=""> Any takers on my question below... Or have I answered my own question?
Chris
On 17/10/2010 16:51, Chris Selwyn wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I am developing a set of rules around validating messages in a B2B
messaging environment and I would like to have my rules builders have
control of the valid set of values for a particular field preferably
without creating a new fact model.
Since I am working in a B2B messaging world, I can see how to define an
enumeration in an XSD and how to access those in the Guvnor to create a
dropdown menu.
I can also see how to define a set of enumeration values in the Guvnor
which uses a hardcoded set of values to define the legal values for
populating a dropdown menu.
I can even see how to have the dropdown menu populated from a Java
class. The class appears to have to be on the classpath of the
application... It is not good enough to make it be part of the jar that
contains the fact model. This means that the set of legal values is part
of the "technical" domain rather than the "business" domain. I guess I
can always have the class load the values from a database, properties
file or some such but that means a separate place to store the values.
However, I feel that I would like to have the set of valid values be
part of what is accessible and configurable through the Guvnor.
Is there somewhere I can store the set as an artefact in Guvnor and be
accessible at runtime for me to do the check with?
Or should I just code the values into a set in a function?
Chris Selwyn
_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
-----
No virus found in this message.
Checked by AVG - <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a>
Version: 10.0.1136 / Virus Database: 422/3201 - Release Date: 10/16/10
</pre>
</blockquote>
<pre wrap="">_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<span style="font-size: 13.5pt; font-family:
"Arial","sans-serif"; color: rgb(21, 24,
90);">Vincent LEGENDRE</span><br>
<i><span style="font-size: 8.5pt; font-family:
"Arial","sans-serif"; color: rgb(21, 24,
90);">Consultant Sénior</span></i><br>
<span style="font-size: 4.5pt;"> <br>
</span> <span style="font-size: 9pt; font-family:
"Arial","sans-serif"; color: rgb(21, 24,
90);">EURODECISION</span><br>
<span style="font-size: 9pt; font-family:
"Arial","sans-serif"; color: rgb(21, 24,
90);">9A rue de la Porte de Buc 78000 VERSAILLES<br>
Tél. : +33 (0)1 39 07 12 40<br>
Direct : +33 (0)1 39 07 26 16<br>
<a moz-do-not-send="true">www.eurodecision.com</a></span><br>
<a moz-do-not-send="true" href="http://www.eurodecision.com/"><span
style="font-size: 12pt;"> <img
src="cid:part1.06010800.07010200@selwyn-family.me.uk"
alt="EURODECISION" border="no"></span></a><a
moz-do-not-send="true" href="http://www.eurodecision.com/"><span
style="font-size: 12pt;"> </span></a> </div>
<hr noshade="noshade" size="1">
<p class="avgcert" color="#000000" align="left">No virus found in
this message.<br>
Checked by AVG - <a moz-do-not-send="true"
href="http://www.avg.com">www.avg.com</a><br>
Version: 10.0.1136 / Virus Database: 422/3205 - Release Date:
10/18/10</p>
</blockquote>
</body>
</html>