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

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

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

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
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

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

Question asked: May 20 '10, 12:47 p.m.

Question was seen: 5,778 times

Last updated: May 20 '10, 12:47 p.m.

Confirmation Cancel Confirm