Book a Demo

Author Topic: Access to MDG BPSim using JScript  (Read 2888 times)

ea0620

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Access to MDG BPSim using JScript
« on: December 01, 2020, 08:41:58 pm »
Hello,

How can we access (using JScript) to the content of a BPSim defined in a given package ?

The context is the following :
- The project contains multiple packages
- Packages are BPMN processes, using the MDG BPSim to simulate it
- We want to be able to edit processing times using a JScript script

Didn't find answer into the Automation user guide...

Thanks in advance for your help !

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Access to MDG BPSim using JScript
« Reply #1 on: December 01, 2020, 08:58:34 pm »
I'm not sure if that is even possible.

The BPSIM parameters are stored in t_document in the bincontent column.
The problem is that this is binary field. You'll need to decode it to be able to get to the info itself.

The binary info is probably a zip file containing a single text file (str.dat).
If you are able to decode the info, you'll probably find an xml string containing the parameters that you can see in the GUI.

So if you wanted to edit those you would need to
- edit the xml string
- save it to the str.dat file
- zip it up
- save the zip file in the binary field bincontent.

I'm not sure anyone has tried that before (I haven't anyway) but it definitely will be quite a job.

Geert