WorkflowData

提供对通过 CXone 平台 或通过 API 创建的工作流数据配置文件的访问。工作流数据配置文件是一组命名的预定义键/值数据对。此操作提供了一个属性,允许您从可用的配置文件列表中进行选择。

当在脚本中运行该操作之后,即可将工作流数据作为动态数据对象来输出,该变量与您所选配置文件具有相同的名称。

Dependencies

  • 如果以后要在同一脚本中引用动态数据对象,运行此操作的脚本必须声明数据将返回的动态数据对象。在用代码 Assign 完成 WorkflowData 操作后,示例脚本显示 {Emergency.raiseAlarm} 操作。除非将 Dynamic Emergency 声明添加到脚本中的某个代码片段中(在示例脚本中,它是左上角的代码片段),否则主脚本将无法编译。WorkflowData 操作将填充声明的 Emergency 变量,因为已经将 Emergency 选为配置文件的名称。声明和配置文件的名称必须匹配。
  • 输入一个无效的名称而不使用下拉菜单,或者通过管理界面或 API 来停用一个配置文件,都将导致系统采用错误分支。如同默认分支一样,您也应为错误分支编写脚本。

Supported Script Types

The icon for a Generic script type - a rectangle with < and > symbols inside it.

The icon for the Email script type - a large @ symbol in a diamond.

The icon for the Chat script type - a chat bubble with an ellipsis inside (...), in a diamond shape.

The icon for the Phone script type - an old-style phone handset with curved lines indicating sound coming out of it.

The icon for the Voicemail script type - a symbol that looks like a cassette tape - two circles sitting on a horizontal line.

The icon for the Work Item script type-a piece of paper with one corner folded down and a bullet list on it.

The icon for the SMS script type - a smart phone with a chat bubble coming out of it.

The icon for the Digital script type - a computer monitor with a smartphone next to it.

通用

电子邮件 聊天 电话 语音信箱 工作项目 短信 数字

Input Properties

这些属性定义操作在执行时使用的数据。

属性

说明

Caption

输入在脚本中唯一标识此操作的短语。标题显示在脚本画布上的操作图标下方。The default is the action name.

ProfileName 管理人员通过平台或 API 创建的活动工作流数据配置文件名称的下拉列表。名称受到一定限制,其命名方式与可以在 Studio 中创建并被 API 和 Admin 界面验证的变量相同。不能在 Studio 中创建配置文件,但可以通过此操作访问配置文件下存储的数据。

Output Properties

这些属性包含保存执行操作返回的数据的变量。它们在操作完成后供引用和使用。

属性

说明

DynamicData

此变量与操作下拉列表中选择的配置文件名称相对应。

_Err 采用错误分支时的变量输出。

Result Branch Conditions

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

Default

除了脚本满足条件要求其接受其他分支的情况之外,所要采用的路径。如果未定义操作的其他分支,也会执行此操作。

OnError

操作无法正确执行时所采用的路径。例如,出现连接不良、语法错误等意外问题时。_ERR 变量以单个下划线字符填充,应包含对问题的简要解释。

Script Example

此示例并非完整的脚本。要使用此操作,需要额外的脚本编写工作。

In the following example, you can see that WorkflowData is the second action in the script, entitled Emergency WF Data.

Would you like to download this script?