This page was last edited on August 13, 2013, at 00:49.
Comments or questions about this documentation? Contact us for support!
Orchestration Server (ORS) 8.0+ supports SCXML plus ECMAScript as a routing language. While the core SCXML provides State Chart functionality, you can specify ORS-specific instructions, such as conditions that can be used for routing decisions, in the form of ECMAScript. The Script property brings up Composer's Expression Builder for creating those conditions in the form of expressions. Use the ECMAScript block to build an ECMAScript expression. Notes:
The ECMA Script block has the following properties:
Find this property's details under Common Properties.
Find this property's details under Common Properties.
Find this property's details under Common Properties.
You can use custom events to define the ECMAScript exception event handling.
Find this property's details under Common Properties.
Find this property's details under Common Properties.
Find this property's details under Common Properties.
Find this property's details under Common Properties.
To create an ECMAScript expression in Expression Builder:
Expression Builder gives access to various categories of data, which can be used in expressions. To create an expression, follow the instructions in the Creating Expressions topic.
Assume you expand Orchestration Server Functions in step 2 above. The lower Expression Builder Data area appears as shown below.
Orchestration Server Functions shows different categories of Genesys-supplied Functional Modules. For more information, see the Orchestration Server information on the Genesys Documentation Wiki. For example, assume you double-click genesys.queue.checkAgentState(check). Expression Builder now appears as shown below.
In this case, the genesys.queue module implements the target selection functionality of URS (finding resources for interactions and delivering interactions to the resource). The Interaction Routing Designer Function object precursor (not necessarily equivalent) is described in the Universal Routing 8.1 Reference Manual, CheckAgentState function. When URS executes Functional Modules, it returns events back to the instance of logic running the SCXML document that requested the action.