It's all about the answers!

Ask a question

Facing problem in streams comparision


Vinod Kumar (9632010) | asked May 03 '09, 10:57 p.m.
JAZZ DEVELOPER
I'm using WVCM API to compare 2 streams, both of these streams are Jazz Streams

ResponseIterator<CompareReport> compareList = stream1.doCompareReport(stream2, new CompareFlag[]{CompareFlag.ACTIVITIES, CompareFlag.NEW_ONLY}, feedback);

The ResponseIterator object I receive provides me the difference in version list as well as difference in activities.
The list of activities is basically the list of change sets. But when try to get the list of tasks from the activity, it is null, though there are work items associated with the change set
i.e. (AddedActivity) CompareReport)).getActivity().getTaskList() is null. Please let me what can be the problem and how it can be rectified?

I'm using RTC 2.0 beta

12 answers



permanent link
Vinod Kumar (9632010) | answered Jun 09 '09, 2:26 a.m.
JAZZ DEVELOPER
We are using own sync algorithm. The reason for that is the same, we need to attach the same RTC workitem (actually the CMVC defect which is imported/synchronized using CMVC Work item connector) which is used to make changes in Jazz.
One question: Are you using the standard sync algorithm (defined in
InteropStream.java), or are you writing your own sync algorithm? If you
are using the standard sync algorithm, it will just ask the CMVC WVCM
provider to create a new task (a CMVC defect/feature) for each sync, and
will associate all new CMVC versions created by the sync with that new
task, so you wouldn't need to ask the Jazz WVCM provider for its work
item(s).

Cheers,
Geoff

vkcind wrote:
Hi Geoff,

The problem I was facing with tasklist was resolved by modifying the
class-path as suggested by Paul. Now I'm able to get the version
changes and associated tasks(Jazz Work items) in isolation, but I'm
not able to find a WVCM API which gives me the which versions were
changes against a specific work item in Jazz. Since CMVC requires a
defect/feature (equivalent to Work item in Jazz) to be associated
with the file(s) changes, I would need the corresponding work item
before synchronizing the changes done in RTC to CMVC repository.
I also had discussion with Maneesh Mehra regarding this, hementioned
that when checking in the code in CC, a new activity is created every
time and that no API method is provided in Jazz WVCM API and he
suggested to access property 'Activity.LATEST_VERSION_LIST' but when
I tried that, I got the error message that this property is not
supported for JzRepoChangeSet. Is ther any plan to have such API in
future.
Regards,
Vinod

gmclemmwrote:
Since this is getting very detailed, let's take it off into a work
item.
But as one more comment for the forum, Paul believes that the
problem is
that the team is not loading the file system component into their
development environment, so the "change set link" is not
defined (and
therefore cannot be retrieved programatically). But this not an
"error"
for the getLinks methods, so you're just getting a empty list, not
an error.
Cheers,
Geoff

vkcind wrote:
Hi Geoff,
My problem related to WvcmException is resolved by removing the
RTC2.0 beta -1 JazzPlainJavaClient libraries and using RTC2.0 beta
-1
Client pluginsas target platform. But the original proble remains
same.

I did the following steps:

1. Create a RTC stream using RTC Wvcm API
Stream stream = p.stream(p.rootLocation().child(name));
stream.doCreateGeneratedResource(feedback);
2. Created a repository workspace for a specific user (cmvcuser)
using
RTC Wvcm API
Workspace ws = p.workspace(p.rootLocation().child(name));
ws.doCreateGeneratedResource(feedback);
3. Added some files to repository workspace created in step 2. and
updated the stream created in step 1. using
Stream.doUpdate(Stream.provider().resourceList(Workspace), null);
4. I created another repository workspace from RTC development
environment for another user (test) with the flow target as the
stream created in 1st step.
5. Made some file changes in workspace created in step 4. (files
modified, new files created etc), created a work item, and
delivered
those changes associating with the work item created.
6. Then I took stream created in 1st step as first stream and got
another stream from workspace created in step 2. using Stream =
Workspace.getStream();
7. So as per my understanding, these 2 stream will differ as per
the
changes done in step 5.
The Problem:
I'm gettiing the version changes, as well as the change sets I
associated in step 5 but not getting the workitem associated (i.e
the
tasklist is empty)


permanent link
Vinod Kumar (9632010) | answered Feb 18 '10, 11:32 p.m.
JAZZ DEVELOPER
Is there any addition in the latest versions of RTC which I can provide the solution to my problem?
I'm using WVCM API to compare 2 streams, both of these streams are Jazz Streams

ResponseIterator<CompareReport> compareList = stream1.doCompareReport(stream2, new CompareFlag[]{CompareFlag.ACTIVITIES, CompareFlag.NEW_ONLY}, feedback);

The ResponseIterator object I receive provides me the difference in version list as well as difference in activities.
The list of activities is basically the list of change sets. But when try to get the list of tasks from the activity, it is null, though there are work items associated with the change set
i.e. (AddedActivity) CompareReport)).getActivity().getTaskList() is null. Please let me what can be the problem and how it can be rectified?

I'm using RTC 2.0 beta

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.