Assetkommentare werden über das Statusprotokoll eines Assets erstellt. Mithilfe von RAMAsset.getCurrentStateHistory() können Sie das Statusprotokoll des Assets abrufen. Kommentare werden an Rational Asset Manager gesendet, wenn die Methode RAMStateHistory.commet(RAMComment) aufgerufen wird; das Asset muss nicht in die Sitzung gestellt werden.
//Aktuelles Statusprotokoll abrufen RAMStateHistory stateHistory = newAsset.getCurrentStateHistory(); //Neuen Kommentar erstellen RAMComment comment = new RAMComment(); comment.setBody(“This asset looks great!”); //Kommentar dem Asset hinzufügen stateHistory.comment(comment);