AutomatedProcessImprovement / pix-portal

Suite of services for automated business process improvement
https://pix.cloud.ut.ee
1 stars 1 forks source link

Wrong GatewayProbabilities generation when creating JSON from scratch #82

Open david-chapela opened 6 months ago

david-chapela commented 6 months ago

When only the process model is uploaded, the JSON parameters are created from scratch. For each gateway, it should create an object with the ID of the outgoing flow and its probability. For example:

{
  "gateway_id": "Gateway_1",
  "probabilities": [
    {"path_id": "flow_id_1", "value": 0.5},
    {"path_id": "flow_id_2", "value": 0.25},
    {"path_id": "flow_id_3", "value": 0.25}
  ]
}

But, when creating the JSON from scratch, instead of the flow ID, it writes the ID of the node that each flow is pointing at. I understand that for visualization purposes, showing the ID of the node it's pointing at is better for the user, but it should store the ID of the flow in the JSON, like SIMOD does when generating the JSON.

assets.zip

iharsuvorau commented 6 months ago

Thank you, @david-chapela! @sinnaj-r would you like to take on this issue too?