หน้านี้ยังไม่พร้อมใช้งานในภาษาท้องถิ่นของคุณ เรากำลังพยายามอย่างหนักเพื่อเพิ่มเวอร์ชันภาษาอื่น ๆ เพิ่มเติม ขอบคุณสำหรับการสนับสนุนเสมอมา

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Referencing Variables

Updated on 2023-12-28 GMT+08:00

Orchestrating a composite application flow and configuring connectors and processors involve various inputs, outputs, and configurations, which can be referenced as variables when you edit and design a composite application to create efficiency.

Variables of composite applications are classified as system, node, and custom variables. Variables with the same name are prioritized as follows: system variable > node variable > custom variable.

System Variables

System variables indicate system parameters or specific outputs of some connectors. Table 1 lists the system variables for composite applications.

System variable reference mode: ${Variable name}
Table 1 System variables

Variable

Description

step_execution_time

Execution duration of the previous node, in milliseconds.

response_code

Response code of the previous HTTP request node.

selected_row_count

Number of data records queried in the previous database node.

Only MySQL, Gauss 200, PostgreSQL, Oracle, SQL Server, and Db2 databases are supported.

updated_row_count

Number of data records that are inserted, updated, and deleted in the previous database node.

Only MySQL, Gauss 200, PostgreSQL, Oracle, SQL Server, and Db2 databases are supported.

loop_index

Previous loop node; index of the current loop; the value starts from 0.

loop_size

Total number of loops in the previous loop node.

split_index

Previous splitter node; index of the current data block during data splitting; the value starts from 0.

split_size

Number of data splits on the previous splitter node.

split_complete

Whether data splitting is complete in the previous splitter node.

Node Variables

The execution result of the previous node can be used as a node variable and referenced by subsequent nodes, such as the request body of an OpenAPI, database query result, and HTTP request result.

Node variable reference mode: ${payload}

If the execution result is an object, such as a JSON or XML object, use ${payload.id} or ${payload[0].id} to reference certain data in the execution result.

Example:

If the response body received by an HTTP request node is in JSON format as follows, use ${payload} to reference the JSON data, ${payload.id} to reference the value 00000000, and ${payload.data[0].value} to reference the value x.

{
    "id":"00000000",
    "name":"sample01",
    "data":[
        {
            "id":1,
            "value":"x"
        },
        {
            "id":2,
            "value":"y"
        },
        {
            "id":3,
            "value":"z"
        }
    ]
}

Custom Variables

Custom variables can be referenced in subsequent nodes, and include the following items: variables added when configuring variables, request parameters added in the OpenAPI and the variable assignment nodes, and output variables configured in the script node.

Custom variable reference mode: ${variable name/parameter name}

  • Adding variables on the canvas page
    1. Log in to the new ROMA Connect console.
    2. In the navigation pane on the left, choose Composite Applications. On the page displayed, click the target composite application.
    3. Click on the composite application and choose Modify to enter the canvas page.
    4. Click Variable on the top of the page.
    5. In the pop-up box displayed, click Add.
      Table 2 Configure variables

      Parameter

      Description

      Variable

      Enter a variable name to be referenced.

      Type

      Data type of the variable: string, integer, long integer, decimal, boolean, and password.

      Value

      Enter the value of the variable.

      Scope

      Select the effective scope of the variable: global (all composite applications); current composite application.

      Description

      Enter a description of the variable.

    6. Click Save.
  • Adding request parameters in the OpenAPI node

    For details, see OpenAPI.

  • Adding variables in the variable assignment node

    For details, see Variable Assignment.

  • Configuring output variables in the script processing node

    For details, see Script.

เราใช้คุกกี้เพื่อปรับปรุงไซต์และประสบการณ์การใช้ของคุณ การเรียกดูเว็บไซต์ของเราต่อแสดงว่าคุณยอมรับนโยบายคุกกี้ของเรา เรียนรู้เพิ่มเติม

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback