/* * (non-Javadoc) * * @see org.apache.oodt.cas.workflow.engine.WorkflowEngine#stopWorkflow(java.lang.String) */ public synchronized void stopWorkflow(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 stop workflow instance id: " + workflowInstId + ", however, this engine is " + "not tracking its execution"); return; } worker.stop(); }