| add property to an activity [message #4644] |
Wed, 10 December 2008 07:56  |
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   |
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03911 seconds