Extending Rational Team Concert - RTC Extending
EduardoBello 270003RXWC Tags:  extending rtc link jazz sample code rational advisor prevent 1 Comment 15,153 Views
Hello, It has been a while since I posted here, I've been really busy, but I got a few minutes of free time to write this example of Operation Advisor which aims to prevent a certain type of workitem to be linked to another workitem of a different type.
For this example, let's make Tasks workitems unable to link Defect workitems as children. You can easily change the types of workitems and links in this example to suit your needs. The purpose of this and future posts is to get familiar with the API Jazz.
Before proceeding it is essential that you already know the first steps to creating a RTC plug-in, if you do not know stop here and read this previous post that explains the basic steps with a simple example.
First create your Plug-in Project and select Dependencies tab and add most frequently used plugins as required (com.ibm.team.process.service, com.ibm.team.workitem.common, com.ibm.team. workitem.service, com.ibm.team.process.common, com.ibm.team.repository.common, com.ibm.team.repository.service) and import the package org.eclipse.core.runtime. After that, it is important that you save the project to refresh the workspace.
Let's select Extensions tab and add our Extension Point for this plugin. And since this is a pre-condition and will not change the state of the workitem, let's use an Operation Advisor.
Look for: com.ibm.team.proccess.service.operationAdvisors. This option only appears if you have correctly added the required plugins as mentioned earlier.
Fill the following fields:
id: Identifier of the advisor
class: Java class that will be called by the advisor
name: Name by which the advisor will be identified in the process settings.
operationId: Id of the operation where the advisor will be injected.
Add an extension service, Right click, New -> extensionService and fill an id and use the same class used in the extension point.
Now let's the code:
All done! Now just create the feature and the site and upload the plugin to server.
I will try to shorten the time between posts, but by May it can be a bit difficult. See you next time!
EduardoBello 270003RXWC Tags:  extend customização plugin advisor participant rtc 16 Comments 35,864 Views
Hello everybody, finally we begin to actually show how to develop plugins to extend Rational Team Concert (RTC). To follow the steps in this post, you must already have a server and a client properly configured for plugin development. If you have not, take a look at three part tutorial I published in this blog (part 1, part 2 and part 3).
After starting the server there is only one thing to do: Enable the advisor.
Open the project area.
Select Process Configuration, go to Team Configuration -> Operation Behavior, look for Work Items -> Save Work Item (server) and click Add to add our Advisor.
All done! Now if you try to save a Work Item typing the "#" character in the summary will receive this message.
That is it, I hope this material help you guys. In coming posts I will bring more examples and will focus more on programming. The level will increase, I will assume that you've got the basics and I will focus in the API.
Source code is available for download
Leave your comments, critics, suggestions. Your feedback is very important to make me improve the material. Despite the fact that I'm relatively "old" in development world, I am entirely new in this area of articles, blogs and video lessons.
Some spelling errors may occur. If you find any misspelled words, let me know.