Hide Forgot
Description of problem: Functions saved in *.function files are not correctly migrated. The header "function <filename>" is prepended and word "end" appended to migrated files. For example: function String getStringFunction(String arg) { return "some string"; } gets migrated to: function 'Function' function String getStringFunction(String arg) { return "some string"; } end Same migration steps as for DRL are used which is wrong. Functions should be migrated as is, without any words prepending/appending. Version-Release number of selected component (if applicable): Community 6.0.0-SNAPSHOT
Partially fixed, plain text migrater is now used for functions. https://github.com/droolsjbpm/drools-wb/commit/fa5e0010c8b79b9e830c084ce08175e2b96a19f6 However after the migration, the file with function has .drl extension. In Guvnor 5 the extension was .function. Need to find out if that was changed in 6 or not (and if not fix it).
The function should indeed be saved in .drl files, so marking this as resolved.
Migration tool in ER5 is broken, see https://bugzilla.redhat.com/show_bug.cgi?id=1034931 . I will try to verify again in ER6. Please note that the issue is fixed in community 6.0.0.Final, so I expect it to be fixed in next prod. build (ER6).
Verified fixed in 6.0.0-ER7.