rule with multiple objects for one target pattern [message #1062096] |
Wed, 05 June 2013 19:26  |
Eclipse User |
|
|
|
Hi,
I'm curious if there is a way to create multiple objects for the same target pattern. Given the example:
rule someRule {
from s : someType
to t : someType (
attr <- Sequence(objs)
),
objs : anotherType (
name <- 'someName'
...
)
}
This provides me only one attr instance, whereas i would like to generate x "attr" instances. In fact, a Sequence of objects with type of "anotherType" already exists. The other requirement is, that it is possible to declare the attributes I want to assign in the "objs"-target pattern. I really can't think of a way how to achieve this for multiplicity and therefore could use some help.
If this dummy rule is too confusing I could come up with a more concrete example.
Thanks.
Stefan
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05327 seconds