Decision Management (ODM,ADS)

 View Only
Expand all | Collapse all

Working with Decision Center API | static domains (ODM 8.11.1)

  • 1.  Working with Decision Center API | static domains (ODM 8.11.1)

    Posted Fri December 02, 2022 06:21 AM
    Hi all,

    From Decision Center API (ODM 8.11.1):

    1. We create a rule project (decision service) with a variable of type domain. It is a static domain and the execution class of this domain is java.lang.String


    2. We deploy the project in Decision Service through its deployment configuration, and we get an error stating that it does not find the execution class to convert the business class. Which doesn't make sense because the execution class is java.lang.String.

    GBREX0001E: Unable to find the execution class 'com.xxxxxx.admission.domain.variable.TipoMediador' to convert the business class 'com.xxxxxx.admission.domain.variable.TipoMediador'.​


    3. From RuleDesigner, we download the project and deploy it to Decision Server successfully, without having made any changes.

    We believe this is so, because from RuleDesigner the whole project is compiled, which forces the mapping of the domain execution class. From the Decision Center API, is it possible to force the compilation/update/refresh of the rule project before deploying?

    Thank you very much.

    Best regards.



    Translated with DeepL

    ------------------------------
    Charo Álvarez Martínez
    Automation Architect
    DECIDE
    Madrid
    ------------------------------


  • 2.  RE: Working with Decision Center API | static domains (ODM 8.11.1)

    Posted Fri December 02, 2022 08:03 AM
    Hi Maria
    Click on each item in the domain and check that the ARL for the item class is Static and Read Only, and returns the value as a string in the ARL of the BOM to XOM mapping.

    For example for item_0 it should be as follows:



    FYI if you want to know more about more about domains in general and using reference data in ODM rule authoring you should read the following article: 

    Using Reference Data for Rule Authoring in IBM Operational Decision Manager


    Peter Warde

    peterwarde@rulearchitect.com






  • 3.  RE: Working with Decision Center API | static domains (ODM 8.11.1)

    Posted Fri December 02, 2022 09:01 AM
    Thank you Peter, but indeed, this is how we have defined each of the items, as you can see in the image below. There must be another reason.


    As I said, if I deploy the project from RuleDesigner without making any changes, the project deploys successfully on Decision Server.

    Best regards.

    ------------------------------
    Charo Álvarez Martínez
    Automation Architect
    DECIDE
    Madrid
    ------------------------------



  • 4.  RE: Working with Decision Center API | static domains (ODM 8.11.1)

    Posted Fri December 02, 2022 11:15 AM
    This does suggest that the B2X file defining the mapping of the domain class to String is not known in DC.
    Have you converted the project to Decision engine recently, in that case the B2X mapping is stored in a file suffixed .b2xa  instead of the classic .b2x
    One thing you could do is in a new workspace create a project from DC and get  this project  to verify the BOM.

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



  • 5.  RE: Working with Decision Center API | static domains (ODM 8.11.1)

    Posted Fri December 02, 2022 01:28 PM
    Hi Alain,

    Yes, I have checked all that and the project is well created. The project has no .b2x file mapping, just .b2xa file. If I export the project from Decision Center in ZIP format, the files are apparently correct.

    Thanks Alain.

    ------------------------------
    Charo Álvarez Martínez
    Automation Architect
    DECIDE
    Madrid
    ------------------------------