--- title: "维护设备状态更新" slug: "maintenance-equipment-status-update" updated: 2026-10-22T18:23:03Z published: 2026-10-22T18:23:03Z canonical: "support.tulip.co/maintenance-equipment-status-update" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # 维护设备状态更新 ## 应用场景 在生产区域,设备完成维护后,将被赋予**“运行中”**状态。当维护有效期届满时,设备将失去**“运行中”**状态。 自动化系统通过每小时对**“设备与资产”**表中列出的设备进行检查来辅助此过程。它会识别所有处于**“运行中”**状态且维护待机时间已过期的设备。若发现此类记录,其维护状态将自动更新为**“需要维护”**。 ### 自动化流程 ![Maintenance status update.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Maintenance%20status%20update.png) ## 配置自动化 ### 先决条件 此自动化流程利用Tulip表连接器功能,从表中提取需要修改的记录。连接器将与自动化流程同时安装在实例上。为确保连接器正常运行,必须配置以下设置: #### 设置身份验证 Feature rename Prior to r383, Service Accounts were called "API Tokens". 1. 在实例上创建一个具有读取 Tulip 表所需权限的服务账户。如果已经存在具有所需访问权限的服务账户,则可以跳过此步骤。 Using multiple workspace If you are using multiple workspaces, create the Service Account under the workspace settings during the setup process for the workspace where you want to use the automation. Otherwise, you will need to define the workspace in the connector function.![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28775%29.png) ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28771%29.png) 1. 在连接器中输入服务账户详细信息以进行身份验证。![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28772%29.png) ![Set authentication.gif](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Set%20authentication.gif) 如需了解有关连接器的更多信息,请参阅此链接:[如何创建连接器](https://support.tulip.co/docs/how-to-configure-a-connector)。 #### 设置服务器地址 除了连接器的身份验证外,还必须配置服务器地址。在连接器环境设置中,将实例 URL 粘贴到您希望使用自动化功能的该环境的“服务器地址”字段中。 ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28774%29.png) ## 修改自动化流程 在自动化流程中,您可以修改几乎所有内容以适应您的业务流程。 ### 若要针对其他表调整自动化 若要将自动化流程应用于其他表,您需要修改**“从设备与资产表获取记录**”函数中的表 ID,该**函数**位于**“Tulip 表操作连接器**”下。只需将表 ID 更新为与您希望从中检索列表的表对应的 ID 即可。 ![Screenshot 2024-12-17 at 15.24.21.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Screenshot%202024-12-17%20at%2015.24.21.png) 修改连接器函数后,您只需在自动化流程中更新表数据即可。在块配置中,找到“表字段”下的相应表。 ### 更改“运行状态持续时间” ![Screenshot 2024-12-17 at 15.25.24.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Screenshot%202024-12-17%20at%2015.25.24.png) 评估条件位于决策块中。该表达式的结构是将已加载记录中**“上次维护**”字段的值,加到允许的最大运行状态持续时间上——本例中该值为30天。 **要调整持续时间:**请将表达式中指定“允许的最大运行状态持续时间”的部分更新为您所需的值。 随后,自动化流程将检查该计算值是否小于或等于评估时的当前日期和时间。