Skip to content

Wrong GatewayProbabilities generation when creating JSON from scratch #82

@david-chapela

Description

@david-chapela

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions