[ATL] Adding elements to collections [message #82004] |
Thu, 22 May 2008 06:37 |
|
Hi,
I'm almost sure this is a well documented issue somewhere, but I just
can't find it :(
I'm trying to write this matched rule:
rule Activity2Step{
from
activity : BPMN!Activity
using{
container : BPMN!Graph = activity.refImmediateComposite();
}
to
step : IM!Step
do{
if (container.oclIsTypeOf(BPMN!SubProcess)){
container.graph.vertices <-
container.graph.vertices->including(activity);
}
}
}
Long story short, there's this already existent collection called
'vertices' which I access with container.graph.vertices, and I want to add
an element to it. I know using including per se won't help, since these
collection operations don't really modify the collection. So I tried what
you're seeing, assigning the result of the including operation to the same
collection, but I get:
SEVERE: cannot set feature bpmn!Pool.vertices to value
org.eclipse.emf.ecore.impl.DynamicEObjectImpl@cc05a6 (eClass:
org.eclipse.emf.ecore.impl.EClassImpl@14a3622 (name: Activity)
(instanceClassName: null) (abstract: false, interface: false))
If you could point me in the right direction, I'd be extremely thankful.
Cheers,
-Juan
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02082 seconds