cancel
Showing results for 
Search instead for 
Did you mean: 

extending the palette of activiti designer's palette

mhammad_makni
Champ in-the-making
Champ in-the-making
hi;
the graphiti documentation consist to :
domain model which determine an Eclass (metamodel)
picogram model which define the graphic shape
link model which link domain model element to picogram model element.
so please, how do I implement my shape and how do I associate each element of my shape to each model *WALL*
thank you very much. *blush*
I'm waiting for your response 
11 REPLIES 11

tiesebarrell
Champ in-the-making
Champ in-the-making
mhammad,

I don't understand the question. You ask how to produce the output for your element, but I don't know what output you require because it's your own custom output. If you look in BpmnXMLConverter, you either need to register your own converter using something similar to this line:

addConverter(BoundaryEventXMLConverter.getXMLType(), BoundaryEventXMLConverter.getBpmnElementType(), BoundaryEventXMLConverter.class);

Or you could subclass or adapt the BoundaryEventXMLConverter class. Which is best really depends on what you want to output. In general though, at some point, you need to get hold of the XMLStreamWriter which is used in those Converter classes and produce XML nodes and/or attributes if a model object of your specific type is encountered. Also, you need to implement the reverse conversion, XML -> BPMN model to make sure your element is read back when opening the diagram.

I'm afraid you will have to provide hooks into our code at some point, but the rest of your implementation could be a separate code base you add to the existing code. We don't provide extension points for this kind of functionality, especially because this is shared code with the engine and other modules, which are not Eclipse based.

mhammad_makni
Champ in-the-making
Champ in-the-making
hi,
thanks alot for responding.
as you said earlier, there is a doubt to provide hooks into the code and indeed I was obliged to do it several time from scrash.
so is there any chance to build an eclipse plugin.

I'm so grateful for you tips and I hope that it work
and thank you very much.