Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

[closed] Uploading new artifact does not work correctly.

  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());
    } 

0 votes


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

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.

0 votes

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Mar 06 '18, 4:45 p.m.

Question was seen: 2,174 times

Last updated: Mar 09 '18, 2:18 a.m.

Confirmation Cancel Confirm