Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpmn diagram failed to load #1363

Open
erictioh opened this issue May 26, 2023 · 4 comments
Open

bpmn diagram failed to load #1363

erictioh opened this issue May 26, 2023 · 4 comments
Assignees
Labels

Comments

@erictioh
Copy link

Observed vs. expected behavior

When putting text like this in the adoc file content, it should generate the bpmn diagram corresponding from
bpmn::test.bpmn[target=eric, format=svg, opts=inline] however the following error was thrown on the preview pane.

Failed to generate image: Unknown error (SystemCallError) - <STDERR>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:bioc="http://bpmn.io/schema/bpmn/biocolor/1.0" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0rkpvk7" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.8.0">
  <bpmn:collaboration id="Collaboration_0e7qwy6">
    <bpmn:participant id="Participant_06mlmov" name="ZSmart" processRef="Process_0dk0m1p"/>
    <bpmn:participant id="Participant_0bw1cs9" name="Go Biz" processRef="Process_11m847a"/>
    <bpmn:participant id="Participant_1cjx3i1" name="Telesales Team" processRef="Process_0s9tjww"/>
    <bpmn:participant id="Participant_1o0uac0" name="Customer" processRef="Process_0qlnk4g"/>
    <bpmn:participant id="Participant_1um5pzu" name="FPX" processRef="Process_0rbceye"/>
    <bpmn:messageFlow id="Flow_1buo8qe" sourceRef="Activity_1qfdtp3" targetRef="Activity_1nafmia"/>
    <bpmn:messageFlow id="Flow_11seruy" sourceRef="Activity_0mairsp" targetRef="Activity_1wlm0ww"/>
    <bpmn:messageFlow id="Flow_11pv923" sourceRef="Activity_1wlm0ww" targetRef="Activity_0ou4p7x"/>
    <bpmn:messageFlow id="Flow_0w7qbqy" sourceRef="Activity_0ou4p7x" targetRef="Activity_157z52e"/>
    <bpmn:messageFlow id="Flow_0oq7kub" sourceRef="Activity_19vu4su" targetRef="Activity_13vm7bx"/>
    <bpmn:messageFlow id="Flow_0gxclqe" sourceRef="Activity_13vm7bx" targetRef="Activity_1hv11sj"/>
    <bpmn:messageFlow id="Flow_16shrew" sourceRef="Activity_07204gg" targetRef="Activity_1hindhm"/>
    <bpmn:messageFlow id="Flow_094n7ko" sourceRef="Activity_0qz9zsz" targetRef="Activity_0ksjxg0"/>

You can see that the first row was the unknown error that it thrown, and the subsequent are my bpmn file content (which proved that the reading of the file was successful but somehow the converter doesn't work

Expected behavior is it should display the BP diagram inline. The exact same thing works using asciidoctor -r asciidoctor-diagram sample.adoc which has the above line of code in the sample.adoc file.

Steps to reproduce

  1. Install pycharm
  2. Install asciidoc plugin from the pycharm setting
  3. From the pycharm setting click to install the diagram extension
  4. Open the sample.adoc file
  5. Observe the error that i described above

Environment

Plugin Version: 0.38.16

IntelliJ Details:
PyCharm 2022.2.3 (Community Edition)
Build #PC-222.4345.23, built on October 10, 2022
Runtime version: 17.0.4.1+7-b469.62 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Non-Bundled Plugins:
org.asciidoctor.intellij.asciidoc (0.38.16)

@erictioh erictioh added the bug label May 26, 2023
@ahus1
Copy link
Contributor

ahus1 commented Jun 1, 2023

@erictioh - thanks for sharing these details. Could you please add a complete valid BPMN file to this issue so I can test it locally? The BPMN above seems incomplete to me, some XML tags don't close. Thanks!

@ahus1 ahus1 self-assigned this Jun 1, 2023
@erictioh
Copy link
Author

erictioh commented Jun 2, 2023

@erictioh - thanks for sharing these details. Could you please add a complete valid BPMN file to this issue so I can test it locally? The BPMN above seems incomplete to me, some XML tags don't close. Thanks!

The xml tag definitely incomplete because i only put in some crop of text. Here is the complete bpmn file for your test.
test2.zip

@erictioh
Copy link
Author

erictioh commented Jun 2, 2023

The bpmn file was created from camunda modeler 5.8.0
image

@Xyndra
Copy link

Xyndra commented Dec 21, 2024

I have the exact same problem with mermaid:
image

I tried both the normal version and the manual installation version.

It works normally with local PUML and Kroki Mermaid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants