157158159160161162163164165166167
wInst.setSharedContext(met); } else wInst.setSharedContext(new Metadata()); if (workflowInstance.get("priority") != null) { Priority p = Priority.getPriority(Double .valueOf((String) workflowInstance.get("priority"))); } return wInst; }