
Chapter 8. Building a case study application 281
if(dsICM == null) {
connect();
}
//--------------------------------------------------
// Create a DKDDO (ddoFolder) using the passed in PID string
ddoFolder = dsICM.createDDO(PID);
// retrieve the current attribute information and
// check the item out.
ddoFolder.retrieve(DKConstant.DK_CM_CONTENT_ATTRONLY |
DKConstant.DK_CM_CHECKOUT);
// Get Attribute id
short dataId = ddoFolder.dataId(DKConstant.DK_CM_NAMESPACE_ATTR,
"BP_REJ_DESC");
// Update data
ddoFolder.setData(dataId, pRejectReason);
// Update object in persistence storage
dsICM.updateObject(ddoFolder, DKConstant.DK_CM_CHECKIN);
this.disconnect();