Forum Discussion

FICO's avatar
FICO
Community Manager
4 years ago

Api to update one rule

Is there any api to update single row of decision table

4 Replies

  • FICO's avatar
    FICO
    Community Manager

    There's no API to update a single row of the decision table.

  • FICO's avatar
    FICO
    Community Manager

    You can look at the Decision Table API example to see usage of some of the API calls that are available to edit cells, rows, and columns of a decision table: examples/apiExamples/metaphorAPIs/decisionTableImport.

  • FICO's avatar
    FICO
    Community Manager

    Hi @Tom Travis​  can you provide any documentation or demo or brief description.

    Because we have to implement api to update single rule .If there is not any solution then higher authority moving towards another decision modeler platform.

  • FICO's avatar
    FICO
    Community Manager

    The key API calls are in doc/api/innovator/com/blazesoft/template/metaphor/dectable. The best example is the one I mentioned previously: examples/apiExamples/metaphorAPIs/decisionTableImport, a line from the Java code of the example shows setting the value of a cell programmatically: decTableModel.setCellFieldValue(new NdDecTableCellCoordinates(row, tableCol), 0, (String)numbers.elementAt(0));