* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
public void actionPerformed(ActionEvent e1) {
try {
Workflow workflow = engine.getWorkflow();
XBayaExecutionState executionState = workflow.getExecutionState();
if (executionState == XBayaExecutionState.RUNNING || executionState == XBayaExecutionState.STEP) {
workflow.setExecutionState(XBayaExecutionState.PAUSED);
play.setIcon(PLAY_ICON);
} else if (executionState == XBayaExecutionState.PAUSED) {
workflow.setExecutionState(XBayaExecutionState.RUNNING);