task4.setTaskName(TASK4_NAME);
task4.setTaskConfig(tConf);
task4.setConditions(Lists.newArrayList(condition4));
tasks.put(task4.getTaskId(), task4);
Workflow workflow1 = new Workflow();
workflow1.setId(WORKFLOW1_ID);
workflow1.setName(WORKFLOW1_NAME);
workflow1.setTasks(Lists.newArrayList(task1, task2));
workflow1.setConditions(Lists.newArrayList(condition1));
workflows.put(workflow1.getId(), workflow1);
Workflow workflow2 = new Workflow();
workflow2.setId(WORKFLOW2_ID);
workflow2.setName(WORKFLOW2_NAME);
workflow2.setTasks(Lists.newArrayList(task1, task2, task4));
workflow2.setConditions(Lists.newArrayList(condition1, condition4));
workflows.put(workflow2.getId(), workflow2);
Workflow workflow3 = new Workflow();
workflow3.setId(WORKFLOW3_ID);
workflow3.setName(WORKFLOW3_NAME);
workflow3.setTasks(Lists.newArrayList(task3));
workflow3.setConditions(new ArrayList<WorkflowCondition>());
workflows.put(workflow3.getId(), workflow3);
eventToWorkflowsMap.put(EVENT1_NAME, Lists.newArrayList(workflow1));
eventToWorkflowsMap.put(EVENT2_NAME, Lists.newArrayList(workflow1,
workflow2));
}