アセットのコメントは、アセットの状態の履歴によって作成されます。 アセットの状態の履歴を取得するには、RAMAsset.getCurrentStateHistory() を使用します。 RAMStateHistory.commet(RAMComment) メソッドが呼び出されると、コメントが Rational Asset Manager に送信されます。アセットをセッションに put する必要はありません。
//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);