Decision Management (ODM,ADS)

 View Only
Expand all | Collapse all

Getting all deision tables with errors in a Decision Center project

  • 1.  Getting all deision tables with errors in a Decision Center project

    Posted Thu June 15, 2023 09:06 AM

    Hi,

    I'm trying to develop a service using JAVA where i can check for all decision tables in a Decision Center project and return the list of tables with errors in it.

    Since decision center itself can display errors in decision tables when you enter invalid values into it (such as enter string into a date column), i think there will be an API for it.

    I can find all the table using:

    IlrDefaultSearchCriteria criteria = new IlrDefaultSearchCriteria(query.toString());
    		// Execute the query
    java.util.List list = session.findElements(criteria);

    But I haven't been able to figure out how to check those table for validation errors.

    Could you please suggest which API can i use for that purpose?

    Thanks.



    ------------------------------
    Tuan Anh Hoang Cong
    ------------------------------


  • 2.  RE: Getting all deision tables with errors in a Decision Center project

    Posted Fri June 23, 2023 12:37 AM

    You should be able to use IlrSessionHelper.checkElement to get the errors in a DT returned from the findElements. See https://www.ibm.com/docs/api/v1/content/SSQP76_8.11.1/com.ibm.odm.dcenter.ref.dc/html/api/html/ilog/rules/teamserver/model/IlrSessionHelper.html#checkElement-ilog.rules.teamserver.model.IlrSession-ilog.rules.teamserver.brm.IlrBaseline-ilog.rules.teamserver.model.IlrElementHandle-



    ------------------------------
    Alain Robert
    ------------------------------