documentResult.replaceItemValue(UNIQUEID, generateUniqueID());
}
if ("".equals(workitem.getItemValueString("$WorkItemID"))) {
documentResult.replaceItemValue("$WorkItemID", generateUniqueID());
}
<BUG>while (documentResult.getItemValueInteger(ACTIVITYID)>0) {

ItemCollection event=loadEvent(documentResult);

documentResult=processActivity(documentResult,event);

documentResult=updateActivityList(documentResult);
</BUG>
}

documentResult.replaceItemValue(UNIQUEID, generateUniqueID());
}
if ("".equals(workitem.getItemValueString("$WorkItemID"))) {
documentResult.replaceItemValue("$WorkItemID", generateUniqueID());
}
while (documentResult.getItemValueInteger(ACTIVITYID) > 0) {
ItemCollection event = loadEvent(documentResult);
documentResult = processActivity(documentResult, event);
documentResult = updateActivityList(documentResult);
}
