Menu

#60 How to export picture in batch mode?

latest_release
closed
None
1
2015-08-25
2015-03-17
Anonymous
No

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

Discussion

  • 史耀强(Blenta)

    Hi Mike,

    I will add this feature in the next release (4.0.30).

    Best regards,
    Blenta

     
  • 史耀强(Blenta)

    • status: open --> accepted
    • assigned_to: 史耀强(Blenta)
     
  • 史耀强(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

     
  • 史耀强(Blenta)

    • status: accepted --> closed
     
  • Mike

    Mike - 2015-08-19

    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

     
  • Mike

    Mike - 2015-08-19

    (this was with version 4.0.37)

     
  • Anonymous

    Anonymous - 2015-08-20

    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

     
  • Mike

    Mike - 2015-08-22

    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

     
  • 史耀强(Blenta)

    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
  • Mike

    Mike - 2015-08-25

    Of course, you're right. My fault. Exporting now works perfectly. Thanks!!!

     

Anonymous
Anonymous

Add attachments
Cancel