Are you familiar with Rule Machine written by Bruce (bravenel)? It’s the bees knees and sounds like what you are looking for.
Rick