Understanding Legacy Workflows through Runtime Trace Analysis