When replacing a task in a wokflow by an inactive task, all dependencies of the old object are gone in the workflow.
The behavior is different if replace task by an active task: all dependencies are kept.
This behavior can be reproduced:
Release : 12.2
Component : AUTOMATION ENGINE
Our R&D had fixed this bug where replacing tasks by inactive tasks removed all the dependencies. Fix will be delivered in the following versions: