Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] CasePathResolver: handle "backward lonely edge" with exclusive gateways #14

Open
tbouffard opened this issue Jul 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@tbouffard
Copy link
Member

tbouffard commented Jul 18, 2023

DISCLAIMER: this issue describes path computation for a single instance/case only. So the implementation will go to the CasePathResolver class as it differs from PathResolver which is a generic implementation that both deals with single instance or all instances of a process.

Is your feature request related to a problem? Please describe.

Sometimes, there is a loop with a gateway with a branch without element (ege only) going back to another exclusive gateway (called "backward" branch here).
In this case, it is not possible to detect if this lonely edge branch is part of the path. We would need a frequency information to be able to decide.
We can only assume that this edge is a candidate (#24).

Note: this use case doesn't apply to parallel gateways (we don't want to support non conformant model)

flowchart LR
    task --> gatewaySplit{X}
    gatewaySplit --> task1 --> gatewayMerge{X}
    gatewaySplit --> task2 --> gatewayMerge
    -->   gatewaySplit
    gatewayMerge --> anotherTask
Loading

Describe the solution you'd like

Handle the case.
Provide an option to know if this is a detection for "single instance" or "multiple instances"

If the "backward branch" contains an elements provided in the inputs, all edges of the branch should be detected as part of the path (as already supported prior implementing this use case)

flowchart LR
    task --> gatewaySplit{X}
    gatewaySplit --> task1 --> gatewayMerge{X}
    gatewaySplit --> task2 --> gatewayMerge
    -->  task3 -->   gatewaySplit
    gatewayMerge --> anotherTask
Loading

Should also work when the backward branch comes from a boundary event (part of the input) and goes to an exclusive gateway.

Questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant