An Example Web-Enabled Script Template
The hello.aef sample script template uses a static web page that prompts the user for a name and a dynamic web page that provides a template with an embedded keyword that is substituted dynamically by the script when it runs.
Figure shows the hello.aef script template as it appears in the Design pane of the Cisco Unified CCX Editor window.

The hello.aef script prompts the user for a name, and the application server responds with a “Hello” to the name given.
When the user opens the welcome.html web page, types a name, and clicks Submit, the following code in welcome.html sends the HTTP request “greeting” to the Cisco Unified CCX Engine:
This trigger (/greeting) runs the hello.aef script, which performs the following actions:
-
A Create File Document step references the response template document.
-
A Get Http Contact Info step reads the parameter “name” included with the HTTP request.
-
A Get Http Contact Info step updates the local variable mapped to the “name” parameter.
-
A Keyword Transform Document step replaces the keyword %name% in the template file (sayhello.html), and then writes the result to the local variable, doc.
-
A Send Http Response step sends the document in the doc variable to the user’s browser.
After the Cisco Unified CCX server sends the document, the phrase “Hello yourname” appears in the browser window of the user.
This example web-enabled script provides a starting point from which you can develop the kind of application scripts you need.