Preprocess workflow