Patent attributes
Methods and apparatus are provided for taking snapshots to train prediction models and improve workflow execution. An exemplary method for managing execution of a workflow comprising one or more sub-workflows comprises parsing and interpreting a definition of the workflow and the one or more sub-workflows; flattening the workflow and the sub-workflows into a directed acyclic graph where nodes represent activities and edges represent partial-order constraints; collecting provenance data about executions of the workflow according to the directed acyclic graph; taking snapshots of the collected provenance data as a representation of a state of the workflow execution; calculating one or more quality metrics regarding the execution of the workflow; associating the snapshots to the quality metrics; training one or more prediction models of the quality metrics based on the snapshots of the workflow executions; and processing the prediction models during a real-time execution of the workflow to adjust the execution of the workflow. The snapshots are triggered using graph-based and/or time-based triggering techniques.