Document workflowRoot = getDocumentRoot(workflowXmlFile);
String workflowId = workflowRoot
.getDocumentElement().getAttribute("id");
if (workflowMap.get(workflowId) == null) {
Workflow w = XmlStructFactory.getWorkflow(
workflowRoot.getDocumentElement(),
taskMap, conditionMap);
if(w.getConditions() != null && w.getConditions().size() > 0){
// add a virtual first task, with the conditions
w.getTasks().add(0, getGlobalWorkflowConditionsTask(w.getName(), w.getId(), w.getConditions()));
}
workflowMap.put(workflowId, w);
} else {
LOG
.log(