1 23 24 package org.infoglue.cms.util.workflow; 25 26 import java.util.Map ; 27 28 import org.infoglue.deliver.util.CacheController; 29 30 import com.opensymphony.workflow.AbstractWorkflow; 31 import com.opensymphony.workflow.WorkflowException; 32 import com.opensymphony.workflow.basic.BasicWorkflow; 33 import com.opensymphony.workflow.basic.BasicWorkflowContext; 34 35 36 41 public class InfoGlueBasicWorkflow extends BasicWorkflow 42 { 43 public InfoGlueBasicWorkflow(String caller) 44 { 45 super(caller); 46 } 47 48 public void changeEntryState(long id, int newState) throws WorkflowException 49 { 50 super.changeEntryState(id, newState); 51 CacheController.clearCache("myActiveWorkflows"); 53 } 54 55 public void doAction(long id, int actionId, Map inputs) throws WorkflowException 56 { 57 super.doAction(id, actionId, inputs); 58 CacheController.clearCache("myActiveWorkflows"); 60 } 61 62 public long initialize(String workflowName, int initialState, Map inputs) throws WorkflowException 63 { 64 long id = super.initialize(workflowName, initialState, inputs); 65 CacheController.clearCache("myActiveWorkflows"); 67 return id; 68 } 69 70 } 71 | Popular Tags |