Skip to main content



      Home
Home » Archived » BPMN Modeler » Adding a new property for sequence edges
Adding a new property for sequence edges [message #2064] Mon, 20 October 2008 02:16 Go to next message
Eclipse UserFriend
hi :)

I'd like to add a new property (in the property view) for sequence edges
in the BPMN-program.
Unfortunately just editing the ecore-metamodel bpmn.ecore, extracting it
into bpmn.ecore_diagram
and running the whole code as an eclipse application doesn't work.

Has anyone an idea oder can tell me how to do that?

Many thanks in advance!

Sven
Re: Adding a new property for sequence edges [message #2078 is a reply to message #2064] Mon, 20 October 2008 05:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Hi Sven,

you shoud follow the tutorial we had developed for EclipseCon 2007, that
has been kept as a sample.

Here:
http://wiki.eclipse.org/STP/BPMN_Component/STP_BPMN_Presenta tion_Hands_on_tutorial

It does everything you want.

Thanks,

Antoine

Sven wrote:
> hi :)
>
> I'd like to add a new property (in the property view) for sequence edges
> in the BPMN-program.
> Unfortunately just editing the ecore-metamodel bpmn.ecore, extracting it
> into bpmn.ecore_diagram
> and running the whole code as an eclipse application doesn't work.
>
> Has anyone an idea oder can tell me how to do that?
>
> Many thanks in advance!
>
> Sven
>
>
Re: Adding a new property for sequence edges [message #3126 is a reply to message #2078] Mon, 27 October 2008 14:04 Go to previous messageGo to next message
Eclipse UserFriend
hi,

thank you very much for posting the link of the tutorial such quickly!

Unfortunately I couldn't find any method "createControls" or "setInput"
for SequenceEdges, so that I couldn't add a new String-Property for them.
( http://wiki.eclipse.org/STP/BPMN_Component/STP_BPMN_Presenta tion_Hands_on_tutorial#Adding_a_property_tab_to_create_your_ annotation)
It seems, that Sequence Edges and other original objects use a different
way of doing that.

I also tried to copy and rename everything that had to do with the
documentation-Property (which is also a String-property) and hoped that it
works, although it's not a special property for sequence edges, but
unfortunately it didn't work.

Can anyone tell me how to add a String-Property especially for
SequenceEdges
or wether I have overlooked the necessary methods? (I searched for the
methods in the whole workspace
http://dev.eclipse.org/svnroot/stp/org.eclipse.stp.bpmn/trun k)

Many thanks in advance!

Sven
Re: Adding a new property for sequence edges [message #3158 is a reply to message #3126] Tue, 28 October 2008 05:19 Go to previous messageGo to next message
Eclipse UserFriend
Hi.

The createControls and setInput methods are methods of the
PropertySection, not SequenceEdge.
The setInput method is called whenever the selection in the editor
changes and you get the latest selection passed as the argument.
There u have to check if it is an IGraphicalEditPart and resolve the
semantic element. If this element is an instance of SequenceEdge u can
add a new (or edit the old) EAnnotation and put your new property in there.
Thats it.

Greets
Till

Sven schrieb:
> hi,
>
> thank you very much for posting the link of the tutorial such quickly!
>
> Unfortunately I couldn't find any method "createControls" or "setInput"
> for SequenceEdges, so that I couldn't add a new String-Property for them.
> ( http://wiki.eclipse.org/STP/BPMN_Component/STP_BPMN_Presenta tion_Hands_on_tutorial#Adding_a_property_tab_to_create_your_ annotation)
>
> It seems, that Sequence Edges and other original objects use a different
> way of doing that.
>
> I also tried to copy and rename everything that had to do with the
> documentation-Property (which is also a String-property) and hoped that
> it works, although it's not a special property for sequence edges, but
> unfortunately it didn't work.
>
> Can anyone tell me how to add a String-Property especially for
> SequenceEdges
> or wether I have overlooked the necessary methods? (I searched for the
> methods in the whole workspace
> http://dev.eclipse.org/svnroot/stp/org.eclipse.stp.bpmn/trun k)
>
> Many thanks in advance!
>
> Sven
>
Re: Adding a new property for sequence edges [message #3225 is a reply to message #2064] Wed, 29 October 2008 16:30 Go to previous messageGo to next message
Eclipse UserFriend
hi

first of all, thank you very much for you help!!

Finally it's much more simple than it seemed to be.

At first, you have to change the ecore-model
"../org.eclipse.stp.bpmn/model/bpmn.ecore" by adding a new EAttribute as a
child of Sequence Edges with the datatype String and a specific name (in
this case conditionExpression).

Moreover you have to right click on bpmn.genmodel, afterwards on "Reload"
and then select the ecoremodel in the following windows. Then click on
Finish.

At last you have to generate the new program code by double-clicking on
bpmn.genmodel, right-clicking on the root of the tree ("Bpmn") and click
on "Generate all". That's it :)

Thanks,

Sven
Re: Adding a new property for sequence edges [message #3257 is a reply to message #3225] Wed, 29 October 2008 18:53 Go to previous message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Sven, we discourage people to do that and we recommend they use
annotations as the model may change at any time.

Thanks,

Antoine

Sven wrote:
> hi
>
> first of all, thank you very much for you help!!
>
> Finally it's much more simple than it seemed to be.
>
> At first, you have to change the ecore-model
> "../org.eclipse.stp.bpmn/model/bpmn.ecore" by adding a new EAttribute as
> a child of Sequence Edges with the datatype String and a specific name
> (in this case conditionExpression).
>
> Moreover you have to right click on bpmn.genmodel, afterwards on
> "Reload" and then select the ecoremodel in the following windows. Then
> click on Finish.
>
> At last you have to generate the new program code by double-clicking on
> bpmn.genmodel, right-clicking on the root of the tree ("Bpmn") and click
> on "Generate all". That's it :)
>
> Thanks,
>
> Sven
>
>
>
>
Previous Topic:BPMN Modeler Creation Review
Next Topic:BPMN copy with references
Goto Forum:
  


Current Time: Wed May 07 11:36:13 EDT 2025

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

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

Back to the top