File modifiedWorkflowFile = new File(this.temporalDirectory, "complex-math-modified.xwf");
XMLUtil.saveXML(workflow.toXML(), modifiedWorkflowFile);
// Create a diff workflow
WorkflowModifier modifier = new WorkflowModifier(workflow, eventData);
Workflow diffWorkflow = modifier.createDifference();
if (this.gui) {
GraphCanvas canvas = this.engine.getGUI().newGraphCanvas(true);
canvas.setWorkflow(diffWorkflow);
repaintAndWait(5);