bpmn-visualization-js icon indicating copy to clipboard operation
bpmn-visualization-js copied to clipboard

[FEAT] Provide more details when filtering errors occur

Open tbouffard opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. When I was investigating #2131, I got errors about no matching pool but I wasn't sure I passed the right id to filter. The error missed information about the available pools that could be filtered.

Describe the solution you'd like The returned error could contains the list of available pools (id/name). This could be

  • stored in a dedicated field in the error for programmatic usage
  • be included in the error message

Describe alternatives you've considered Today, I cannot have the information easily. I can have to look at the BPMN content and look at id by myself. This means do some parsing because I cannot access to the internal model (see #953) Even if I had access to the model, I would have to do extra processing myself to be able to support #2139

Additional context Do not forget to consider the participant without displayed pool use case (#2139) as well in the returned error.

tbouffard avatar Aug 19 '22 06:08 tbouffard