Skip to content

Trigger Connector

The Trigger connector implements conditional logic using MXL (Meddle Expression Language).

Connector Type: MeddleTrigger

Send custom payload when condition is true:

{
"type": "MeddleTrigger",
"config": {
"mode": "DirectDispatch",
"condition": "temperature > 80 || pressure > 10",
"payload": {
"alert_type": "critical",
"severity": "high",
"message": "Threshold exceeded"
}
}
}

When condition is true, outputs the custom payload.

Pass original data only when condition is true:

{
"type": "MeddleTrigger",
"config": {
"mode": "Passthrough",
"condition": "temperature > 25 && status == \"active\""
}
}

When condition is true, passes the original payload through.

  • > Greater than
  • < Less than
  • >= Greater than or equal
  • <= Less than or equal
  • == Equal
  • != Not equal
  • && AND
  • || OR
temperature > 80
pressure < 10
temperature > 80 && pressure < 10
humidity > 60 || temperature > 25
status == "active"
count != 0
temperature >= 20 && temperature <= 30
  1. Alert on threshold violations
  2. Filter data based on conditions
  3. Route data conditionally
  4. Implement business logic
{
"type": "MeddleTrigger",
"config": {
"mode": "DirectDispatch",
"condition": "temperature > 80",
"payload": {
"alert": "high_temperature",
"severity": "warning"
}
}
}
  • Use Passthrough for filtering
  • Use DirectDispatch for alerts and notifications
  • Combine multiple conditions with && and ||
  • Test conditions with various input values