It's all about the answers!

Ask a question

Unable to integrate a Process Aspect Editor in a follow up action


Martin Wassermann (13864144) | asked Aug 14 '13, 9:36 a.m.
Hi
I had successfully created and deployed a follo-up action in my local jazz team server installation. Now I want to add a Project Aspect Editor to my follow-up action but that didn’t work

I have used following links for the Project Aspect Editor
  • https://jazz.net/wiki/bin/view/Main/ProcessAspectEditorCreation
  • https://jazz.net/library/article/758

My follow-up action has following plugin.xml
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="com.ibm.team.process.service.operationParticipants">
      <operationParticipant
            class="de.rus.rtcextension.mailnotification.service.MailNotificationOperationParticipant"
            id="de.rus.rtcextension.mailnotification"
            name="Mail Notification"
            operationId="com.ibm.team.workitem.operation.workItemSave">
      </operationParticipant>
   </extension>
</plugin>
	
	
	
	


For the UI I have created another Plugin project with following plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="com.ibm.team.process.ide.ui.processAspectEditorFactories">
      <factory
            aspectId="de.rus.rtcextension.mailnotification"
            class="de.rus.rtcextension.mailnotification.ui.MailNotificationProcessAspectEditorFactory">
      </factory>
   </extension>
</plugin>
	
	


The Factory and the Aspect Editor is very simple (For the first try the Aspect Editor should only show a label)
public class MailNotificationProcessAspectEditorFactory implements
		IProcessAspectEditorFactory {

	@Override
	public ProcessAspectEditor createProcessAspectEditor(String processAspectId) {
		if(processAspectId.equals("de.rus.rtcextension.mailnotification")){
			return new MailNotificationProcessAspectEditor();
		}
		return null;
	}
}
	
public class MailNotificationProcessAspectEditor extends OperationDetailsAspectEditor {

	...

	@Override
	public void createControl(Composite parent, FormToolkit toolkit) {
		parent.setLayout(new GridLayout(2, false));
		
		Label addressLabel = toolkit.createLabel(parent, "Address:");
		GridData gridData = new GridData();
		gridData.verticalAlignment = SWT.TOP;
		addressLabel.setLayoutData(gridData);
  }
}
	


Furthermore I have created a feature project and an update site so that I can install this plugin in my local Eclipse installation.

I can successfully install this plug in my Eclipse but it did not show the Aspect Editor.  When I try to install the OpenSocialDemo that I have downloaded from jazz.net (https://jazz.net/library/article/758), everything works fine. Therefore I think something is wrong with my configuration but I did not find the problem.

Can anybody help me to find the problem? Thanks and regards
Martin

5 answers



permanent link
Martin Wassermann (13864144) | answered Oct 01 '13, 7:52 a.m.
The problem was that only restarting the server didn't change the follow-up action on the server. I thought I did several updates on the follow-up action but without calling the URL https://localhost:9443/<application>/admin/cmd/requestReset the server did not use the new version. So the plugin-ID in my Eclipse UI didn't match with plugin-IF of the server. Therefore Eclipse didn't show my user interface.

After restarting server (with a request for a reset) and client everything works fine.

Thank you very much for your assistance.

PS: @rschoon. Can you mark this answer as accepted answer? I can't accept my own answer.

permanent link
Martin Wassermann (13864144) | answered Aug 28 '13, 4:09 a.m.
Yes I tried the -clean option. But it still don't work

Comments
Martin Wassermann commented Aug 28 '13, 4:12 a.m.

When I install the sample Follow-Up Action with an Aspect Editor it works. So I think my installation process is correct.


Ralph Schoon commented Aug 28 '13, 5:46 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I'd suggest to use the Eclipse Client launch and the PDE debugger, add the bundle it to the client launch to see if your plugin is activated at all. If it does not show up at all and your classes are not called, the issue is most likely related to issues with your plugin.xml.


permanent link
sam detweiler (12.5k6195201) | answered Aug 16 '13, 8:09 a.m.
and u restarted Eclipse -clean? to request reloading plugins

permanent link
Martin Wassermann (13864144) | answered Aug 16 '13, 2:20 a.m.
Yes I had deployed the Aspect Editor into Eclipse. And in the eclipse log file there are no errors. If I use the downloaded sample, it works. So I think the steps for installing and deploying are correct.

permanent link
sam detweiler (12.5k6195201) | answered Aug 14 '13, 10:35 a.m.
the aspect editor is deployed into Eclipse.

did you look at the eclipse log to see if there are errors?

{eclipse workspace folder}/.metadata/.log

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.