public enum ScriptExecutionMode| Active | 0 |
Script instance is currently active and can perform any actions on MyCall This is the initial value when Start is called by the host. |
| Passive | 1 |
Script instance is still associated with MyCall, all subscriptions to the events are active. Script still observes MyCall and can read call data. Script should avoid any actions which may affect functionality of the active (usualy child) call flow. Script may be returned to Active state if child call flow will This execution mode is triggered when script instance is running a new child call flow using {0} Overload |
| Wrapup | 2 |
Script instance is detached from MyCall. All subscriptions to the events are removed. MyCall must not be used. Exception is Return(Boolean) which can be (should be called) under some conditions script instance should terminate and wrapup own internal tasks without usage of MyCall object. script instance can call Return(Boolean) if script iinstance is switched to this mode when: 1. if it is Active and calls Return(Boolean) or SwitchTo(String) 2. Call was disconnected from the RoutePoint which initiated execution of the call flow script. In this case, Return(Boolean) can be used to assure that parent call flow also properly wrapup own tasks. |