action-center
2023.10
false
- 发行说明
- 在开始之前
- 入门指南
- 活动
- 操作
- 在 UiPath Assistant 中查看操作
- 搜索操作
- 操作应用程序
- 配置任务计时器
- UiPath Assistant 中的操作
- Embedding actions
- 流程
- 通知
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
Action Center
PREVIEW创建操作定义
要将操作输入字段绑定到 Apps 字段,您需要操作定义。
在将操作定义添加到 Action Center 之前,必须为其创建 JSON 架构。 该文件应遵循 JSON 架构标准。 您还可以下载示例架构,编辑和上传其修改版本。
- 首先添加左大括号以指明 JSON 对象的开头。
- 在 JSON 对象中,将
Name
和Description
属性及其值定义为字符串。{ "Name": "Sample Definition", "Description": "Sample Definition Description"
{ "Name": "Sample Definition", "Description": "Sample Definition Description" - 添加
Allowed Actions
属性作为字符串数组,以指定您可以在操作末尾执行的允许操作。 这些值应等于 “批准”或 “拒绝”。"AllowedActions": [ "Start On-boarding", "Request more details" ],
"AllowedActions": [ "Start On-boarding", "Request more details" ], - 添加
Schema
属性,并为其分配一个符合 JSON 架构标准的对象:http://json-schema.org/draft-07/schema#
。"Schema": { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object",
"Schema": { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", - 在“
properties
”对象中,定义要包含在架构中的每个属性。 为每个属性指定其type
和description
。Schema
中的每个属性都等效于您将在“应用程序”操作中添加的输入字段。"properties": { "employee_id": { "type": "string", "description": "The unique identifier of the employee." }, "first_name": { "type": "string", "description": "The first name of the employee." }, "last_name": { "type": "string", "description": "The last name of the employee." }, "email": { "type": "string", "format": "email", "description": "The email address of the employee." }, "address": { "type": "object", "properties": { "street": { "type": "string", "description": "The street address of the employee." }, "city": { "type": "string", "description": "The city where the employee resides." }, "state": { "type": "string", "description": "The state where the employee resides." }, "zip_code": { "type": "string", "description": "The zip code of the employee's address." }, "country": { "type": "string", "description": "The country where the employee resides." } }, "required": [ "street", "city", "state", "zip_code", "country" ], "description": "The address of the employee." }, "hire_date": { "type": "string", "format": "date", "description": "The date the employee was hired in the format YYYY-MM-DD." }, "salary": { "type": "number", "minimum": 0, "description": "The salary of the employee." } }
"properties": { "employee_id": { "type": "string", "description": "The unique identifier of the employee." }, "first_name": { "type": "string", "description": "The first name of the employee." }, "last_name": { "type": "string", "description": "The last name of the employee." }, "email": { "type": "string", "format": "email", "description": "The email address of the employee." }, "address": { "type": "object", "properties": { "street": { "type": "string", "description": "The street address of the employee." }, "city": { "type": "string", "description": "The city where the employee resides." }, "state": { "type": "string", "description": "The state where the employee resides." }, "zip_code": { "type": "string", "description": "The zip code of the employee's address." }, "country": { "type": "string", "description": "The country where the employee resides." } }, "required": [ "street", "city", "state", "zip_code", "country" ], "description": "The address of the employee." }, "hire_date": { "type": "string", "format": "date", "description": "The date the employee was hired in the format YYYY-MM-DD." }, "salary": { "type": "number", "minimum": 0, "description": "The salary of the employee." } }如果您有嵌套对象,例如address
,请根据此示例在properties
对象中以类似方式定义它们,并指定它们的类型和属性。 - 如果某些属性是必需的,请包括一个
required
数组,您可以在其中列出要在操作中标记为必需的属性。"required": [ "employee_id", "first_name", "last_name", "email", "address", "salary", "hire_date" ]
"required": [ "employee_id", "first_name", "last_name", "email", "address", "salary", "hire_date" ] - 通过添加右大括号将 JSON 对象括起。