*
* @see org.apache.oodt.cas.workflow.engine.WorkflowEngine#getWorkflowInstanceMetadata(java.lang.String)
*/
public Metadata getWorkflowInstanceMetadata(String workflowInstId) {
// okay, try and look up that worker
WorkflowInstance wInst = null;
try{
wInst = this.instRep.getWorkflowInstanceById(workflowInstId);
if (wInst != null) {
// try and get the metadata
// from the workflow instance repository (as it was persisted)
return wInst.getSharedContext();
}
} catch (InstanceRepositoryException e) {
LOG.log(Level.FINEST,
"WorkflowEngine: Attempt to get metadata "
+ "for workflow instance id: " + workflowInstId
+ ", however, this engine is "
+ "not tracking its execution and the id: ["
+ workflowInstId + "] "
+ "was never persisted to "
+ "the instance repository");
e.printStackTrace();
return new Metadata();
}
return wInst.getSharedContext();
}