Forum Discussion
FICO
17 years agoCommunity Manager
valueholder validations in RMA
valueholder validations in RMA We have ruleset template which has a rule template. The rule template contains a string value holder called "Rule Name" which is exposed in the RMA. The requirements a...
FICO
17 years agoCommunity Manager
Hi Ram,
As far as I know, there are 1.5 ways to achieve your first requirement (1 solution and 1 "band-aid" ):
- Create your own Custom Provider. A simple solution would be to subclass the NdStringProvider, which is what you are currently using for your Rule Name value holder. Providers have a method that can be overridden for validation purposes, in which you can throw an NdTemplateException if the value does not satisfy provider constraints.
- If you do not want to create a Custom Provider: Use a conditional block to display a validation error when the length of the string exceeds 10 characters. This will not give you the restriction on the string, but it will signal the error/constraint violation to the user.
I would probably also go for a Custom Provider for your second requirement. Again, in the validation method, you have access to the provider context (NdProviderContext), which gives you access to the entire instance you are a part of. It is actually quite simple to traverse the instantiation model and extract values from it, so you could gather all Rule Name values in a collection and signal an error for duplicates.
Maybe someone from Fair Isaac have other, less complicated solutions, but these are the options I would investigate.
Regards,
Jostein
Related Content
Related Content
How to make cuts added in a preIntsol callback globally valid (root node) instead of local to the current subtree?
I'm using the Xpress Optimizer Java API (com.dashoptimization, Xpress 9.4) to solve a MIP with lazy constraints that are generated dynamically. My constraints are all globally valid — they are not lo...2 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread31Views0likes2Comments