<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Manage Exception when scrip Groovy fail in Kaleo</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112479947" />
  <subtitle>Manage Exception when scrip Groovy fail in Kaleo</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112479947</id>
  <updated>2026-04-05T21:47:21Z</updated>
  <dc:date>2026-04-05T21:47:21Z</dc:date>
  <entry>
    <title>Manage Exception when scrip Groovy fail in Kaleo</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112479946" />
    <author>
      <name>Fernando Paz</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112479946</id>
    <updated>2019-02-26T20:57:59Z</updated>
    <published>2019-02-26T20:57:59Z</published>
    <summary type="html">Hi people,&lt;br /&gt;&lt;br /&gt;Please I need your guru Kaleo experience.  In some cases for both business errors and unexpected errors, the script writed for &amp;#34;task&amp;#34; or &amp;#34;join&amp;#34; nodes launchs exceptions.  The idea is that the article return to initial state (created) when that happens.&lt;br /&gt;&lt;br /&gt;I tried putting code like &lt;br /&gt;&lt;br /&gt;try {&lt;br /&gt;&lt;br /&gt;} catch (Exception e) {&lt;br /&gt;   WorkflowStatusManagerUtil.updateStatus(WorkflowConstants.toStatus(&amp;#34;draft&amp;#34;), workflowContext);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;But it doesn&amp;#39;t work.&lt;br /&gt;&lt;br /&gt;So what is your advice or best practice for those sceneries.&lt;br /&gt;&lt;br /&gt;Thanks in advance</summary>
    <dc:creator>Fernando Paz</dc:creator>
    <dc:date>2019-02-26T20:57:59Z</dc:date>
  </entry>
</feed>
