sb.append(st + "\n");
}
pdd.importProcessDefinitions(sb.toString());
// Lookup for the process definition and save creation date
ProcessDefinition pd
= pdd.lookupProcessDefinition("ut-procdef", "jut2");
assertTrue (pd!=null);
String firstDate = pd.processHeader().packageHeader().created();
// Import the duplicate process definition
is = getClass().getResourceAsStream
("/procdef/initialProcessesCache2.xml");
assertTrue (is != null);
br = new BufferedReader
(new InputStreamReader(is, "ISO-8859-1"));
sb = new StringBuffer();
st = null;
while ((st = br.readLine()) != null) {
sb.append(st + "\n");
}
pdd.importProcessDefinitions(sb.toString());
// Lookup for the duplicate process definition
pd = pdd.lookupProcessDefinition("ut-procdef", "jut2");
assertTrue (pd!=null);
String secondDate = pd.processHeader().packageHeader().created();
// check for different creation dates
//System.err.println(firstDate);
//System.err.println(secondDate);
assertTrue(!firstDate.equals(secondDate));