It's all about the answers!

Ask a question

[closed] Uploading new artifact does not work correctly.


Eric Ballance (131) | asked Mar 06 '18, 4:45 p.m.
closed Mar 09 '18, 2:18 a.m. by Ralph Schoon (55.5k23642)

  Hello. I'm using the code below to upload an artifact to an asset but every time I test it the web page is blank. completely empty. I end up having to delete the asset and start over. Does anyone know the correct way to add a file artifact to an asset??


    private void addFile(File f, RAMAsset currentAsset) { 
        LocalFileArtifact fileArtifact = new LocalFileArtifact(f); 
RAMFolderArtifact root = (RAMFolderArtifact) currentAsset
.getArtifactsRoot();
        root.addArtifact(fileArtifact);
        RAMSession session = this.getPolicyContext().getRAMSession(); session.queueAssetForPut(currentAsset);
session.putAssets(new NullProgressMonitor());
    } 

The question has been closed for the following reason: "Question is off-topic or not relevant" by rschoon Mar 09 '18, 2:18 a.m.

One answer



permanent link
Donald Nong (14.3k213) | answered Mar 08 '18, 10:08 p.m.

Rational Asset Manager issues should be posted on the dW Answers forum.
https://developer.ibm.com/answers/topics/rational-asset-manager/

It is fascinating that even none of the 1261 questions tagged with "rational-asset-manager" received an answer here on jazz.net forum, people still keep posting here. In comparison, only 25 questions were posted on the dW Answers forum.