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
You have to implement the custom provider outside of the IDE. If you are developing a Java application, that means an external Java class that subsequently have to be on the class path of both Builder and your RMA. If you are developing a .Net application, you create a .Net class (C#, VB, etc) that you register in Builder.
If, for example, you are developing a Java application, I would suggest that you create a separate jar file containing providers for your application. You need to reference innovator.jar and AdvCommon.jar at least, possibly also AdvisorSvr.jar, for the jar file containing the custom provider.
As you are basically just capturing a string value from the user, subclass the com.blazesoft.template.engine.provider.NdStringProvider. Here you can override just the necessary methods, in your case that might be only the method for instantiation value validation. You might also do the same check in convertFromDisplayValue, but you will just have to test a little to see what gives you the best results.
The "are there more names like this"-test is a bit more complicated than the length-test, so start with just validating length. When that works, and you are hungry for more, you can try to tackle the rest
To register your custom provider implementation as a generic provider inside builder, just paste the entire class name into the space beneath the provider (logical) name. That's both the package path and the class name, as Builder/the RMA does a Class.forName() (or similar) to instantiate it.
HTH,
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