condition4.setConditionName(CONDITION4_NAME);
condition4.setCondConfig(cConf);
condition4.setConditionInstanceClassName("some.class.path");
conditions.put(condition4.getConditionId(), condition4);
WorkflowTask task1 = new WorkflowTask();
task1.setTaskId(TASK1_ID);
task1.setTaskName(TASK1_NAME);
task1.setTaskConfig(tConf);
task1.setConditions(Lists.newArrayList(condition1, condition2));
tasks.put(task1.getTaskId(), task1);
WorkflowTask task2 = new WorkflowTask();
task2.setTaskId(TASK2_ID);
task2.setTaskName(TASK2_NAME);
task2.setTaskConfig(tConf);
task2.setConditions(Lists.newArrayList());
tasks.put(task2.getTaskId(), task2);
WorkflowTask task3 = new WorkflowTask();
task3.setTaskId(TASK3_ID);
task3.setTaskName(TASK3_NAME);
task3.setTaskConfig(tConf);
task3.setConditions(Lists.newArrayList());
tasks.put(task3.getTaskId(), task3);
WorkflowTask task4 = new WorkflowTask();
task4.setTaskId(TASK4_ID);
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));