WORKFLOWDATA

此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。

依赖关系

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

支持的脚本类型

其中一条分支线通向其他三个正方形的正方形。

Icon of gray-green envelope

深绿色对话气泡图标

Icon of purple telephone handset

Icon of rust-colored voicemail symbol of two circles joined by a line

Icon of pink document with lines of text

绿色手机图标,屏幕上有一个语音气泡

Icon of purple computer monitor with a mobile device overlapping its lower right corner

通用

Email 聊天 电话 語音邮件 工作项目 短信 Digital

输入属性

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

属性

说明

添加说明文字

输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。

配置文件名称 A drop-down list of active workflow data profile names that an administrate created through the platform or from an API. The name is restricted to the same naming patterns as variables that can be created in Studio and will be validated by the API and Admin interfaces. No profiles can be created in Studio, but the data stored under the profile can be accessed through this action.

结果分支条件

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

条件

说明

默认

Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined.

Error

Path taken when the action fails to execute properly. For example, when there is an unexpected problem such as poor connectivity, syntax errors, and so on. The _ERR variable, with a single underscore character, should be populated with a condensed explanation of the problem.

脚本示例

这是一个示例,说明如何在脚本中使用此操作。 它并不是一个完整的脚本。 可能还需要编写其他脚本。

在以下示例中,您可以看到 WorkflowData 是脚本中的第二个操作,名为 Emergency WF Data。

Example script using the WORKFLOWDATA action

下载此脚本。