Forum Discussion
FICO
9 years agoCommunity Manager
get provider allowed values
I'm trying to retrieve list of allowed provider values for Value List programmatically using Prom/RMA API, but cannot find examples.
If I have access to NdRmaInstance is it possible to enumerate allowed values for a node? Should I use schema manager?
3 Replies
- FICOCommunity Manager
Hi can you please provide more details? Are you using a custom provider? If yes, you can just call the getAllowedValues() method of your custom provider.
- FICOCommunity Manager
Jeremy,
I'm not using a custom provider, I was trying to find a way to call getAllowedValues() for standard Value list provider or any standard provider from: ruleset template's provider or global provider. Value list provider is just an example, I want to be able to pull data from instance of Database provider as well.
- FICOCommunity Manager
Actually, was able to pull this up, here's an example:
NdRmaInstance node = rmaTemplate.generateInstance(rulesetInstanceLocation, "one");// String basePath = nodegetFile().getSubInstancePath();
String basePath = "Rulesets/one";
NdInstanceElementNode valueHolder1 = ((NdInstanceElementNode)node.getInstanceElementNodes()[1]);node.setNodeValue(valueHolder1, "one");
NdInstanceElementNode valueHolder2 = ((NdInstanceElementNode)node.getInstanceElementNodes()[3]);
node.setNodeValue(valueHolder2, "two");
NdInstanceElementNode valueHolder3 = ((NdInstanceElementNode)node.getInstanceElementNodes()[5]);
// Returns list of possible options
com.blazesoft.template.introspector.NdInstanceNodeImpl impl3 = (com.blazesoft.template.introspector.NdInstanceNodeImpl)valueHolder3;String[] valueOptions = impl3.getValueOptions();
Related Content
Related Content
__lll_lock_wait allowing only one thread to work
I am calling the XPRESS optimizer from a multithreaded Pascal application and having performance issues with the solver. While the program is multithreaded, all but one of the threads are sleeping a...3 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum21 unread comments21 unread57Views0likes21CommentsHow to make a variable be of "continuous type" but only allow (positive) integer values as its solution
Hi, I'm a student and currently stuck on a difficult problem. I've tried for many hours to solve this seemingly simple problem and can't find a solution. It would be cool if you could help without lo...3 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread16Views0likes4Comments
