Selfuel Docs
  • Welcome to Selfuel Platform
    • Features
    • Capabilities
    • Target Audience
    • $150 Free Trial
  • Registration and Login
  • Platform UI
  • Stream Processing with Cortex
    • Cortex Quickstart Guide
    • Cortex Elements
      • Streams
      • Attributes
      • Mappings
        • 🚧Source Mapping Types
        • 🚧Sink Mapping Types
      • Node and Application Healthchecks
      • Nodes
        • Node Preview
        • Node Connectivites
        • Node Units
      • Expression Builder
        • 🚧Built-in Functions
      • Windows
        • Cron Window
        • Delay Window
        • Unique Event Window
        • First Event Window
        • Sliding Event Count Window
        • Tumbling Event Count Window
        • Session Window
        • Tumbling Event Sort Window
        • Sliding Time Window
        • Tumbling Time Window
        • Sliding Time and Event Count Window
      • Store and Cache
        • RDBMS
        • MongoDB
        • Redis
        • Elasticsearch
    • Applications
      • Applications Page
      • Creating Applications using Canvas
      • Connector Nodes Cluster
        • Source Nodes
          • CDC Source
          • Email Source
          • HTTP Source
          • HTTP Call Response Source
          • HTTP Service Source
          • Kafka Source
          • RabbitMQ Source
          • gRPC Source
          • JMS Source
          • Kafka Multi DC Source
          • JMS Source
          • AWS S3 Source
          • Google Pub-sub Source
          • AWS SQS Source
          • MQTT Source
          • Google Cloud Storage Source
          • HTTP SSE Source
          • WebSubHub Source
        • Sink Nodes
          • Email Sink
          • HTTP Sink
          • HTTP Service Response Sink
          • HTTP Call Sink
          • Kafka Sink
          • RabbitMQ Sink
          • gRPC Sink
          • JMS Sink
          • Kafka Multi DC Sink
          • AWS S3 Sink
          • Google Pub-sub Sink
          • AWS SQS Sink
          • MQTT Sink
          • Google Cloud Storage Sink
          • HTTP SSE Sink
          • WebSubHub Sink
      • Processing Nodes Cluster
        • Query
        • Join
        • Pattern
        • Sequence
        • Processor
        • 🚧On-demand Query
      • Buffer Nodes Cluster
        • Stream
        • Table
        • Window
        • Aggregation
        • Trigger
    • Run Applications
      • Run Applications Using Runners
      • Update Running Applications
      • Application Versioning
  • Data Integration with Nexus
    • Nexus Quickstart Guide
    • Nexus Elements
      • Concept
        • Config
        • Schema Feature
        • Speed Control
      • Connectors
        • Source
          • Source Connector Features
          • Source Common Options
          • AmazonDynamoDB
          • AmazonSqs
          • Cassandra
          • Clickhouse
          • CosFile
          • DB2
          • Doris
          • Easysearch
          • Elasticsearch
          • FakeSource
          • FtpFile
          • Github
          • Gitlab
          • GoogleSheets
          • Greenplum
          • Hbase
          • HdfsFile
          • Hive
          • HiveJdbc
          • Http
          • Apache Iceberg
          • InfluxDB
          • IoTDB
          • JDBC
          • Jira
          • Kingbase
          • Klaviyo
          • Kudu
          • Lemlist
          • Maxcompute
          • Milvus
          • MongoDB CDC
          • MongoDB
          • My Hours
          • MySQL CDC
          • MySQL
          • Neo4j
          • Notion
          • ObsFile
          • OceanBase
          • OneSignal
          • OpenMldb
          • Oracle CDC
          • Oracle
          • OssFile
          • OssJindoFile
          • Paimon
          • Persistiq
          • Phoenix
          • PostgreSQL CDC
          • PostgreSQL
          • Apache Pulsar
          • Rabbitmq
          • Redis
          • Redshift
          • RocketMQ
          • S3File
          • SftpFile
          • Sls
          • Snowflake
          • Socket
          • SQL Server CDC
          • SQL Server
          • StarRocks
          • TDengine
          • Vertica
          • Web3j
          • Kafka
        • Sink
          • Sink Connector Features
          • Sink Common Options
          • Activemq
          • AmazonDynamoDB
          • AmazonSqs
          • Assert
          • Cassandra
          • Clickhouse
          • ClickhouseFile
          • CosFile
          • DB2
          • DataHub
          • DingTalk
          • Doris
          • Druid
          • INFINI Easysearch
          • Elasticsearch
          • Email
          • Enterprise WeChat
          • Feishu
          • FtpFile
          • GoogleFirestore
          • Greenplum
          • Hbase
          • HdfsFile
          • Hive
          • Http
          • Hudi
          • Apache Iceberg
          • InfluxDB
          • IoTDB
          • JDBC
          • Kafka
          • Kingbase
          • Kudu
          • Maxcompute
          • Milvus
          • MongoDB
          • MySQL
          • Neo4j
          • ObsFile
          • OceanBase
          • Oracle
          • OssFile
          • OssJindoFile
          • Paimon
          • Phoenix
          • PostgreSql
          • Pulsar
          • Rabbitmq
          • Redis
          • Redshift
          • RocketMQ
          • S3Redshift
          • S3File
          • SelectDB Cloud
          • Sentry
          • SftpFile
          • Slack
          • Snowflake
          • Socket
          • SQL Server
          • StarRocks
          • TDengine
          • Tablestore
          • Vertica
        • Formats
          • Avro format
          • Canal Format
          • CDC Compatible Debezium-json
          • Debezium Format
          • Kafka source compatible kafka-connect-json
          • MaxWell Format
          • Ogg Format
        • Error Quick Reference Manual
      • Transform
        • Transform Common Options
        • Copy
        • FieldMapper
        • FilterRowKind
        • Filter
        • JsonPath
        • LLM
        • Replace
        • Split
        • SQL Functions
        • SQL
    • Integrations
      • Integrations Page
      • Creating Integrations Using Json
    • Run Integrations
      • Run Integrations Using Runners
      • Integration Versioning
  • Batch Processing/Storage with Maxim
    • Maxim Quickstart Guide
    • Maxim Elements
    • Queries
    • Run Queries
  • Orchestration with Routines
    • Routines Quickstart Guide
    • Routines Elements
    • Routines
    • Run Routines
  • Runners
    • Runners Page
    • Create a Runner to Run Applications
  • Security
    • Vaults
      • Vaults Page
      • Create Vaults
        • Runner-level Vaults
        • Application-level Vaults
      • Edit and Delete Vaults
      • 🚧Utilizing Vaults in Applications and Runners
    • Certificates
      • Certificates Page
      • 🚧Utilizing Certificates in Applications
      • 🟨Setting Up Security Settings
  • Monitoring Performance
    • Dashboard
    • Application Details
    • Runner Details
  • Logging
    • Log Types
  • Cost Management
    • SaaS
      • Pay-as-you-go
        • Hard Budget Cap
        • Soft Budget Cap
      • Subscriptions
    • On-prem
  • Organization Settings
    • General
    • Access Controls
      • User Roles and Privileges
    • Current Costs
    • Billing Addresses
    • Payment Accounts
    • Subscriptions
    • Pricing
    • Invoicing
  • User Settings
  • Troubleshooting
  • FAQs
Powered by GitBook
On this page
  • Expression Builder is in Multiple Nodes
  • Using the Expression Builder
  • 0. Connected Node Attributes
  • 1. Click Edit Button
  • 2. Use the Input Area to Freely Construct Your Logic
  • 3. Built-in Functions
  • 4. Logical Operators
  • 5. Save or Clear Your Expression
  • 6. Automatic Validation
  • 7. Further Edits
  • Benefits
  1. Stream Processing with Cortex
  2. Cortex Elements

Expression Builder

PreviousNode UnitsNextBuilt-in Functions

Last updated 1 year ago

The Expression Builder is conveniently located within Nodes where you have the option to manipulate Attributes, filter existing ones, or execute On-demand Queries on Tables, Windows, or Aggregations. Whenever a Node allows for the manipulation of data via Attributes, the Expression Builder is there to facilitate your needs. This section will guide you through using the Expression Builder, ensuring you can efficiently embed complex logic into your Applications.

Expression Builder is in Multiple Nodes

Located within Nodes for creating new Attributes using Built-in Functions, filtering data, and executing On-demand Queries. Essential for data manipulation.

Using the Expression Builder

Whenever you need to write functions or put filters on Cortex Nodes, you will encounter the Expression Builder.

0. Connected Node Attributes

These are Attributes relayed from Nodes already connected in your Application. It is to aid in creating logical expressions and functions, the Builder provides a list of Connected Node Attributes.

All the Attributes you can use on the Expression Builder is conveniently placed at top of every Expression Builder.

We strongly suggest that you utilize Connected Node by clicking onto Attributes you want to use as in same Nodes (Table, Join, Pattern, and Sequence); each attribute may come (e.g.attribute_3) with their associated Node names (e.g.stream_2.attribute_3). You should construct your expression using the latter format in order to create expressions without errors.

1. Click Edit Button

To start creating your filter/functions; first you need to press the Edit button in the corresponding section below the Expression Builder. Now, the Expression Builder can be utilized to fill the the blanks for the activated filter/function.

2. Use the Input Area to Freely Construct Your Logic

When you're ready to insert a function or filter into your Node, simply click the 'Edit' button on the user-input field. This action opens the Expression Builder where you can write and refine your function. Once you're satisfied, clicking 'Save' applies your logic to the Node.

3. Built-in Functions

Cortex comes equipped with a wide array of Built-in Functions, covering various operations and manipulations you might need for your Attributes. Whether it's mathematical, string, or logical operations, the Expression Builder gives you access to these tools. For the comprehensive list cf. Built-in Functions

Finding the right Built-in Function(s) is straightforward. You can use the search bar to quickly look up functions by name, helping you locate the exact tool you need for your specific task.

4. Logical Operators

The bread-and-butter logical operators are also conveniently in the Expression Builder.

5. Save or Clear Your Expression

When you're ready to save the expression you just created, simply click the 'Save' button on the user-input field. This action opens the Expression Builder where you can write and refine your function. Once you're satisfied, clicking 'Save' applies your logic to the Node.

6. Automatic Validation

To ensure the accuracy and functionality of your input, Cortex includes an Expression Validator. This tool checks your function or filter against the Built-in Function input attribute types. This validation step is crucial for maintaining the integrity and reliability of your Application.

If there's a mismatch or an error with your expression, you'll receive an immediate error message prompting you to correct the issue.

7. Further Edits

By utilizing Steps 1-7 as starting with the Edit Button and finishing with the Save button; you can edit your expressions as many times as you nedd.

Benefits

The Expression Builder is a testament to Cortex's commitment to providing a user-friendly and powerful environment for real-time data processing. By understanding and utilizing this tool, you can significantly enhance the functionality and efficiency of your Applications. As you become more familiar with the range of Built-in Functions and the flexibility of the Builder, you'll find yourself able to implement increasingly sophisticated and tailored data processing logic within your Applications.