Re: [rules-users] List of valid values
Hi Vincent, Thanks for the response. 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. Do you know whether it is possible? Chris On 19/10/2010 10:15, Vincent Legendre wrote: I think you had listed all possibilities of Guvnor about that. To sum up, if you want something dynamic, typically linked to a DB, you should use you personnal class If the enums are more 'static', why enumeration (which is a guvnor ressource like others, ie a resource you can upload) are not OK ? Le 19/10/2010 10:24, Chris Selwyn a écrit : Any takers on my question below... Or have I answered my own question? Chris On 17/10/2010 16:51, Chris Selwyn wrote: 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 rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users - No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1136 / Virus Database: 422/3201 - Release Date: 10/16/10 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Vincent LEGENDRE Consultant Sénior EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Tél. : +33 (0)1 39 07 12 40 Direct : +33 (0)1 39 07 26 16 www.eurodecision.com No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1136 / Virus Database: 422/3205 - Release Date: 10/18/10 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] List of valid values
I think you had listed all possibilities of Guvnor about that. To sum up, if you want something dynamic, typically linked to a DB, you should use you personnal class If the enums are more 'static', why enumeration (which is a guvnor ressource like others, ie a resource you can upload) are not OK ? Le 19/10/2010 10:24, Chris Selwyn a écrit : Any takers on my question below... Or have I answered my own question? Chris On 17/10/2010 16:51, Chris Selwyn wrote: 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 rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users - No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1136 / Virus Database: 422/3201 - Release Date: 10/16/10 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Vincent LEGENDRE Consultant Sénior EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Tél. : +33 (0)1 39 07 12 40 Direct : +33 (0)1 39 07 26 16 www.eurodecision.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] List of valid values
Any takers on my question below... Or have I answered my own question? Chris On 17/10/2010 16:51, Chris Selwyn wrote: > 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 > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > > - > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1136 / Virus Database: 422/3201 - Release Date: 10/16/10 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] List of valid values
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 rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users