* .cas.workflow.structs.WorkflowTask, org.apache.oodt.cas.metadata.Metadata)
*/
@Override
public void execute(WorkflowTask workflowTask, Metadata dynMetadata)
throws Exception {
WorkflowTaskInstance inst = GenericWorkflowObjectFactory
.getTaskObjectFromClassName(workflowTask.getTaskInstanceClassName());
try {
LOG.log(Level.INFO, "Executing task: [" + workflowTask.getTaskName()
+ "] locally");
inst.run(dynMetadata, workflowTask.getTaskConfig());
} catch (Exception e) {
LOG.log(Level.WARNING,
"Exception executing task: [" + workflowTask.getTaskName()
+ "]: Message: " + e.getMessage());
e.printStackTrace();