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

no requiredService element under extensionService in M3?

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

0 votes



4 answers

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

0 votes


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

0 votes


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

0 votes


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

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

Question asked: Oct 16 '07, 10:46 a.m.

Question was seen: 8,919 times

Last updated: Oct 16 '07, 10:46 a.m.

Confirmation Cancel Confirm