ScriptExecutionMode Enumeration

Sctipt instance execution modes.
Depending on the current execution mode, script instance may be restricted to use or should avoid some manipulations with MyCall.

Definition

Namespace: CallFlow
Assembly: 3CX.CallFlow (in 3CX.CallFlow.dll) Version: 20.0.1
C#
public enum ScriptExecutionMode

Members

Active0 Script instance is currently active and can perform any actions on MyCall
This is the initial value when Start is called by the host.
Passive1 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
Wrapup2 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.

See Also