This page was last edited on January 11, 2017, at 15:22.
Comments or questions about this documentation? Contact us for support!
Orchestration Server (ORS) 8.0+ supports SCXML plus ECMAScript as a routing language for use in Composer when creating routing workflows. 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.
Note: When _genesys.queue.excludeAgents is used in a routing workflow before a Target block, the URS-provided list of excluded agents will be applied to the current or any future Target block. The effect of the_genesys.queue.excludeAgents execution can be cancelled only by the execution of another _genesys.queue.excludeAgents or if URS stops this interaction processing.
Starting with 8.1.4, Composer blocks used to build routing applications (with the exception of the Disconnect and EndParallel blocks) add a new ORS Extensions property.
Assume you expand Orchestration Server Functions in Expression Builder.
The Orchestration Server Functions category shows various Genesys-supplied Orchestration Extensions described in the Orchestration Server Developer's Guide, such as the genesys.queue.checkAgentState extension shown below. Also, the Universal Routing 8.1 Reference Manual describes many URS equivalent functions, which have similar names but are not necessarily equivalent. For example, the Functions chapter of that manual describes a CheckAgentState function. These functions are intended to be called in Interaction Routing Designer, which was historically used to create routing strategies prior to Composer.
Assume you double-click genesys.queue.checkAgentState. 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). When URS executes these extensions, it returns events back to the instance of logic running the SCXML document that requested the action.