elsa-workflows / elsa-studio

A modular, extensible dashboard application framework
MIT License
176 stars 83 forks source link

Complex Nested Workflows throws "CurrentDepth (32) is equal to or larger than the maximum allowed depth of 32" Error #305

Open amosgnanaraj opened 3 days ago

amosgnanaraj commented 3 days ago

While working with complex nested workflows (like copy pasting or adding more children), throws "CurrentDepth (32) is equal to or larger than the maximum allowed depth of 32" error.

Tried changing JsonSerializerOptions MaxDepth as 1024 wherever possible, but still throwing the same error.

Steps to Reproduce Create an activity that includes complex nested activities (multiple nesting close to 20 depth). Copy the entire activity. Attempt to paste the copied activity within the same or a different workflow.

Expected Behavior The activity and its nested activities should be successfully copied and pasted without errors.

Actual Behavior The operation fails with a "CurrentDepth (32) is equal to or larger than the maximum allowed depth of 32" error.

amosgnanaraj commented 21 hours ago

Attaching sample workflow that results in error

JsonSerializerError

json-serializer-test.json