Skip to content

Feature: Rule Dependency Graph Visualization #699

@Loynova-Meena

Description

@Loynova-Meena

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions