Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BPMN Modeler » Adding and editing annotations dynamically
Adding and editing annotations dynamically [message #5656] Wed, 07 January 2009 15:27 Go to next message
No real name is currently offline No real nameFriend
Messages: 7
Registered: July 2009
Junior Member
hello,

is there any opportunity of adding several annotations dynamically in run
time,
so that the user is able to add and edit annotations for elements in the
property view (in the property tab "Annotations")?

Many thanks in advance!

Sven
Re: Adding and editing annotations dynamically [message #5700 is a reply to message #5656] Thu, 08 January 2009 00:10 Go to previous messageGo to next message
BPMNbeginner is currently offline BPMNbeginnerFriend
Messages: 7
Registered: July 2009
Junior Member
Hello Sven,

please have a look at EclipseCon2008
http://www.eclipse.org/newsportal/post.php?type=reply&id =81&group=eclipse.bpmn-modeler

Exactly this code may be interessting for you:

BPMNVisual2ProcessGenerator generator = new BPMNVisual2ProcessGenerator();
TextAnnotation textA = generator.addTextAnnotation(null, bug.getSummary());
Map<String, String> details = new HashMap<String, String>();
details.put("state", String.valueOf(bug.getState()));
details.put("number", String.valueOf(bug.getNumber()));
generator.addAnnotation(textA, BUG_ANNOTATION_SOURCE, details);

regards
/Sam
Re: Adding and editing annotations dynamically [message #487845 is a reply to message #5700] Thu, 24 September 2009 14:44 Go to previous messageGo to next message
Marcello  is currently offline Marcello Friend
Messages: 1
Registered: August 2009
Junior Member
Hi there,
Sam the link u gave is broken...
I am using the BPMN Modeler in a Eclipse Galileo
where I plugged the BPEL Modeler and the BPMN2BPEL plugin too.

I have a diagram where some elements has the annotations attribute fill with
some commands.
For example the pool element has:

KEY
BPEL: annotation

VALUE
namespace mns="http://www.uatx.mx/lang" @ "lang_defs.wsdl";
process SayHelloLang {client sayhelloPL = mns:SayHelloPT
(mns:SayHelloLang @ SayHelloPort); };
var input |mns:SayHelloRequestMessage|;
var output |mns:SayHelloResponseMessage|;


My question is how to add in annotations attributes? i do not find the way.
thanks in advance

Marcello

[Updated on: Thu, 24 September 2009 14:48]

Report message to a moderator

Re: Adding and editing annotations dynamically [message #499296 is a reply to message #487845] Fri, 20 November 2009 16:56 Go to previous message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

He meant that link:
http://wiki.eclipse.org/STP/BPMN_Component/EclipseCon2008


Marcello wrote:
> Hi there,
> Sam the link u gave is broken...
> I am using the BPMN Modeler in a Eclipse Galileo
> where I plugged the BPEL Modeler and the BPMN2BPEL plugin too.
>
> I have a diagram where some elements has the annotations attribute fill
> with some
> commands.
> For example the pool element has:
> Key Value
> BPEL: annotation namespace mns="http://www.uatx.mx/lang" @
> "lang_defs.wsdl";
> process SayHelloLang {
> client sayhelloPL = mns:SayHelloPT (mns:SayHelloLang @ SayHelloPort);
> };
> var input |mns:SayHelloRequestMessage|;
> var output |mns:SayHelloResponseMessage|;
>
>
>
Previous Topic:Problems when connecting two elements
Next Topic:Resizing swim lanes
Goto Forum:
  


Current Time: Tue Dec 23 04:24:56 GMT 2014

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

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