• DOCUMENTATION
  • WORKATO BLOG
  • PRODUCT BLOG
  • Return to Workato
  • Log in
  • ☰
  • Community/Discussions
Solution home Recipe 101 General Best Practices

Best Practices: Managing Jobs In Callable Recipe

Modified on: Sat, Dec 23, 2017 at 9:33 PM

When using a Callable recipe, you should always have your error reporting done in the Parent (calling) recipe, and not in the Child (calling) recipe, especially if your callable recipe is used by multiple recipes. This makes it much easier to debug when you encounter errors in either recipe.


The general idea for this is that errors must not exist in the callable recipe. All errors must be shown and managed through the job report of the calling recipe. 



Explanation:

1. You must use an error monitor for the whole callable recipe. To emphasize, all the steps that you want to be executed in your callable recipe should be nested under the "Monitor for actions for error" section. You can learn more about this feature here: http://docs.workato.com/recipes/steps.html#action-with-error-handler-step


2. You will have two actions that send the response back to the calling recipe. The first must be nested under the "Monitor for actions for error section". This is the success response and will be sent if the actions succeeded. The second is in the "On error" section. The response here must be a Failure, and in the message, you can map in the Job URL from the Properties in the App data (This also resolves the issue of hunting down the failed called job).


This will already make it so that, if the callable recipe fails, there will be no error in the callable recipe job report, but the calling recipe will show the error. You should only rerun the calling recipe. This will create a separate job, correct, but you don’t have to worry about resolving a failed job in the callable recipe anymore.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

Related Articles

    Still can't find your solution?

    Visit our forums to search for answers, or post your own questions.

    Documentation
    Developer's Library
    Tutorials
    eBooks
    Product Hour
    Product Blog
    Workato Blog
    Product updates
    Customer Stories
    © Workato 2020   Privacy   Terms   +1 (844) 469-6752
    • Documentation
    • Workato Blog
    • Product Blog
    • Solutions
    • Forums
    • Tickets
    • Log in
    • Return to Workato
    Article views count