First time here? Check out the FAQ!
x

How can I encapsulate replicated STGCs?

+1 vote
78 views
I tried different approaches doing this (script, parameterTransformer, naming using suffix:, etc.) but I can't get it to work. Somehow the replicator expands before evaluating the replicated Sounds so Kyma always asks me for GeneratedEvent_01, GeneratedEvent_02 and so on...

I want to end up with an encapsulated class with 2 parameters: Number (for the number of replications) and GeneratedEvent (this will be the name of the hotValue with the suffixed VoiceNumber). How can I accomplish this?

Thanks!
asked Sep 28, 2015 in Using Kyma by kymaguy (Virtuoso) (10,550 points)

1 Answer

+2 votes
 
Best answer

Here is an example of a new class that makes a bunch of random STGs.

answered Oct 2, 2015 by ssc (Savant) (96,240 points)
selected Oct 5, 2015 by kymaguy
Thanks SSC, just modified it to fit my needs and it works like a charme! I didn't think of the possibility to replicate using a script, I only tried to use a script along with the replicator.
...