Added link to make it easier for others to find.
keep_your_basement_dry.pdf
Okay I understand now.
I would try to route the floor drain to the sump to eliminate the p-trap from the Sanitary sewer system.
I don't think that p-trap was designed for sewage waste from a bathroom.
Then run a new line to connect to Sanitary Sewer after the Floor drain
I've heard of running p-traps on the sewer main but I'm not familiar with them.
I would think that this one was not for that purpose.
Check your local codes.
Where does your existing Sanitary sewer system connect to this system?