Expression Language · Apache-Backed

    Write Formulas Like Spreadsheets, Power Like Code

    JEXL is the battle-tested expression language inside IoT Logic. Write familiar formulas to calculate metrics, decode CAN bus data, and build business rules—if you know speed * 0.621, you already know JEXL.

    The Problem: Raw Data Isn't Business Data

    Every GPS tracker and sensor generates thousands of data points daily, but there's a gap between what devices report and what your business needs.

    What Devices Send

    Unprocessed Telemetry

    adc_112400 mV
    Raw voltage readings
    can_stat0x00A4C2
    Binary status bytes (CAN bus)
    temp_f78.8 °F
    Temperature in Fahrenheit
    fuel_lvl2450 L
    Absolute fuel level
    Initiate Attribute
    INPUT: raw_telemetry
    // Transform Data
    var bat_pct = math:round(adc_1 / 125);
    var temp_c = (temp_f - 32) * 5/9;
    return {
      battery: bat_pct + "%",
      compliance: temp_c >= 2 && temp_c <= 8
    };
    OUTPUT: business_data

    What You Need

    Business Insights

    99%
    Battery health percentage🔋
    Door Open
    Human-readable states🚪
    26.0 °C
    Temperature in Celsius🌡️
    Normal
    Fuel consumption rate🛡️

    JEXL: The Formula Engine That Speaks Your Business Language

    JEXL (Java Expression Language) is the expression engine at the heart of Navixy IoT Logic. Trusted by enterprises worldwide, now available for your fleet.

    Familiar Syntax

    Write formulas that feel like Excel or JavaScript. If you can write `speed * 0.621`, you know JEXL.

    Real-Time Processing

    Expressions execute in milliseconds as data streams in. No batch processing delays.

    Enterprise Security

    Sandboxed execution ensures expressions only access approved data. No risk of runaway code.

    Apache-Backed

    Battle-tested technology developed by the Apache Software Foundation for nearly two decades.

    The Power of the Initiate Attribute Node

    JEXL expressions come to life in the Initiate Attribute node—the transformation engine within IoT Logic flows. It takes raw device data and applies your formulas to create new, calculated attributes in real time.

    • Create new data fields available throughout the platform
    • Calculated attributes flow to dashboards, alerts, and reports
    • Chain multiple nodes for staged processing pipelines
    • No need to touch device firmware or backend systems
    Simple Flow
    [GPS Tracker]
    Initiate Attributespeed_mph = speed_kmh * 0.621
    [Dashboard]

    Real-World Applications

    See how JEXL solves common telematics challenges with simple, readable expressions.

    Driver Safety Scoring

    expression.jexl
    risk_score = (speed > 120 ? 3 : 0) + 
                 (harsh_brake ? 2 : 0)

    Create a composite safety score from multiple driving behaviors for insurance and coaching.

    Cold Chain Compliance

    expression.jexl
    temp_c = (temp_f - 32) * 5/9
    alert = temp_c < 2 || temp_c > 8

    Monitor refrigerated cargo against regulatory thresholds with instant alerts.

    Fuel Theft Detection

    expression.jexl
    fuel_delta = value('fuel', 1) - 
                 value('fuel', 0)
    theft = fuel_delta > 20 && !ignition

    Detect suspicious fuel drops that indicate theft versus normal consumption.

    EV Battery Health

    expression.jexl
    soh = (current_capacity / 
           design_capacity) * 100

    Monitor EV battery parameters to predict degradation and optimize charging.

    Equipment Utilization

    expression.jexl
    idle = engine_running && 
           speed == 0 && duration > 300

    Track engine hours and trigger maintenance before failures.

    CAN Bus Decoding

    expression.jexl
    seatbelt = util:checkBit(can, 0)
    door = util:checkBit(can, 1)

    Decode packed binary status bytes from vehicle ECUs into usable data.

    Works with any device

    Device-agnostic ingestion & normalization

    Protocol & source flexible

    MQTT / HTTP / OEM APIs / gateways

    Real-time execution

    <100ms typical rule evaluation latency †

    Powerful formulas

    50+ JEXL helper functions for parsing, math, time, bits

    Frequently Asked Questions

    Start Building Custom Logic with JEXL

    Stop maintaining brittle middleware. Start transforming telematics data with familiar, spreadsheet-like formulas.

    Step 1