1. A method comprising: inserting checkpoint code into each of one or more components that perform a legacy workflow including a series of processing operations related to a legacy workflow document, wherein, for each processing operation of the series of processing operations, the checkpoint code configured to: analyze data content that is processed by the components at the processing operation; calculate an identifier of the legacy workflow document based on the analyzed content; and add at least one metadata entry corresponding to a result of performing the processing operation to one or more other metadata entries in a document log associated with the legacy workflow document, wherein the document log is stored separately from the one or more components and the legacy workflow document; analyzing the metadata entries of the document log in order to identify one or more patterns found in words in the metadata entries of the document log; detecting the legacy workflow based on the identified patterns found in the words of the document log; and performing one or more operations related to the document in response to detecting the workflow.