Linking sub-scenarios with other blocks
You can share sub-scenario instance IDs with other blocks. For example, the Wait block supports multiple concurrent timers. You could assign an ID to each timer and then use that same ID to create a sub-scenario. You could do this multiple times. When a timer fires, you can use the ID it reports to retrieve the associated sub-scenario and perform some operation on it, such as deleting it. For example:
When time up from Wait (timer)
Then instance id from MyScenarioBlock = timer id from Wait (timer)
Then retrieve [MyScenarioBlock]
Then continue
When instance status from MyScenarioBlock (output) is equal to "RUNNING"
Then move to state[next]
Copyright © 2013
Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.