자산 주석은 자산의 상태 히스토리를 통해 작성됩니다. RAMAsset.getCurrentStateHistory()를 사용하여 자산의 상태 히스토리에 도달할 수 있습니다. RAMStateHistory.commet(RAMComment) 메소드가 호출되면 주석이 Rational Asset Manager로 전송되며 자산은 세션에 놓일 필요가 없습니다.
//Get the current state history
RAMStateHistory stateHistory = newAsset.getCurrentStateHistory();
//Create a new comment
RAMComment comment = new RAMComment();
comment.setBody(“This asset looks great!”);
//Add comment to the asset
stateHistory.comment(comment);