Combining Analysis of Unstructured Workflows with Transformation to Structured Workflows