cancel
Showing results for 
Search instead for 
Did you mean: 

extendind the palette of activiti designer

mhammad_makni
Champ in-the-making
Champ in-the-making
hi;
I'm trying to extend te palette of activiti designer with a special tipe of bundary event and specific connector.
I seceeded in the implementation of the exepple of money node witch is written in user guide.
I kept reading user guide  and I reached to uderstand this:
-the annotation @Runtime allow to define the super class witch have to implement JavaDelegate.
-beside, I looked for the classes that implement JavaDelegate and I found them in this package org.activiti.bpmn.model
so, am I right in my interpretation?  Smiley Surprisedops:  :?:
I'll be so happy to get your response .
thanks a lot.
22 REPLIES 22

hi;
as I annouunced in my frist comment , I want to add to the palette a specific type of boundary events and connectors.
first of all, how could I create a group in the palette as like as gateway for instance, and how do I link my shapes to it.
I succeeded to add a shape whitch I called "shape" by creating AddShapeFeature( extends AbstractAddBoundaryFeature) and CreateShapeFeature ( extends AbstractCreateBoundaryFeature). ps: I copied the classes AddBoundaryErrorFeature and
CreateBoundaryErrorFeature.
and I modified ActivitiBPMNFeatureProvider: I added IcreateFeature  new CreateShapeFeature(this);
despite, I could'nt change the name of the shape neither it view in the diagram.
so am I in the right way, and what should I do to correct  these mistake

hi;
as I annouunced in my frist comment , I want to add to the palette a specific type of boundary events and connectors.
first of all, how could I create a group in the palette as like as gateway for instance, and how do I link my shapes to it.
I succeeded to add a shape whitch I called "shape" by creating AddShapeFeature( extends AbstractAddBoundaryFeature) and CreateShapeFeature ( extends AbstractCreateBoundaryFeature). ps: I copied the classes AddBoundaryErrorFeature and
CreateBoundaryErrorFeature.
and I modified ActivitiBPMNFeatureProvider: I added IcreateFeature  new CreateShapeFeature(this);
despite, I could'nt change the name of the shape neither it view in the diagram.
so am I in the right way, and what should I do to correct  these mistake

mhammad_makni
Champ in-the-making
Champ in-the-making
hi;
I followed your instructions and I started to navigate into the code, mainly, the packages that you have mentionned beside the documentation of graphiti; then I discovred that I passed the most important thing   :shock: witch is how to run the source code of designer, so I proceeded this tutorial http://docs.codehaus.org/display/ACT/Activiti+Designer+Developer+Guide and I thought that it seems GMF, so I went to file new loocking for a project or diagram named activiti or bpmn in the "environment for working with Activiti Designer" and  I didn't find any thing could help me. :roll:
could you please tell me what should I do. Smiley Surprisedops:
thanks you very much. Smiley Happy

tiesebarrell
Champ in-the-making
Champ in-the-making
The description there is actually still pretty much spot on. You should install the Graphiti SDK, run mvn eclipse:eclipse on all the Designer projects and then run Eclipse from the org.activiti.designer.eclipse bundle using right-click > run as > Eclipse Application. Any changes you've made to the original Designer bundles will then be picked up.

mhammad_makni
Champ in-the-making
Champ in-the-making
should I "Checkout all of the folders in the source control location as top level Eclipse projects" as it has been said because the project contain 3 sub folder(branches, tag, trunk).
thanks a lot for answering.

tiesebarrell
Champ in-the-making
Champ in-the-making
Where are you looking? That sounds like the SVN repository, which we no longer use. In the Github project those folders aren't there.

mhammad_makni
Champ in-the-making
Champ in-the-making
you're right;
so I downloaded a zip file from github and I extact it into work space, because even when I download the code trough git eclipse plugin, I'll be faced by the same problem which is  "all  the folders in the source control location should be as top level Eclipse projects".
thank you very much.

tiesebarrell
Champ in-the-making
Champ in-the-making
It's easier to import the git projects directly into Eclipse, but still. Just do an import of each folder in Eclipse as a new project after extracting the zip.

mhammad_makni
Champ in-the-making
Champ in-the-making
hi;
when I importe the git projects directly into Eclipse, I'm not allowed to get the projects like they are in github, because I should define a root for them and it could be whether general project or an exsting project, so, I prefert to follow the zip file way and I did every thing you told and I could lately run it and I got an activiti winzard  but I didn't get to instanciate it   :?  because of the following error
"The selected wizard could not be started.
Plug-in org.activiti.designer.eclipse was unable to load class org.activiti.designer.eclipse.ui.wizard.project.CreateDefaultActivitiProjectWizard.
org.activiti.designer.eclipse.ui.wizard.project.CreateDefaultActivitiProjectWizard"
I hope that I'm not bothering you by my questions  Smiley Surprisedops:
thanks a lot.  Smiley Happy

tiesebarrell
Champ in-the-making
Champ in-the-making
Hi,

your projects are not imported correctly, or you wouldn't have those kinds of errors.

Actually, you can just clone the root level project from github, then add the local clone to eclipse using the git repo perspective. Then import the root as a general Eclipse project. Finally, just right click and perform import > existing Maven projects and that should work just fine.