예제 #1
0
 /**
  * Run the process.
  *
  * @return True if the process has already been launch, false otherwise.
  */
 public boolean runProcess() {
   if (processExecutionData.getState().equals(ProcessExecutionData.ProcessState.IDLE)
       || processExecutionData.getState().equals(ProcessExecutionData.ProcessState.ERROR)
       || processExecutionData.getState().equals(ProcessExecutionData.ProcessState.COMPLETED)) {
     clearLogPanel();
     processExecutionData.runProcess();
     // Select the execution tab
     stateLabel.setText(processExecutionData.getState().getValue());
     tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1);
     return false;
   } else {
     return true;
   }
 }