It's all about the answers!

Ask a question

Create an Artifact with a file from my local file system using Java OSLC


Vaibhav S (106354) | asked May 04 '21, 9:33 a.m.
edited May 04 '21, 11:33 a.m.

 Hi,


I need to Create an Artifact with a file embedded to it from my local file system location using Java OSLC

Please let me know how can we do that.

Thanks
Vaibhav


Comments
Vaibhav S commented May 04 '21, 11:12 a.m.

 Hi Ralph, i am trying to do it using OSLC and Java, is there any API for it.


Please let me know.

Thanks
Vaibhav

One answer



permanent link
Ralph Schoon (63.5k33646) | answered May 04 '21, 10:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited May 04 '21, 10:53 a.m.

 Have you tried Create>Upload Artifact?


Comments
Ralph Schoon commented May 05 '21, 2:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Sorry, didn't realize that aspect of the question. I can't answer that. I would look at the communication doing the aforementioned upload to better understand what is happening and to find out if it is OSLC. 


Vaibhav S commented May 05 '21, 8:26 a.m.

Hi Ralph, 


Thanks for the response.

As of now I am setting up Artifact attributes as below:

requirement .setInstanceShape(featureInstanceShape.getAbout());
requirement.setDescription(artifactDescription);
requirement.setTitle(artifactTitle);

Not sure how to add an image or an excel file to this Artifact.

Please let me know your views on this.

Thanks
Vaibhav
 

Your answer


Register or 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.