Log callable executions and route asset responses

Recipe Tools

What it does

When someone calls TestCallable, this automation loops through assets and logs each one to the job report. It returns a response based on whether the asset ID matches the condition.

Who it's for

Engineering teams who track callable runs and debug asset processing in Workato Service.

How teams use this

Debug asset processing in callables

Log each asset as it flows through the callable so the team can see which records were processed and identify failures in the job report.

Filter assets by ID before returning

Add a condition to check the asset ID and only return a response when the ID meets a specific value. This requires setting the ID comparison threshold.

Send responses to downstream systems

Route the returned response to a different system based on whether the asset ID matched the condition. The callable stays the same and only the response destination changes.

How it works

  1. Receive the callable request. A new call for TestCallable starts this automation in real-time with the input data needed for processing assets.
  2. Loop through each asset. Repeat the following steps for each item in the assets list so every record is processed individually by Workato Service.
  3. Log asset to job report. Write a message to the job report for each asset so the execution is tracked and visible for debugging in Workato Service.
  4. Check ID and return response. If the asset ID does not equal 0, return a response from TestCallable. Otherwise, return a response from the else branch.