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.
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
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
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:
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
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
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