I am saving a bpmn which has a reference to a dmn. Post deployment, i was looking for an API to retreive both bpmn and dmn xml from camunda database.
Is there a rest API which gives back a bpmn xml and related dmn xmls?
Please do let me know if it is possible and other workarounds. Plus how to establish a connection between a bpmn and related dmns.
@Ingo_Richtsmeier thanks for the input. I was following this only however, Caused by: java.lang.ClassNotFoundException: org.camunda.bpm.model.bpmn.Bpmn
this exception is coming if i directly use the XML string returned.
I have used both the methods with different set of Files and i am able to use them but directly converting modelInstance from the XML String returned is causing the problem.
PFA Complete Exception Stack Trace :
Exception in thread “main” java.lang.NoClassDefFoundError: org/camunda/bpm/model/bpmn/Bpmn
at com.abc.appintgwkflw.wkflautomate.was.test.main(test.java:777)
Caused by: java.lang.ClassNotFoundException: org.camunda.bpm.model.bpmn.Bpmn
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 1 more