Can we use call ProM from outside

aryans14aryans14 Posts: 27
Let's say I am working in python and I am generating many petrinet models and want to measure the complexity of the each resulting petrinet and return its result into python.
I understand I can check for other python packages but I do not want to start from scratch. Secondly my code is in python and I can not rewrite it for java.

Is there any possible solution?
Tagged:

Comments

  • hverbeekhverbeek Posts: 910
    Hi,

    There seems to be a way to call ProM plugins from Python. I do not know the full details, but a PhD student in our group has been using this. I will ask him for the details, and share them with you.

    Kind regards,
    Eric.
  • aryans14aryans14 Posts: 27
    hverbeek said:
    Hi,

    There seems to be a way to call ProM plugins from Python. I do not know the full details, but a PhD student in our group has been using this. I will ask him for the details, and share them with you.

    Kind regards,
    Eric.

    I will be grateful Prof. Thanks in anticipation.

  • hverbeekhverbeek Posts: 910
    Hi,

    This can be done, although I am not the expert on this and cannot answer very detailed questions.

    On https://gitlab.com/dominiquesommers/prompy/-/tree/master/ you will find an overview on how this can be done. Examples can be found in examples/examples.ipynb, the required Python library can be downloaded from https://pypi.org/project/prompy/.

    Kind regards,
    Eric.



Sign In or Register to comment.