Decision Management & Intelligence (ODM, DI)

Decision Management & Intelligence (ODM, DI)

Connect with experts and peers to elevate technical expertise, solve problems and share insights

 View Only
Expand all | Collapse all

Functional mismatch between Decision Table Editor and Rule Editor Web Components

  • 1.  Functional mismatch between Decision Table Editor and Rule Editor Web Components

    Posted Wed November 02, 2022 12:29 PM
    Hi experts, the DC API reference documentation is very confusing. Please help me clarify the ideas.
    The support for Decision Table editor and Rule editor looks very different:

    • IntelliTextEditorServlet declares getEnviroment(). The doc says that you can create a new environment for each request or you can cache in the HTTP session.
    • The corresponding environment class for IntelligentTextEditorServlet is IntelliTextEditorEnvironment. This class provides a getCategoryFilter() that you can override in a subclass to set the BAL categories to be used during rule editing session.
    • However DecisionTableEditorServlet does nor provides a getEnvironment() method. It only provides a createEnvironment(). There is no mention in the doc if it's safe to cache the environment in the HTTP session.
    • Furthermore, the corresponding environment class is DecisionTableEditorEnvironment. does not provide a getCategoryFilter() you can override. Furthermore, it is defined as a final class, so you cannot override anything.

    Please ¿can you tell me about the intended usage of this API? In concrete:

    • ¿Is it possible to use category filters with the Decision Table Editor Web Component? ¿How?
    • ¿Can be cached the Decision Table Editor environment? In case yes, ¿why there is only a createEnviroment() method? ¿does it means that a new environment will be created each time, independently that you cache it in the HTTP session?


    ------------------------------
    Eduardo Izquierdo Lázaro
    Automation Architect
    DECIDE
    Madrid
    609893677
    ------------------------------


  • 2.  RE: Functional mismatch between Decision Table Editor and Rule Editor Web Components

    Posted Thu November 03, 2022 12:40 PM
    Hi Eduardo, 

    I'm not familiar with that API, but did you have a look at the related Decision Center sample, "Web authoring application" ?

    ------------------------------
    Antony Viaud
    Product Manager, IBM Decision Automation
    ------------------------------



  • 3.  RE: Functional mismatch between Decision Table Editor and Rule Editor Web Components

    Posted Thu November 03, 2022 02:30 PM
    Hi Antony, yes of course, I started looking at the sample. I was not familiar neither with this API but I'm learning looking at the sample and the doc and it's very confusing.

    We're migrating an ODM 8.8.1 project where the customer embedded the Web editors. But now, in ODM 8.11 it was introduced the new version of the decision table editor in the package com.ibm.bdsl.web.dtx  that apparently is not designed to allow the storage of the editing session (the environment) in the HTTP session which is really needed for high availability. 

    We could keep using the legacy classes of ODM 8.8.1 that are still available in =DM 8.11 but, are not documented anymore and the doc clearly states that should not be used. So I really don't know which is the right road to take.

    ------------------------------
    Eduardo Izquierdo Lázaro
    Automation Architect
    DECIDE
    Madrid
    609893677
    ------------------------------