studio-web
latest
false
- 发行说明
- 入门指南
- 面向 Administrator
- RPA 工作流项目
- 应用程序项目
- 智能体流程
- 智能体
- 解决方案
- API 工作流 - 预览
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。

Studio Web 用户指南
上次更新日期 2025年10月31日
“If 条件”活动允许 API 工作流中的条件分支,以根据数据驱动的条件创建动态执行路径。对于需要执行不同操作(具体取决于实时 API 响应、用户输入或系统状态)的工作流,请使用“If 条件”活动。
要将“If 条件”活动添加到工作流中,请执行以下操作:
               
               
               - 在 API 工作流设计器画布上,选择加号 (+) 图标。系统将显示“添加活动”菜单。
- 选择“IF 条件”。
- 在属性面板中,向条件字段写入表达式。
- 根据需要向Then和Else分支添加活动。
- Debug the workflow to execute the activity and generate output fields for later use.
以下示例可确保事务同步工作流仅处理在过去 24 小时内至少进行了一项事务的活跃客户。如果不满足条件,工作流将退出并显示失败响应。
               
               
               打开“调试配置”窗口,然后粘贴并保存以下 JSON 语法:
{
  "id": 12345,
  "name": "John Doe",
  "isActive": true,
  "balance": 2500.75,
  "createdAt": "2025-03-25T12:00:00Z",
  "tags": [
    "premium",
    "verified",
    "active"
  ],
  "address": {
    "street": "123 Main St",
    "city": "New York",
    "state": "NY",
    "zipCode": "10001",
    "coordinates": {
      "latitude": 40.7128,
      "longitude": -74.006
    }
  },
  "transactions": [
    {
      "transactionId": "txn_001",
      "amount": 150.5,
      "currency": "USD",
      "timestamp": "2025-03-25T10:30:00Z"
    },
    {
      "transactionId": "txn_002",
      "amount": -75.25,
      "currency": "USD",
      "timestamp": "2025-03-23T08:15:00Z"
    }
  ]
}{
  "id": 12345,
  "name": "John Doe",
  "isActive": true,
  "balance": 2500.75,
  "createdAt": "2025-03-25T12:00:00Z",
  "tags": [
    "premium",
    "verified",
    "active"
  ],
  "address": {
    "street": "123 Main St",
    "city": "New York",
    "state": "NY",
    "zipCode": "10001",
    "coordinates": {
      "latitude": 40.7128,
      "longitude": -74.006
    }
  },
  "transactions": [
    {
      "transactionId": "txn_001",
      "amount": 150.5,
      "currency": "USD",
      "timestamp": "2025-03-25T10:30:00Z"
    },
    {
      "transactionId": "txn_002",
      "amount": -75.25,
      "currency": "USD",
      "timestamp": "2025-03-23T08:15:00Z"
    }
  ]
}