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

RAM 7.5.2.4 - policy plugin, artifact modification

 Hello,


The requirement is to create a custom extension using the RAM Policy API, which changes the physical location of an artifact so it points to a new, local, location depending on the state. For example, asset ABC has artifact 123.doc. The state is updated to "complete" so the artifact now needs to point to c:\tmp\123.pdf.

Any helps is appreciated.
Thanks!

0 votes

Comments

 This questions is very close to what I'm trying to achieve--- https://jazz.net/forum/questions/74240/is-a-file-artifact-in-ram-given-a-url?sort=votes&page=1


Only difference is I'm trying to modify the URL so the artifact is retrieved from a different location. So, when the user clicks on the artifact it is actually downloaded from c:\tmp\finaldocuments\verisign 

 I'm able to pull the file by using the following code but I can't change the file location or even overwrite the file.


RAMFolderArtifact srcFolderArtifact = (RAMFolderArtifact) currentAsset. .getArtifactsRoot(); Artifact[] srcArtifacts = srcFolderArtifact.computeArtifactsAsFlatList(new NullProgressMonitor()); for (Artifact artifact : srcArtifacts) { RAMArtifact ramArtifact = (RAMArtifact) artifact; }


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

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,926

Question asked: Feb 27 '18, 4:43 p.m.

Question was seen: 1,598 times

Last updated: Feb 28 '18, 10:17 a.m.

Confirmation Cancel Confirm