Skip to content

Instantly share code, notes, and snippets.

@tarilabs
Created January 13, 2017 21:53
Show Gist options
  • Save tarilabs/a8a668d7b9db3320b36d5e63d99e48d8 to your computer and use it in GitHub Desktop.
Save tarilabs/a8a668d7b9db3320b36d5e63d99e48d8 to your computer and use it in GitHub Desktop.
dump GDST to DRL
org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 unmarshal =
org.drools.workbench.models.guided.dtable.backend.GuidedDTXMLPersistence.getInstance().unmarshal(
new String(Files.readAllBytes(Paths.get("src/main/resources/guidedTable.gdst")))
);
String drl = org.drools.workbench.models.guided.dtable.backend.GuidedDTDRLPersistence.getInstance().marshal(unmarshal);
System.out.println(drl);
@tarilabs
Copy link
Author

tarilabs commented Jul 6, 2018

<dependency>
    <groupId>org.drools</groupId>
    <artifactId>drools-workbench-models-guided-dtable</artifactId>
</dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment