Workflow workflow = this.engine.getGUI().getWorkflow();
BPELScript bpel = new BPELScript(workflow);
// Check if there is any errors in the workflow first.
ArrayList<String> warnings = new ArrayList<String>();
if (!bpel.validate(warnings)) {
StringBuilder buf = new StringBuilder();
for (String warning : warnings) {
buf.append("- ");
buf.append(warning);
buf.append("\n");