I've generated a .NET deployment. Inside my rules repository, I have a decision table. What are the ways for my .NET application to get the condition range values in this decision table? Is the only way using API provided?
Using the APIs provided is the only efficient way to populate the decision tables with data.
For your convinience there is also an example on how to do this in the examples section.
Product Support-Lead Engineer
I've tried following the example. But, still couldn't access the cell values.
If I have an instance 2x2 decision table. How do I get the cell value from API?
0 to 50 B
51 to 100 A
// ignore exception thrown when the template instance is modified
NdDecTableCellInfocellInfo = decTableModel.getCellInfo(1, 1);
You are almost there... Once you get the NdDecTableCellInfo you need to obtain a rendering info from it and then you can obtain values from there. You can also get a text for the label and the text displayed around the values if you need to.
NdDecTableCellInfo cellInfo = decTableModel.getCellInfo(1, 1);NdRangeTableCellRenderingInfo renderingInfo = cellInfo.getRenderingInfo(); //will return null if cell is empty, a label or does not have any parametersString  cellValues=renderingInfo.getValues();
I realised that I followed the example and keep creating a new instance!
Hmm. then I tried to access the existing instance. But, I keep getting "Null" for promItem
Example this is my project repository. And I want to access template 2 Instance. Did I do something wrong based on codes below.
// Construct a connection for a non-versioned file repository
// Connect to repository
// Get ROM root directory
// Create PROM project for an existing project
NdPromProject project = projectFactory.createProject(romProject);
NdPromItem decisionTableItem = (NdPromItem)(project.lookupEntry(location));
Andrei wrote:You have "Decision_Table_Template2_Instance" in the path. That is the name of the SRL ruleset that is generated from this instance file, not the name of the instance file where it is located. You can't have spaces in ruleset names, so Blaze automatically replaces it with underscores. But repository entities and folders can have spaces and as I can see from your screenshot the file name is "Decision Table Template2 Instance".
Retrieving data ...