How to export picture in batch mode?
an Open Source BPMN 2.0 / DMN 1.1 Modeler
Brought to you by:
blenta
Hello!
Some time ago, I got the information that it is possible to create pictures from multiple bpmn files by using the command
%javaExe% -jar "%YAODIR%Yaoqiang-BPMN-Editor-2.1.37.jar" "%%F" --export "%exportToPath%\%%~nF.jpg"
This does not seem to work with version 4.0.28. Is there any alternative?
Thanks & regards,
Mike
Anonymous
Hi Mike,
I will add this feature in the next release (4.0.30).
Best regards,
Blenta
Hi Mike, I've added this feature in version 4.0.30.
Please replace the jar Yaoqiang-BPMN-Editor-2.1.37.jar with modules/org.yaoqiang.asaf.bpmn-graph.jar.
Best Regards,
Blenta
Can you please tell me what I do wrong?
f:\x>SET JAVAEXE="c:\Program Files (x86)\Java\jre1.8.0_51\bin\java.exe"
f:\x>SET YAODIR=.\Tools\BPMN\
f:\x>"c:\Program Files (x86)\Java\jre1.8.0_51\bin\java.exe" -jar .\Tools\BPMN\m
odules\org.yaoqiang.asaf.bpmn-graph.jar "LST2.bpmn" --export "PIC\LST2.bpmn.j
pg"
BPMN 2.0 Graph version "3.3.1.0"
Generating BPMN diagram...
Exception in thread "main" java.lang.NoClassDefFoundError: bibliothek/gui/dock/a
ction/view/ViewGenerator
at org.yaoqiang.asaf.core.ResourceMap.getBundle(Unknown Source)
at com.mxgraph.model.mxGraphModel.<init>(Unknown Source)
at com.mxgraph.model.mxGraphModel.<init>(Unknown Source)
at org.yaoqiang.graph.model.GraphModel.<init>(Unknown Source)
at org.yaoqiang.graph.model.GraphModel.<init>(Unknown Source)
at org.yaoqiang.graph.util.GraphUtils.export(Unknown Source)
at org.yaoqiang.graph.view.Graph.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: bibliothek.gui.dock.action.view.Vie
wGenerator
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 7 more
f:\x>
Thanks & BR,
Mike
(this was with version 4.0.37)
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Support Requests"
Hi Mike,
Please make a copy of docking-frames-1.1.2.p14e.jar and rename it to docking-frames-1.1.2.p14b.jar.
I will fix this issue in the next release (4.0.38).
Best regards,
Blenta
Hello Blenta, thanks again for your excellent and fast support.
Unfortunately, copying the jar did not suffice. Now I get the following message:
"c:\tools\java\jre7u80\bin\java.exe" -jar .\Tools\BPMN\yaoqiang-4.0.37\modules\ docking-frames-1.1.2.p14b.jar "Reaktionen Wirksamkeitskontrolle.bpmn" --export "
PIC\Reaktionen Wirksamkeitskontrolle.jpg"
"Reaktionen Wirksamkeitskontrolle.bpmn"
kein Hauptmanifestattribut, in .\Tools\BPMN\yaoqiang-4.0.37\modules\docking-fram
es-1.1.2.p14b.jar
(„kein Hauptmanifestattribut“ means something like „no main manifest attribute“)
Any other idea what I can do?
Thanks,
Mike
I'm sorry, I didn't explain clearly. I meant rename jar file(docking-frames-1.1.2.p14e.jar) itself inside modules dir. The run script need not be changed.
Last edit: 史耀强(Blenta) 2015-08-23
Of course, you're right. My fault. Exporting now works perfectly. Thanks!!!