From Bright Pattern Documentation
< 5.19:Scenario-builder-reference-guide | ScenarioBlocks(Redirected from 5.19:Scenario-builder-reference-guide/StartAnotherScenario)
Start Another Scenario
The Start Another Scenario block starts the specified scenario from within the given (parent) scenario.
Variables defined in the parent scenario are inherited by the "child" scenario, and if control returns to the parent, variables defined by the child are passed back to the parent. Whether control of the scenario returns to the parent depends on how the child scenario completes execution:
- If the child scenario reaches a Return block (or reaches its last block without executing an Exit block), control returns to the parent scenario and execution resumes at the block immediately following the Start Another Scenario block.
- If the child scenario reaches an Exit block, or terminates because of an error or disconnect, control does not return to the parent, and scenario execution ends.
Configure the block
- Select the desired child scenario in the drop-down list.
- Start typing the desired child scenario name in the search box to show a list of matching scenarios.
The label of the block in the flowchart will display Start Another Scenario “[scenario name]”. In the scenario shown, you can see that the Start Another Scenario block is used if the Connect Call block reaches the Target Disconnected conditional exit.