Salta ai contenuti
Vai al contenuto

Logic connector

The Logic connector transforms and routes data without network calls. It connects Dolibarr, HTTP, and Email connectors.

🔌 If / Else branching

Evaluate a condition on run context:

{{ nodes.invoice.output.total_ht }} > 1000
  • true output → edge to the “large amount” branch.
  • false → standard processing.

Use explicit comparisons (numbers, strings, field presence) to avoid typing surprises.

🔌 Switch

When several business cases exist (order status, country, third-party type), Switch avoids deep If chains. Each known value maps to a dedicated output; keep a default branch.

🔌 Loop

Iterate a list from a Dolibarr List node or HTTP JSON array. Each iteration exposes the current item to child nodes.

🔌 Delay

Pause the run for N seconds or until a datetime. Useful to:

  • let Dolibarr finish generating a PDF;
  • space follow-ups;
  • respect partner API rate limits.

🔌 Error handling

Dedicated nodes to:

  • catch upstream failure;
  • log a readable message;
  • send an Email alert or stop the run cleanly.

Combine with workflow-level retry for transient network errors.

🔌 Dry-run and Simulate

In Simulate mode, Logic runs like production: you can validate branches without writing to Dolibarr when upstream nodes are read-only or mocked.

Next steps