Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BPMN Modeler » Extending the BPMN Modeler
icon5.gif  Extending the BPMN Modeler [message #487115] Mon, 21 September 2009 23:54 Go to next message
Christian  is currently offline Christian
Messages: 4
Registered: September 2009
Junior Member
Hello!
My goal is to extend the BPMN Modeler Metamodel to introduce new elements. Ive tried to use the GMF Files from the SVN Project to generate the Diagram code. But (there are already threads in this forum about it) it didnt work.

My question: Is there some other way to apply my modifications?
Basically I need to introduce subclasses of some existing classes and of course their entries in the palette etc..

Thank you so much for your help!
Christian
Re: Extending the BPMN Modeler [message #488006 is a reply to message #487115] Fri, 25 September 2009 09:55 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 3
Registered: September 2009
Junior Member
Hi!
I'm looking for the same info. But I didn't found anything
Re: Extending the BPMN Modeler [message #494886 is a reply to message #488006] Tue, 03 November 2009 04:51 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 1
Registered: November 2009
Junior Member
I am trying to do the same thing, e.g. adding some extra element into the Palette. Any suggestion or example on that?
Re: Extending the BPMN Modeler [message #499279 is a reply to message #494886] Fri, 20 November 2009 16:34 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

benzheren@gmail.com wrote:
> I am trying to do the same thing, e.g. adding some extra element into
> the Palette. Any suggestion or example on that?
Of course there are tons of examples, and if you look in the threads of
this newsgroup, you will see I pointed at the wiki several times, to
that page:
http://wiki.eclipse.org/STP/BPMN_Component/STP_BPMN_Presenta tion_Hands_on_tutorial
and this one is good too:
http://wiki.eclipse.org/STP/BPMN_Component/EclipseCon2008


Thanks,

Antoine
Re: Extending the BPMN Modeler [message #499287 is a reply to message #494886] Fri, 20 November 2009 16:52 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

benzheren@gmail.com wrote:
> I am trying to do the same thing, e.g. adding some extra element into
> the Palette. Any suggestion or example on that?
This should help:
http://wiki.eclipse.org/STP/BPMN_Component/EclipseCon2008
http://wiki.eclipse.org/STP/BPMN_Component/STP_BPMN_Presenta tion_Hands_on_tutorial
Re: Extending the BPMN Modeler [message #502247 is a reply to message #487115] Mon, 07 December 2009 12:59 Go to previous messageGo to next message
Christian Kuhl is currently offline Christian Kuhl
Messages: 1
Registered: December 2009
Junior Member
Hey it's me again.

Antoine, thanks for the links!

I decided to use extension points to add the new entry for a Subclass of "SubProcess" to my palette. So far so good, I also managed to assign it to a CreationTool but thats where my problems come in:
I don't seem to be able to create anything when Im using my own elementType. Maybe I missed to specify something?

My own PaletteFactory contains this:
...
return new CreationTool(BpmnElementTypes.MyOwnSubprocess);
...


So what I did was basically: I tried to define an "IElementType" in BpmnElementTypes and add the elementType to plugin.xml
      <metamodel nsURI="http://stp.eclipse.org/bpmn">
         <metamodelType
               id="org.eclipse.stp.bpmn.diagram.MyOwnSubProcess"
               name="%sub_process_label"
               kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
               eclass="MyOwnSubprocess"
               edithelper="org.eclipse.stp.bpmn.diagram.edit.helpers.SubProcessEditHelper">
            <param name="semanticHint" value="2002"/>
         </metamodelType>
      </metamodel>




However, there are a few things Im not sure about: The semantic Hint for example. Also is it necessary to create new viewProvider and EditPartProvider classes ?(I saw that in some other tutorial) I was hoping I could simply use the existing Helper class since it doesnt explicitly mention the type "Subprocess" anywhere.
As some of you might suspect I am by no means an expert in GMF Embarrassed

Anyways: when I want to draw my own Object it just doesnt let me (there is this little "not allowed" sign on my pointer)
Has anyone ever done something similar?
ANY help is greatly appreciated! Smile
Re: Extending the BPMN Modeler [message #503334 is a reply to message #502247] Fri, 11 December 2009 23:03 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

On 12/7/09 4:59 AM, Christian Kuhl wrote:
> Hey it's me again.
> Antoine, thanks for the links!
>
> I decided to use extension points to add the new entry for a Subclass of
> "SubProcess" to my palette. So far so good, I also managed to assign it
> to a CreationTool but thats where my problems come in:
> I don't seem to be able to create anything when Im using my own
> elementType. Maybe I missed to specify something?
>
> My own PaletteFactory contains this:
>
> ..
> return new CreationTool(BpmnElementTypes.MyOwnSubprocess);
> ..
>
> So what I did was basically: I tried to define an "IElementType" in
> BpmnElementTypes and add the elementType to plugin.xml
>
> <metamodel nsURI="http://stp.eclipse.org/bpmn">
> <metamodelType
> id="org.eclipse.stp.bpmn.diagram.MyOwnSubProcess"
> name="%sub_process_label"
> kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
> eclass="MyOwnSubprocess"
> edithelper=" org.eclipse.stp.bpmn.diagram.edit.helpers.SubProcessEditHelp er ">
>
> <param name="semanticHint" value="2002"/>
> </metamodelType>
> </metamodel>
>
>
>
>
> However, there are a few things Im not sure about: The semantic Hint for
> example. Also is it necessary to create new viewProvider and
> EditPartProvider classes ?(I saw that in some other tutorial) I was
> hoping I could simply use the existing Helper class since it doesnt
> explicitly mention the type "Subprocess" anywhere.
> As some of you might suspect I am by no means an expert in GMF :blush:
> Anyways: when I want to draw my own Object it just doesnt let me (there
> is this little "not allowed" sign on my pointer)
> Has anyone ever done something similar?
> ANY help is greatly appreciated! :)
As a rule of thumb, don't touch element types as they are defined in the
model of the diagram. You can use annotations to customize your items.

Thanks,

Antoine
Re: Extending the BPMN Modeler [message #662130 is a reply to message #487115] Tue, 29 March 2011 13:12 Go to previous messageGo to next message
myriam87  is currently offline myriam87
Messages: 6
Registered: March 2011
Junior Member
I'm trying the same thing.
If you find the way to add classes in m├ęta-model could you please help me?
Re: Extending the BPMN Modeler [message #715276 is a reply to message #487115] Sat, 13 August 2011 02:44 Go to previous message
g.marquez.o  is currently offline g.marquez.o
Messages: 4
Registered: September 2010
Junior Member
Hello I hope I can help me. I want to extend the BPMN Modeler. I saw the "STP BPMN Presentation Hands on tutorial" ---> "Extending the modeler: defining a custom property"

In the section called "Extending the modeler: defining a custom property" discusses the extension of the BPMN Modeler. But in this part "... Create a class in org.eclipse.stp.samples.eclipsecon2007.participant.properties as ParticipantPropertySection..." Where is "org.eclipse.stp.samples.eclipsecon2007.participant.properties" in Eclipse? From what I see is a package of the conference in 2007, but which package is equivalent in the BPMN modeler? Where I create the ParticipantPropertySection class?

Greetings
Previous Topic:bpmn2 modeler gmf code
Next Topic:BPMN versions supported
Goto Forum:
  


Current Time: Tue Sep 23 20:40:55 GMT 2014

Powered by FUDForum. Page generated in 0.02110 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software