AnsweredAssumed Answered

Import CSV to Rules repository programatically

Question asked by sergio.puyó on May 6, 2017
Latest reply on May 9, 2017 by sergio.puyó

Hi all,


I am trying to implement a Java class that gets as input the content of a CSV file with rules and persist the new rule into the blaze repository. My method works without errors (validating the right order and values) but the changes are not persisted into the repository. I have tried to set some config parameters in the server configuration file in order to set the read/write mode but still no success. What am I doing wrong in my implementation?


I am using for this the NdRepositoryConnection class of the blazeAdvisor engine libraries.The object NdDecTableExImFormatInfo contains the formatter object with the import/export methods. The export method is successfully retrieving the existing values in the repository and getting, as a result, a string with all values of the table decision of the rule.


In the blaze API there is no "persist","save" or something that could indicate that after the import functionality we need to save the changes.


For further details please see the attached document.


Thanks in advance. Any help will be appreciated.