Route function calls based on data conditions

Recipe Tools

What it does

When a function call arrives, this automation checks the incoming data against multiple conditions. It logs each result to the job report and returns the outcome so the calling process knows what happened.

Who it's for

Engineering teams who need to route function calls to different logic paths based on data values.

How teams use this

Route calls by data type

Check if incoming data matches a specific value and route to the correct handler. Each condition logs its path so debugging is clear.

Validate parent process data

Compare function call data against parent process data to ensure consistency. Log mismatches to the job report for audit purposes.

Add a fourth condition branch

Include an additional data check alongside the existing three conditions so more routing paths are available. The logging and return steps remain the same.

Integrate with IT monitoring systems

Set the function call to check system status data and route to different handlers based on IT infrastructure conditions. Log all routing decisions for compliance tracking.

How it works

  1. Receive a function call. A function call arrives in real time with data that needs to be evaluated against multiple conditions.
  2. Check data against conditions. Workato Recipe Function evaluates the incoming data against three separate conditions to determine which path the function should take.
  3. Log the result. Workato Recipe Function records the matched condition and outcome to the job report so the calling process can see what was evaluated.
  4. Return the outcome. Workato Recipe Function sends the result back to the calling process so it knows which condition was met and can proceed accordingly.