LPS-47520 Creates a new method to get the number of workflow definition links for a className
LPS-47520 Uses the new method in the places is needed
LPS-47520 Autogenerated