How to convert .GDST file to DRL ?

771 views
Skip to first unread message

Ravikumar Ganugapanta

unread,
Mar 1, 2016, 6:23:24 AM3/1/16
to Drools Usage
Hi,

We were able to import .xls files into Workbench and they got converted to .gdst without much problem.
Now for executing the rules from our application, we want to convert the .gdst to drl

We tried below program.

        String decisionTableXml = new String (
                  Files.readAllBytes(
                    Paths.get("D:/TRR#TRG (converted on 29-Feb-2016 18-49-48).gdst") ) );

                // parse the table model
        GuidedDTXMLPersistence p =  GuidedDTXMLPersistence.getInstance();
        p.unmarshal(decisionTableXml);
       
        GuidedDecisionTable52 model = GuidedDTXMLPersistence.getInstance().unmarshal( decisionTableXml );

         // compile it into drools rules
         String droolsRules = GuidedDTDRLPersistence.getInstance().marshal( model );


But encountering below exception.

Exception in thread "main" com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field org.drools.ide.common.client.modeldriven.dt52.GuidedDecisionTable52.imports

Any help will be highly appreciated.

Michael Anstis

unread,
Mar 1, 2016, 6:25:37 AM3/1/16
to Drools Usage
I'd guess your using Drools 5.x to convert a GDST created with 6.x?

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/48456913-34fe-4ede-b6c1-a3c74ea2f967%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ravikumar Ganugapanta

unread,
Mar 1, 2016, 6:46:10 AM3/1/16
to drools...@googlegroups.com
Thanks for the pointer. You were correct, we were using an older drools version for converting gdst created using 6.x drools workbench.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/sR6cnP8nGCI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages