Skip to main content


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 12:56 Go to next message
faroun is currently offline farounFriend
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 14:16 Go to previous messageGo to next message
Eclipse UserFriend
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 14:50 Go to previous message
faroun is currently offline farounFriend
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: Fri Apr 26 02:47:45 GMT 2024

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

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

Back to the top