How to use the collection() method? [message #1842260] |
Mon, 14 June 2021 18:41 |
Thomas Chiang Messages: 100 Registered: March 2020 |
Senior Member |
|
|
I am trying to create an ETL script and I would like to create simple names for my target generated classes. So I am trying to write the command in the rule like this:
rule m2m
transform s: Excel!Module
to c: EMF!System_Level_Impact{
c.name = "Sys_Lvl_Impact" + collection(EMF::System_Level_Impact).size();
}
How should I be writing the command to get the collection like I want?
Edit: Is there potentially a way to set a counter in my transformation rule to iterate and count how many times my rule is activated during the transformation?
[Updated on: Mon, 14 June 2021 20:31] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02577 seconds