A util function to construct a sequential control flow, with the ability to add pre and post processors