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
Managed Threat Detection
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

Condition Judgment (Expired and Not Recommended)

Updated on 2025-01-23 GMT+08:00

Diagram Element

Parameter Description

The following figures show parameters of the Condition Judgment diagram element.

Figure 1 Condition Judgment
Figure 2 Branch

The parameters are described as follows:

  • Module: diagram element name, which can be customized as required. The name is not displayed on the diagram element.
  • Condition Editing: In this area, you can configure different judgment conditions, based on which different branches can be implemented in a flow.

    If you click Simple Expression, the following parameters need to be set:

    • Parameter 1: Click the text box. In the displayed Select Variables dialog box, select a global variable, flow variable, or system variable as required.
    • Relational Operator: relational operator, which is used to define the relationship between parameter 1 and parameter 2.
    • Parameter 2: Enter a variable or constant. If parameter 2 is a string constant, enclose it with double quotation marks, for example, "0123456789".
    • Logical Operator: The options are And and Or. The priorities of different operators are the same, and conditions are judged one at a time from top to bottom.

      By selecting a logical operator, you can add multiple condition expressions in the same condition. If you select And, multiple condition expressions must be met at the same time. If you select Or, only one of the condition expressions must be met.

    • You can click Delete to delete a condition expression.

    If you click Complex Expression, a complex condition expression must be entered in the text box. The expression can contain the parameter name, value, and complex operation. After a series of operations, the complex expression returns a value of the Boolean type, for example, true or false.

    • The formats of flow variables, system variables, and global variables are as follows: FLOW.Parameter name, SYS.Parameter name, and GLOBAL.Parameter name.
    • The priorities of operators used in complex expressions are as follows: parentheses > arithmetic operators > relational operators > logical operators. Operators at the same level (except arithmetic operators) have the same priority. The operators of other levels have the same priority. The symbols of each type are as follows:

      Parentheses: ()

      Arithmetic operator: *, /, %, +, – (The priorities of the asterisk, slash, and percent sign are higher than those of the plus sign and minus sign.)

      Relational operators: >, >=, <, <=, ==, !=

      Logical operators: &&, ||

      In addition to basic logical expressions, functions based on the mvel2 expression are also supported. For example, the flow variable FLOW.testvalue is set to abc, and the contains function is used to determine whether the d character is contained. If the determination result is false, the branch is not executed.

      Similarly, simple functions may be used as follows:

      FLOW.testvalue.substring(0,1)=='d' checks whether the first character is d.

      FLOW.testvalue.endsWith(classification) checks whether the value ends with c.

      If other functions are required, develop them under the guidance of Huawei engineers.

  • You can click New Condition to add multiple conditions, which can map different branches.

    A maximum of 20 conditional branches are allowed.

  • Click to delete a condition.
  • Click Save to save all parameters set on the current page.
  • branch: Click the connection line between a condition judgment diagram element and a branch diagram element, and select the condition to enter the branch from the drop-down list. If no condition is selected, the branch is used as a default branch, which is executed when none of the conditions are met.

Typical Application Scenario

The system enters a branch in a flow based on the input condition. For example, the system can enter different branches based on the flow execution result (success or failure).

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback