pyDMNrules
pyDMNrules copied to clipboard
Value not in Glossary using python 3.7 and DMN
Working with this package and python3.7 prints after reading a dmn file with readXML() and asking for a decision results in an error that the input variables are not part of the glossary. Using python 3.9 everything works fine.
Just printed the value of the glossary attribute ob the dmn object. In python3.7 its just an empty dict: []
In Python3.9 there are all information about the input values: {'age': {'item': 'Data.age', 'concept': 'Data', 'annotations': ['(number)']}, 'random_number': {'item': 'Data.random_number', 'concept': 'Data', 'annotations': ['(number)']}, 'payment_method': {'item': 'Data.payment_method', 'concept': 'Data', 'annotations': ['(string)']}}
We are working with different versions of python because of limitations made by our companies. Is there a flag or a configuration missing in the dmn, so python3.7 can handle the dmn file? Or do you have any other idea? Adding the variables as input values in the DRD does not work.
Thanks a lot!