It's all about the answers!

Ask a question

How to create a new Stream using snapshot programatically

Lakshmana Ekambaram (2135) | asked Aug 19 '10, 4:11 p.m.
I am trying to create a new Stream using snapshot. The following code executes without any error. It created the stream but there is no component or snapshot associated with the stream.

part of the code snippet:

stream = manager.createStream(project, streamName, description, monitor);
stream.addBaselineSet(ibaselineset, monitor);

We are trying to automate the source migration from different SCM into RTC. Any help is appreciated.


2 answers

permanent link
Evan Hughes (2.4k1318) | answered Aug 19 '10, 4:55 p.m.
IFlowNodeConnection.addBaselineSet() promotes a snapshot. It doesn't modify the workspace's configuration.

If you want to replace the current configuration of a component with the configuration contained in a baseline or snapshot, you should look into the IWorkspaceUpdateOperation.replace() family of methods.


Kaushambi Singh commented Apr 09 '13, 3:56 a.m.

So is it possible to create streams from snapshot using plain java API ?

permanent link
Kaushambi Singh (371310379) | answered Apr 10 '13, 8:28 a.m.
Could you provide more inputs to it how a stream could be created from snapshot using plain java API ?

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.