'Drools DRL Export to Java and Python

There is requirement to convert Drools DRL file into equivalent Java and Python Code as a Export Feature. Please provide some insights whether any tools available for this. Or we can use DRL Debug Dump can be used to export Java equivalent code. Please share your suggestions and inputs.



Solution 1:[1]

There is no Java equivalent code for a DRL. The DRL is processed in a way that generates a graph of nodes (based on the RETE algorithm) that are evaluated when information is made available to a session. If you were expecting to get some Java classes with a bunch of if-else statements, then you are out of luck.

There are ways to export the RETE Graph if you want to, but I'm sure that's not what you are looking for.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Esteban Aliverti