/* * (non-Javadoc) * * @see org.apache.oodt.cas.workflow.engine.WorkflowEngine#pauseWorkflowInstance(java.lang.String) */ public synchronized void pauseWorkflowInstance(String workflowInstId) { // okay, try and look up that worker thread in our hash map IterativeWorkflowProcessorThread worker = (IterativeWorkflowProcessorThread) workerMap.get(workflowInstId); if (worker == null) { LOG.log( Level.WARNING, "WorkflowEngine: Attempt to pause workflow instance id: " + workflowInstId + ", however, this engine is not tracking its execution"); return; } // otherwise, all good worker.pause(); }