Giter VIP home page Giter VIP logo

Comments (4)

fit-alessandro-berti avatar fit-alessandro-berti commented on August 22, 2024

Dear @Dehghanpour1990

You can use the commands:

import pm4py

bpmn_graph = pm4py.convert_to_bpmn(net, initial_marking, final_marking)
pm4py.write_bpmn(bpmn_graph, "output.bpmn")

from pm4py-core.

Dehghanpour1990 avatar Dehghanpour1990 commented on August 22, 2024

Dear @fit-alessandro-berti,
Thank you for your reply. Your suggestion is for when we get a Petri_net from a discovery method using the PM4PY library right?
I have written a code generating Petri_net based on directly-follow-graph and want to convert it into a .bpmn file which will be used in another software.

from pm4py-core.

fit-alessandro-berti avatar fit-alessandro-berti commented on August 22, 2024

Yes, any Petri net object in pm4py

from pm4py-core.

Dehghanpour1990 avatar Dehghanpour1990 commented on August 22, 2024

@fit-alessandro-berti
The problem is I have my code developing a discovery algorithm from scratch and the output is not a Petri net object in pm4py, just a Petri net as a dictionary. How can I convert this dictionary to a BPMN file?

from pm4py-core.

Related Issues (20)

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.