This document discusses using a Groovy scripting component in Mule to add a delay to a flow. The Groovy component uses the sleep method to pause message processing for a specified time period. This allows holding the payload for a set interval before writing the file to the outbound location. The example flow reads a file from one directory, uses a Groovy script to sleep for 3000ms, then writes the file to another directory.