cancel
Showing results for 
Search instead for 
Did you mean: 

added shape not visible

pascal1
Champ in-the-making
Champ in-the-making
Hello,
i just wanted to add a custom shape to the palette but it doesn´t work. I created a class that extends 'AbstractCustomServiceTask', build the jar an added it to the Library 'Activity Designer Extensions' that i have created before. After that i closed all diagramms, opened one, but no new shape was visible. Also restarting eclipse didn´t help.
First I was using INDIGO Eclipse Jave EE, after reading some threads in the forum (Problems with different Eclipse-Versions occured) i tested the same things with the newest classis Version and an old Version (3.6.2), but both with the same result. My created Shape isn´t there in the Palette.
What other possibilities do I have for getting my created Shape into the palette?

Thanks for your help…
Pascal
4 REPLIES 4

tiesebarrell
Champ in-the-making
Champ in-the-making
The easiest way to figure out why it doesn't show up is to debug the code that assembles the palette. This code, in the current version, is in org.activiti.designer.util.extension.ExtensionUtil.getCustomServiceTaskContexts(IProject). A collection of extensions is retrieved from Eclipse's registry. If your task is not in there, there's something wrong with the registration in Eclipse. If it's in there, but still doesn't show up, subsequent handling should tell you what's wrong with the actual classes (or maybe none are found due to incorrect annotations).

pascal1
Champ in-the-making
Champ in-the-making
I found the ExtensionUtil.class in the plugins .jar, but it isn´t possible to debug / look into the code because I have no sources!?

trademak
Star Contributor
Star Contributor
The source code is available in the Activiti SVN repository, so why don't you get it from there?

Best regards,

pascal1
Champ in-the-making
Champ in-the-making
Cause I didn´t know Smiley Wink Now I have it.

Now the Money-task example works. Problem was that the plugin requires the full path (C:\…\money-task.jar). Because of this the .jar hast to be stored out of the Eclipse-Projects, otherwise Eclipse takes the internal path to the .jar in the User Library (Activiti Designer Extensions).


Thanks for your help,
Pascal