Forum Discussion
FICO
8 years agoCommunity Manager
How to specify object type for Code templates?
I am new to Blaze Advisor 7.3 and have a question regarding using Code Templates. If my code template has the following SRL:
(theClaim.fsscclmsBillCategory <operatorVH> "<comparisonValueVH>")
How do specify the that "theClaim" is an instance of Class "Claim" so that the SRL editor's code completion feature works (i.e. shows me list of properties to chose from) when I am building the SRL code?
Thanks.
NP
1 Reply
- FICOCommunity Manager
If you want the rule editor to be able to get a drop down of properties to choose from, you would want to use a Class Property Provider. It is on the SRL tab of the providers in the upper left hand corner. You would choose the Claim class, and then there are additional configuration choices you have, such as to focus on a specific type of properties, or to filter out properties you do not want to show. Then once you have configured it, you can click on the Use Default Generation drop down to make sure the properties you want will be the ones showing up.
If you are only asking about the code completion capabilities, from my testing, they only seem to work if "theClaim" is a global variable. For a code template, you frequently don't have the context of the full ruleset or function where the object gets defined, so often code completion would not be able to determine the class of the object you are referencing.
Related Content
Related Content
How to apply termination conditions to each objective function in multi-objective model
Hello everyone, I am implementing a multi-objective model in Python, and I would like to set a time limit for each objective function. It would be best if I could set different time limits for each,...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread3Views0likes4CommentsVariable object mapping issue in Python Callbacks with Presolve enabled
Hi, I am implementing a Branch-and-Cut algorithm using the Xpress Python interface. I have structured my code as a class where I create variables (using xp.var) and store them in a dictionary attrib...9 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum6 unread comments6 unread6Views0likes6Comments