It's all about the answers!

Ask a question

no requiredService element under extensionService in M3?


Vivek Garg (1312) | asked Oct 16 '07, 10:46 a.m.
JAZZ DEVELOPER
Hello Folks,

I have a WI operation advisor that I implemented in the Beta1 builds of Jazz. The advisor gets invoked on the workItemSave operation. This advisor also made use of the IRepositoryItemService and was defined as follows in the plugin.xml of the operation advisor:

<extension point="com.ibm.team.process.service.operationAdvisors">
<operationAdvisor id="com.example.requireGreatnessAdvisor" class="com.example.RequireGreatnessOperationAdvisor" name="Require Greatness" operationId="com.ibm.team.workitem.operation.workItemSave">
<description>Gaurantees greatness</description>
<extensionService componentId="com.example.requireGreatnessAdvisor" implementationClass="com.example.RequireGreatnessOperationAdvisor">
<prerequisites>
<requiredService interface="com.ibm.team.repository.service.IRepositoryItemService"/>
</prerequisites>
</extensionService>
</operationAdvisor>
</extension>

I have been trying to move to M3 and apparently "requiredService" is no longer a valid element. As a result I can no longer obtain a reference to the IRepositoryItemService in the advisor at runtime. Is this a bug or is there another way that has been introduced. It is a blocking issue for me at this time.
Thanks
Vivek

4 answers



permanent link
Kai-Uwe Maetzel (85611) | answered Oct 16 '07, 9:05 p.m.
JAZZ DEVELOPER
Your declaration looks good to me. We do ship advisors with M3 that are
defined in the same way. At which point in time do you see the problem?

Kai


vivekgg wrote:
Hello Folks,

I have a WI operation advisor that I implemented in the Beta1 builds
of Jazz. The advisor gets invoked on the workItemSave operation. This
advisor also made use of the IRepositoryItemService and was defined as
follows in the plugin.xml of the operation advisor:

extension
point="com.ibm.team.process.service.operationAdvisors"
<operationAdvisor
id="com.example.requireGreatnessAdvisor"
class="com.example.RequireGreatnessOperationAdvisor"
name="Require Greatness"
operationId="com.ibm.team.workitem.operation.workItemSave"
<description>Gaurantees greatness</description
<extensionService
componentId="com.example.requireGreatnessAdvisor"
implementationClass="com.example.RequireGreatnessOperationAdvisor"
<prerequisites
<requiredService
interface="com.ibm.team.repository.service.IRepositoryItemService"/
</prerequisites
</extensionService
</operationAdvisor
/extension

I have been trying to move to M3 and apparently
"requiredService" is no longer a valid element. As a result
I can no longer obtain a reference to the IRepositoryItemService in
the advisor at runtime. Is this a bug or is there another way that
has been introduced. It is a blocking issue for me at this time.
Thanks
Vivek

permanent link
Vivek Garg (1312) | answered Oct 22 '07, 12:39 a.m.
JAZZ DEVELOPER
I did a complete reinstall but I still run into the same issue. Here are the steps I am following:

1. Create a new plugin project.
2. Declare the plugin dependencies by adding the following:

com.ibm.team.process.service,
com.ibm.team.process.common,
com.ibm.team.repository.common,
com.ibm.team.repository.service,
org.eclipse.core.runtime,
com.ibm.team.workitem.common

3. Add a new extension by selecting com.ibm.team.process.service.operationAdvisors

4. Right click to add a new "operationAdvisor". Define it's properties.

5. Right Click on "operationAdvisor" to add a new "extensionService". Set the properties.

6. Right Click on the just added (step 5) "extensionService" to add a "prerequisites" element.

7. Right click the "prerequisites" element. There is no option to add a new "requiredService" as it was available in previous releases.

8. At this point if you save everything, the Problems window lists a Warning message as: Element 'prerequisites' is not legal as a child of element 'extensionService'

I imagine you should be able to quickly try this out to see if this is a problem in your environment or not. As I mentioned before, this the cleanest possible install I have at this point and still seeing the issue. Also can you point me to a operation advisor that probably depends on other services in M3?

Thanks
Vivek

permanent link
Vivek Garg (1312) | answered Oct 23 '07, 11:54 a.m.
JAZZ DEVELOPER
Kai,

Did you get a chance to try out the steps mentioned above? While there are other advisors, that are trying to do the same, I still see the issue following the basic steps on a completely clean install of M3. And I don't see the issue with the previous version of Jazz. At this point I am more inclined to say that it is a defect. Any help on this is appreciated.

Thanks
Vivek

permanent link
Vivek Garg (1312) | answered Oct 23 '07, 12:43 p.m.
JAZZ DEVELOPER
I have created a defect 34385 for this issue.

Meanwhile I tried the same steps on a M2a install. No issues. Works fine. Issue is with M3.

Thanks
Vivek

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.