It's all about the answers!

Ask a question

How do I create a Baseline on a Stream through the JAVA API


Giacomo Tonucci (2631) | asked May 20 '10, 12:47 p.m.
Hi everyone,
today I need to create a Baseline on a Stream. How can this be done?

I tried with this code passing the ComponentHandle of the only one component present in the stream.

IBaselineConnection baseConn = prodStreamConn.createBaseline(compHandle, udcName + "_test", "Baseline for " + udcName , null);


but I have an exception saying that this operation cannot be done on a Stream.

Using the eclipse client I have to create a Snapshot first then I can see the new Baseline. Is there some Class to do a Snapshot of a Stream (or better of a component in a stream)?

Thanks in advance
Giacomo

2 answers



permanent link
Michael Valenta (3.7k3) | answered May 26 '10, 9:12 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
The method you want is IWorkspaceConnection.createBaselineSet. In the
UI, we refer to a set of baselines as a "snapshot".

Hope this helps,
Michael

gtonucci wrote:
Hi everyone,
today I need to create a Baseline on a Stream. How can this be
done?

I tried with this code passing the ComponentHandle of the only one
component present in the stream.

IBaselineConnection baseConn =
prodStreamConn.createBaseline(compHandle, udcName +
"_test", "Baseline for " + udcName , null);


but I have an exception saying that this operation cannot be done on a
Stream.

Using the eclipse client I have to create a Snapshot first then I can
see the new Baseline. Is there some Class to do a Snapshot of a
Stream (or better of a component in a stream)?

Thanks in advance
Giacomo

permanent link
Giacomo Tonucci (2631) | answered May 27 '10, 4:51 a.m.
Thank you Michael,
that was what I was looking for: right after I opened this topic I realized I needed to create a snapshot to have then a new Baseline.

Thanks,
Giacomo Tonucci



The method you want is IWorkspaceConnection.createBaselineSet. In the
UI, we refer to a set of baselines as a "snapshot".

Hope this helps,
Michael

gtonucci wrote:
Hi everyone,
today I need to create a Baseline on a Stream. How can this be
done?

I tried with this code passing the ComponentHandle of the only one
component present in the stream.

IBaselineConnection baseConn =
prodStreamConn.createBaseline(compHandle, udcName +
"_test", "Baseline for " + udcName , null);


but I have an exception saying that this operation cannot be done on a
Stream.

Using the eclipse client I have to create a Snapshot first then I can
see the new Baseline. Is there some Class to do a Snapshot of a
Stream (or better of a component in a stream)?

Thanks in advance
Giacomo

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.