Skip to content

Commit 57a839e

Browse files
Create README.md
1 parent aa52bc8 commit 57a839e

File tree

1 file changed

+17
-0
lines changed
  • Server-Side Components/Script Includes/Prevent circular dependencies in task relationships.

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Detect Circular Reference in Task Dependencies
2+
3+
## Overview
4+
5+
This Script Include helps identify **circular dependencies** in task relationships within ServiceNow. Circular references can cause workflow issues, reporting errors, and logic failures in project management or task tracking modules.
6+
7+
## What It Does
8+
9+
- Traverses task dependencies recursively.
10+
- Detects if a task is indirectly dependent on itself.
11+
- Returns `true` if a circular reference is found, `false` otherwise.
12+
13+
## Use Case
14+
15+
Imagine Task A depends on Task B, and Task B depends on Task A. This creates a circular loop that can break automation or cause infinite recursion. This script helps prevent such configurations.
16+
17+

0 commit comments

Comments
 (0)