task.setConditions(Collections.emptyList());
task.setRequiredMetFields(Collections.emptyList());
task.setTaskId("urn:cas:workflow:tester");
task.setTaskInstanceClassName(SimpleTester.class.getName());
task.setTaskName("Tester");
WorkflowTaskConfiguration config = new WorkflowTaskConfiguration();
config.addConfigProperty("TestDirPath",
testDir.getAbsolutePath().endsWith("/") ? testDir.getAbsolutePath()
: testDir.getAbsolutePath() + "/");
task.setTaskConfig(config);
Metadata met = new Metadata();
met.addMetadata("StartDateTime", DateUtils.toString(Calendar.getInstance()));