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

how to create the components programatically under the given stream using client libraries??

Hello

I want to create the component under the given Stream programmatically  using client libraries in java ??

please let me know if you have any  code snippet for the same ??

0 votes


Accepted answer

Permanent link
IComponent comp = IWorkspaceManager#createComponent(compName, processArea, progressMonitor)
IComponentAdditionOp compOp = IWorkspaceConnection#componentOpFactory().addComponent(comp, false)
IWorkspaceConnection#applyComponentOperations(compOp, false, progressMonitor)
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} </style>
vinitha dsouza selected this answer as the correct answer

0 votes

Comments

Hello
Thank for the reply .I have one doubt here ..how can we create the component under the stream ???
Do we have to create repository workspace to stream and deliver the component???

IWorkspaceConnection is either a workspace or a stream and so you can add the component to the stream.


One other answer

Permanent link

More examples can be found here: https://rsjazz.wordpress.com/2013/09/24/managing-workspaces-streams-and-components-using-the-plain-java-client-libraries/

No, like in the UI, you can basically create a stream using component baselines.

0 votes

Your answer

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

Question asked: Jul 13 '17, 9:50 a.m.

Question was seen: 1,327 times

Last updated: Jul 14 '17, 6:45 a.m.

Confirmation Cancel Confirm