Active Call Center does not provide direct support for user-defined global variables. However, since each Node variable is a global variable, a developer can "create" extra global variables by creating extra Nodes called "dummy Nodes."
"Dummy Nodes" are nodes that are never reached during the flow of a call - their sole purpose is to provide an extra Node variable that can be used to store information. Create dummy Nodes by defining unused Responses at any Action Node, then use the dummy Node variables at will throughout the Call Tree.
The following example shows how to add a dummy Node to the Call Tree from the Quick-Start Tutorial:
Open or create the Call Tree used in the Quick-Start Tutorial. The tree is provided in the Examples folder under the name "Answering Machine".
Make a copy of the Call Tree if needed following the instructions in Make a Copy of a Call Tree.
Click on the Check_Response Node.
When the Edit Node window appears, click on the Responses tab.
Click Add New
Under "Branch to Node", type GlobalVariable1 and under "When response matches" type Whatever1.
Click Add New again. This creates a new dummy Node called GlobalVariable1. The Node is a dummyNode because there are no responses that can be given that would ever cause a call to reach that Node, and because the macros in the Call Tree never route the call to that Node.
At this point, the Node variable GlobalVariable1 can be used anywhere else in the Call Tree to store information about the call. Even better, the GlobalVariable1 value will be saved to the Call History when the call ends.