graphs.visualization: node details are hidden for activities containing gate, silent or tau #19

Open
opened 2026-10-06 13:47:42 +00:00 by ffrauenberger · 1 comment
Owner

Severity: low (clicking such a node shows no details)

Where

  • app/graphs/visualization/bpmn_graph.py:339-375
  • app/graphs/visualization/petri_net_graph.py:139-150

Problem

Special nodes are recognized by substring checks on the node ID:

  • BPMN: if "gate" in id or "silent" in id: matches Investigate, Navigate, Aggregate, Delegate, Silent approval, …
  • Petri net: node_id.startswith("tau") matches Tausch, Taufe, tauglich… (German logs).

Steps to reproduce

  1. Import a log with an activity named Investigate (or Tausch)
  2. Mine a model shown as BPMN (or as Petri net for Tausch)
  3. Click the activity node

Expected behavior

The node details show the activity name, frequency and SPM data.

Actual behavior

BPMN: an empty title is shown (neither "exclusive" nor "parallel" matches). Petri net: "Silent Transition" is shown instead of the activity data.

Related: #7, #51.

Fix

Mark special nodes explicitly (e.g. a kind field in the node data, or a set of special IDs) instead of inferring the type from the name. See #51.


from issues/BUG-019-node-info-hidden-for-activities-containing-gate-silent-or-tau.md (code analysis of commit 6bcc646, 2026-10-03)

**Severity:** low (clicking such a node shows no details) ## Where - `app/graphs/visualization/bpmn_graph.py:339-375` - `app/graphs/visualization/petri_net_graph.py:139-150` ## Problem Special nodes are recognized by **substring** checks on the node ID: - BPMN: `if "gate" in id or "silent" in id:` matches `Investigate`, `Navigate`, `Aggregate`, `Delegate`, `Silent approval`, … - Petri net: `node_id.startswith("tau")` matches `Tausch`, `Taufe`, `tauglich…` (German logs). ### Steps to reproduce 1. Import a log with an activity named `Investigate` (or `Tausch`) 2. Mine a model shown as BPMN (or as Petri net for `Tausch`) 3. Click the activity node ### Expected behavior The node details show the activity name, frequency and SPM data. ### Actual behavior BPMN: an empty title is shown (neither "exclusive" nor "parallel" matches). Petri net: "Silent Transition" is shown instead of the activity data. Related: #7, #51. ## Fix Mark special nodes explicitly (e.g. a `kind` field in the node data, or a set of special IDs) instead of inferring the type from the name. See #51. --- from `issues/BUG-019-node-info-hidden-for-activities-containing-gate-silent-or-tau.md` (code analysis of commit 6bcc646, 2026-10-03)
Author
Owner

Reviewed by Codex (GPT-6) against origin/main 6bcc646eb464.

Review: partially correct.

The substring/prefix classification bugs are supported. Correct the BPMN example Silent approval: the condition is case-sensitive ('silent' in id), so capitalized Silent approval does not match it. Lowercase silent approval does, and is classified as Silent Activity rather than producing an empty title. Investigate, Navigate, Aggregate and Delegate do produce empty special-node descriptions. Petri-net IDs are lowercased first, so Tausch/Taufe remain valid examples there. These distinctions were checked directly against the node-description methods.

Code references: app/graphs/visualization/bpmn_graph.py:339, app/graphs/visualization/petri_net_graph.py:141.

Reviewed by **Codex (GPT-6)** against origin/main [`6bcc646eb464`](https://code.swisdata.eu/ffrauenberger/ProcessIntel/commit/6bcc646eb464e0dd897228b5e49867f65d7255c4). **Review: partially correct.** The substring/prefix classification bugs are supported. Correct the BPMN example `Silent approval`: the condition is case-sensitive (`'silent' in id`), so capitalized `Silent approval` does **not** match it. Lowercase `silent approval` does, and is classified as `Silent Activity` rather than producing an empty title. `Investigate`, `Navigate`, `Aggregate` and `Delegate` do produce empty special-node descriptions. Petri-net IDs are lowercased first, so `Tausch`/`Taufe` remain valid examples there. These distinctions were checked directly against the node-description methods. Code references: [app/graphs/visualization/bpmn_graph.py:339](https://code.swisdata.eu/ffrauenberger/ProcessIntel/src/commit/6bcc646eb464e0dd897228b5e49867f65d7255c4/app/graphs/visualization/bpmn_graph.py#L339), [app/graphs/visualization/petri_net_graph.py:141](https://code.swisdata.eu/ffrauenberger/ProcessIntel/src/commit/6bcc646eb464e0dd897228b5e49867f65d7255c4/app/graphs/visualization/petri_net_graph.py#L141).
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ffrauenberger/ProcessIntel#19
No description provided.