Skip to main content



      Home
Home » Archived » BPMN Modeler » Adding and editing annotations dynamically
Adding and editing annotations dynamically [message #5656] Wed, 07 January 2009 10:27 Go to next message
Eclipse UserFriend
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] Wed, 07 January 2009 19:10 Go to previous messageGo to next message
Eclipse UserFriend
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 10:44 Go to previous messageGo to next message
Eclipse UserFriend
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 10:48] by Moderator

Re: Adding and editing annotations dynamically [message #499296 is a reply to message #487845] Fri, 20 November 2009 11: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: Fri Jul 04 11:04:18 EDT 2025

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

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

Back to the top