What happens to an article after it has been submitted to a journal?

This post describes the hidden processes that take place before an article appears in an academic journal.