Hey @Givan
Did you get what you're looking for?
I will take a bite and see if it makes sense.
the workflow_state of a table denotes the record(row) status of that particular entity(table), and the state in one entity may not impact the state in another entity. But it is upto the SQL writer to filter on the state as per their requirement or need.
For example,
A user_id 1 is enrolled in course_id 20 then the record in enrollment table might be "active" state (or"deleted" or any other state).
Lets say course 20 is a test course where admin was testing with a user 1, did bunch of submissions and left few other submissions in that course. Now "deleted" the user too. so in user table there will be record for 1, in course table there will be record for 20, in enrollment table there will be a record with status as active initially and later changed to deleted, and in submissions table there will be record for each submission with status as per the state of that particular submission.
Sorry if this is not what you're looking for.