Can you please show me some sample code for creating a new Decision Table using the Blaze APIs? I have seen the example DecisionTableImport.java. I would like to create a brand new Double-axis table.
There has been a thread on this before, see if this is any help: http://discuss.fico.com/blaze/board/message?board.id=Blaze_Advisor_Users_Forum&thread.id=818
Thanks for the reply. The Decision Table Import example loads an existing decision table and modifies it based on values in the csv file. These lines in the example read an existing template file:
NdPromItem decisionTableItem = (NdPromItem)project.lookupEntry(NdLocationFactory.createLocation(templateFile)); NdPromTemplate decisionTableTemplate = (NdPromTemplate) decisionTableItem.getItemContent();
NdPromTemplate decisionTableTemplate = (NdPromTemplate) decisionTableItem.getItemContent();
What I would like to do is create a new decision table from scratch and add it to my project. In looking at the APIs, it not really obvious to me how to do this. I think I want something like the following, but I believe this is incomplete:
NdPromTemplate decisionTableTemplate =new NdPromTemplate(TYPE_SRL_RULESET, SUB_TYPE_DECISION_TABLE, true, project);
NdPromTemplate decisionTableTemplate =
new NdPromTemplate(TYPE_SRL_RULESET, SUB_TYPE_DECISION_TABLE, true, project);
After running this, when I try to open the Decision Template in Blaze Advisor, I see the following error:
[The instantiation is not linked to a template.]
The actual Decision Table template needs to be created in the IDE, we do not provide API for that.
Retrieving data ...