Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BPMN Modeler » add property to an activity
add property to an activity [message #4644] Wed, 10 December 2008 07:56 Go to next message
faroun is currently offline faroun
Messages: 41
Registered: July 2009
Member
Hi everybody ,

I want to add some property to an activity at the creation time.

for example :

Activity act = addActivity(_virtualPool, OBJ
.getAttributeValue("LIBELE"),
Integer.parseInt(prop.getProperty(OBJ.getAttributeValue("TYPE "))),
0,
0,
125,
75);

i need to add some property (key,value) to the act objet here.

How can i do that?

Thanx in advance.
Re: add property to an activity [message #4714 is a reply to message #4644] Wed, 10 December 2008 09:16 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

You can add an annotation with EcoreUtil.setAnnotation(act,
annotation_source, annotation_key, annotation_value);

That should work well for your case.

Thanks,

Antoine
Re: add property to an activity [message #4783 is a reply to message #4714] Wed, 10 December 2008 09:50 Go to previous message
faroun is currently offline faroun
Messages: 41
Registered: July 2009
Member
thanx a lot antoine.
Best Regards.
Previous Topic:why remove sequence flow's attribute:source
Next Topic:Task with an Intermediate Event attached to its boundary
Goto Forum:
  


Current Time: Wed Apr 16 09:35:25 EDT 2014

Powered by FUDForum. Page generated in 0.15719 seconds