1 package org.enhydra.shark.swingclient.workflowadmin.monitoring.actions; 2 3 import java.awt.event.*; 4 5 6 7 import org.enhydra.shark.api.client.wfmodel.*; 8 import org.enhydra.shark.swingclient.*; 9 import org.enhydra.shark.swingclient.workflowadmin.*; 10 import org.enhydra.shark.swingclient.workflowadmin.monitoring.*; 11 12 import javax.swing.JOptionPane ; 13 14 20 public class ResumeProcess extends ActionBase { 21 22 public ResumeProcess (ProcessMonitor pm) { 23 super(pm); 24 } 25 26 public void actionPerformed(ActionEvent e) { 27 ProcessMonitor pm=(ProcessMonitor)actionPanel; 28 SharkAdmin workflowAdmin=pm.getWorkflowAdmin(); 29 try { 30 WfProcess proc=pm.getProcessViewer().getCurrentProcess(); 31 if (proc!=null) { 32 try{ 33 proc.resume(); 34 } catch (CannotResume cr) { 35 JOptionPane.showMessageDialog(pm.getWindow(), 36 ResourceManager.getLanguageDependentString( 37 "MessageProcessCannotBeResumed"), 38 SharkClient.getAppTitle(),JOptionPane.WARNING_MESSAGE); 39 40 } catch (Exception ex) { 41 } 42 43 workflowAdmin.refresh(true); 44 } 45 } catch (Exception ex){} 46 } 47 } 48 | Popular Tags |