apache / incubator-kie-kogito-examples

Kogito examples - Kogito is a cloud-native business automation technology for building cloud-ready business applications.
http://kogito.kie.org
255 stars 381 forks source link

Build of decisiontable-quarkus-example fails if you put a csv file into resources folder #1072

Closed dragondiver closed 2 years ago

dragondiver commented 2 years ago

My build breaks, if I put a simple csv file (containing 1;2;3) into the resources folder. How could I use a decision table in a larger project, that also needs some csv files?

mariofusco commented 2 years ago

Unfortunately this is a well known issue of drools and therefore also of kogito that is based on it. If you have the decisiontables module among your dependencies then drools assumes that all files with extensions .xls, .xlsx and .csv under the folder src/main/resources are decisiontables, it tries to compile them as such and if it can't it raises a compile time error. We know that this assumption is too strong and are thinking how to fix this, for instance requiring for decisiontables an extension like .drools.csv, but in the meanwhile the only possible workaround is moving all .xls,.xlsxand.csvfiles out of thesrc/main/resources` folder.