Section II – Functional Modules > Functional Modules > Functions         Bottom of Page
Genesys 8.1
SCXML Technical Reference
< Object Model            Parameter Elements >

Functions

This defines the set of ECMAScript functions that can be used on the object model for this functional module interface. These functions can be used from ECMAScript expressions and within the <script> element or any other SCXML executable content section. The criteria for using a function versus an action element are:

Genesys strongly discourages the exposure of functionality or actions via ECMAScript functions. Action elements are preferred over functions because they allow our schema to define what actions are valid, what parameters they must pass, and so on. Therefore action elements are less error-prone and more in line with the SCXML specification.

Functions can be used for the following types of actions:

All functions will be function properties of the appropriate functional module object. For example, _genesys.queue.reserveTargets().

Restrictions

The following is the list of restrictions with respect to functional module functions:

Naming Conventions

The following is the naming convention that we will use for all ECMAScript functions which can be used within the session:

For example, _genesys.session.ActiveServerName()

Genesys Functional Modules

The following is a summary of all the functional module root objects that will be supported by Genesys functional modules:

Functional module

Function root

Functions implemented

queue

_genesys.queue

Queue Functions

interaction

_genesys.ixn

Interaction Functions, Voice Interaction Functions, Msgbased Interaction Functions, Chat Interaction Functions

dialog

_genesys.dialog

Dialog (Treatment) Functions

resource

_genesys.resource

Resource Functions

statistic

_genesys.statistic

Statistic Functions

classification

_genesys.classification

Classification Functions

session

_genesys.session

SCXML Extension Functions

webapi

_genesys.ws

Web API Functions

Functions Used to Change Functional Module Objects

A function module has three ways it can change the value of a given functional module object or property. One of these ways is through a function. The following is the model that should be used for providing this functionality:




Section II – Functional Modules > Functional Modules > Functions         Top of Page
Genesys 8.1
SCXML Technical Reference
< Object Model            Parameter Elements >