Giter Site home page Giter Site logo

Comments (4)

csgoh avatar csgoh commented on May 24, 2024

Hi,

PNG file is created when calling .save() method. When you say save to BPMN format, are you referring to BPEL? Currently there is no plan to save output as BPEL.

The diagram is generated by code, so it is editable 😄

CS

from processpiper.

r-erd avatar r-erd commented on May 24, 2024

Hi,

Thanks for getting back to me!
I was referring to this specification as used by e.g. bpmn.io and I was assuming that somewhere in the code this format is used. But now its obvious why I did not find it - because you are directly creating the PNG without making use of the BPMN format, right?

(I am currently looking for a solution with which it is possible to create BPMN-files (diagrams in xml) with the help of a syntax like this project supports.)

from processpiper.

csgoh avatar csgoh commented on May 24, 2024

Hi, BPMN is just the specification. If you want something that is executable by a process engine, you are referring to Business Process Execution Language (BPEL) which is in XML format.

from processpiper.

r-erd avatar r-erd commented on May 24, 2024

I am not sure what you mean by "executable by a process engine". But yes, I am referring to a XML format.
My problem is that I want to create such a XML from code (like the syntax used in this repo) without having to code the transformation myself.

So if BPEL is the format the the .bpmn files use, then this is what I was referring to. This is a very simple example:

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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" id="Definitions_0obm7bs" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="15.1.3">
  <bpmn:process id="Process_0whtdb4" isExecutable="false">
    <bpmn:startEvent id="StartEvent_033fdj1" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_0whtdb4">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_033fdj1">
        <dc:Bounds x="156" y="82" width="36" height="36" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>

If, as you already suggested, this output format is not planned, feel free to close this issue.

from processpiper.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.