52.9.2 If–Else Constructs
First add a "Network Connect" activity, and then an "FTP Download" activity with the Abort property set to On Event and "Handover from UTRAN" selected as event type:
Then add an "If–Else" activity below the FTP download:
For the left-hand branch ("ifElseBranchActivity1
"), set Condition Type to Activity Result, and set the associated attributes as follows: Activity = the name of the FTP download activity, by default "ftpDownloadActivity1
", Operator = Equals, Result = Stopped by Event. See next screenshot.
For the right-hand branch ("ifElseBranchActivity2
"), set Condition Type to Any. This always evaluates to true, so that the right-hand branch will be executed whenever the condition in the left-hand branch is false. (Not shown in the screenshot below.)
Add a voice dial activity on the left (to the node "sequenceActivity1
") and a streaming activity on the right (to the node "sequenceActivity2
"), as described in the introduction of this subsection. This is done just as in sections "Basics of Creating Scripts (with Voice)" and "Setting Up a Data Service Activity" and is not detailed here.