RulesEngine icon indicating copy to clipboard operation
RulesEngine copied to clipboard

Feature: Rule Dependency Graph Visualization

Open Loynova-Meena opened this issue 3 months ago • 0 comments

Feature: Rule Dependency Graphs (Visualization)

Objective: Implement a feature that visualizes rule dependency graphs in the RulesEngine administration portal and/or API. This will help users understand how rules and workflows interconnect, making it easier to debug, optimize, and maintain complex rule sets.

Requirements:

  • Analyze and extract rule dependencies from workflow definitions (e.g., rules referencing outputs of other rules).
  • Generate a directed graph model representing these dependencies.
  • Provide a backend API endpoint to retrieve dependency graphs for a given workflow version (e.g., as a JSON structure compatible with common graph libraries such as Cytoscape.js, D3.js, or Mermaid).
  • (Frontend) Integrate a visualization component (e.g., D3.js, Cytoscape.js, or Mermaid) that consumes the backend graph and displays it interactively.
  • Highlight potential issues: cycles, unreachable rules, or orphan rules.
  • Optionally: Allow users to navigate from the graph to rule definitions for quick editing.

Acceptance Criteria:

  • Backend exposes a dependency graph API for each workflow version.
  • Admin UI displays the graph for any workflow.
  • Cycles, orphans, and unreachable nodes are visually distinguished.
  • Documentation updated for this feature.

References:

Loynova-Meena avatar Oct 01 '25 20:10 Loynova-Meena