Skip to content

[FEAT] CasePathResolver: Allow to infer pending elements #145

@tbouffard

Description

@tbouffard

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.

In #16, we allow to pass pending elements in the input of the path computation but we are not inferring any pending elements that follow completed elements.

Describe the solution you'd like

First compute the path with provided completed and pending elements (#16).

Then infer direct (i.e. following the latest completed element in the graph) pending elements when enabled with an option see #23.
This includes

  • the following flownode/shape considered as pending.
  • the following flow/edge considered as completed (the flow between the latest completed and the inferred pending element). They are in the "outgoing "array of the "latest" element.

Questions

Note: depending on the answers, the question can lead to the creation of a new issue.

### Tasks
- [ ] README: explain that the algorithm doesn't cover all tricky use cases and inconsistency
- [ ] README: You are supposed to pass valid inputs as they come from your system There is no plan to detect such inconsistency that must be done in the caller code

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions