Exporting DMN diagrams as drools rules¶
Signavio enables you to model decision logic with the easy-to-use Signavio Editor and to subsequently export DMN diagrams as DRL files to transfer them into the open source business rules management solution Drools (http://www.drools.org/). Thus, you can easily transfer DMN diagrams into automated business logic.
You can either export multiple diagrams, one diagram, or just one decision table and its sub decisions. The Signavio Drools export supports three different export types: Production, Development and Test, Cases. In contrast to the Production, Development adds additional comments and logging behavior.
Moreover, you can either select the latest or the published revision which will be used for the export.
Permissions for the Drools export can be limited to users of specific user groups.
In order to export decision logic to Drools, open the Signavio Explorer. select one or multiple diagrams and go to Import/Export - Export Drools:
Select one or multiple diagrams and go to ‘Import/Export’ - ‘Export Drools’.
Now you can adjust your selection and set the following export properties:
You can either choose to export the latest revision of the diagram that has been saved in the Editor or the latest revision that was published in Collaboration Hub.
The option Production mode exports the decision logic to drools, without comprehensive comments, support of detailed logging and test cases.
- Development mode provides additional comments and logging behavior.
- Development mode + test cases provides additional test cases in the form as csv files (one csv file for each top level decision). The csv files contain all combinations of all relevant sub decisions.
In the export dialog, you can configure the export options in detail.
Click Export to trigger the export process.
Alternatively, you can export a decision table and its sub decisions directly from the Signavio DMN Editor.
In the Editor, open a decision table and click Import/Export in the top-right corner of the dialog. There you can chose between generating the Drools export or the test cases (as described above):
Click ‘Import/Export’ in the decision table dialog.
Before starting the export, you can choose whether to include related sub decisions (if applicable):
Choose if you want to include related sub decisions.
As soon as the files were generated, you can download them in you browser: