Operation Advisor not recognized on Express-C Tomcat Env
![]()
I am working on an extension similar to the one on wiki (https://jazz.net/wiki/bin/view/Main/RTCSDK20_ProcessPreConditionExample)
I did exactly whats mentioned in there. I could see my plugin is ACTIVATED from the OSGI console. However, when i try to debug, the control does not even come to my custom "WorkItemAdvisor" class that implements IOperationAdvisor. I deployed the plugins correctly, removed the tomcat cache and then checked the ss command on ISGi. However, when i enter the summary string on a workitem as sentence that contains "example" (my criteria), it just saves instead of throwing an error. More than that, the controls does not even come here. I tried clearing the cache and on IE, FF and Chrome. no luck. Any help/ideas is appreciated. Following is the metadata ------------------------------ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Server Extension Advisor Plug-in Bundle-SymbolicName: com.rtcessentials.serverext.advisor;singleton:=true Bundle-Version: 1.0.0.qualifier Bundle-Vendor: RTC Essentials Require-Bundle: com.ibm.team.process.service;bundle-version="1.0.200", com.ibm.team.reports.workitem.common;bundle-version="2.0.1", com.ibm.team.reports.workitem.service;bundle-version="2.1.1", com.ibm.team.process.common;bundle-version="1.0.200", com.ibm.team.repository.common;bundle-version="1.0.2", com.ibm.team.workitem.common;bundle-version="2.2.0", org.eclipse.core.runtime;bundle-version="3.4.0" Bundle-RequiredExecutionEnvironment: J2SE-1.5 Contents of plugin.xml (removed tags as phpBB does not allow) -------------------------- plugin extension point="com.ibm.team.process.service.operationAdvisors"> operationAdvisor class="com.rtcessentials.serverext.advisor.WorkItemSaveAdvisor" id="com.rtcessentials.serverext.advisor.operationAdvisor1" name="WorkItem Save Advisor Demo" operationId="com.ibm.team.workitem.operation.workItemSave"> /operationAdvisor /extension /plugin I am using the follwing RTC version. Version: 2.0.0.2. Build id: I20100302-1947 Update on 09/25/2010 I tried the following example by using the update site given there. I could see the plugin is ACTIVE from the tomcat console but when i try to create a workitem with "fail" word.. it simply saves it without any error. https://jazz.net/wiki/bin/view/Main/RTCSDK20_ProcessPreConditionExample Any help is deeply appreciated. |
2 answers
![]()
Jared Burns (4.5k●2●9)
| answered Sep 27 '10, 4:06 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Fri, 24 Sep 2010 09:08:06 +0000, sureshkrishna wrote:
I am working on an extension similar to the one on wiki It's not clear from your post whether you've configured this advisor in any team or project area. Defining a new operation advisor makes the advisor available for end users to configure. But until someone chooses to configure the advisor for their team or project, it doesn't get invoked. To configure your advisor, open a project area editor using the Eclipse client, go to the Process Configuration tab, and select Team Configuration then Behavior and then select the Work Item Save row in the Everyone column. - Jared ----------------------- |
![]() On Fri, 24 Sep 2010 09:08:06 +0000, sureshkrishna wrote: Yes, you are right on it Jared. It took a while for me to realize that we should let the Project Area know about the new Advisor. Once i configured the Project Area, it worked just fine. Thanks once again. |