<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: How to abort event handler? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-abort-event-handler/qaa-p/12475842#M4673756</link>
    <description>&lt;P&gt;I'd recommend to read our documentation about the event phases Before, On and After: &lt;A href="https://cap.cloud.sap/docs/java/provisioning-api#phases" target="test_blank"&gt;https://cap.cloud.sap/docs/java/provisioning-api#phases&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In your Before handler you can skip the On handlers, by completing the event or returning a result.&lt;BR /&gt;After handlers are always executed after that.&lt;/P&gt;&lt;P&gt;However usually it is best to simply define your own On handler and overwrite the default logic with that, as the On handler should be responsible for the "core processing" and should compute the result of the event.&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 11:50:54 GMT</pubDate>
    <dc:creator>marcbecker</dc:creator>
    <dc:date>2022-03-18T11:50:54Z</dc:date>
    <item>
      <title>How to abort event handler?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-abort-event-handler/qaq-p/12475841</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
  &lt;P&gt;I am trying to create a CAP Java application and override the standard update logic. So that when we update, the entity does not change, but there are 2 entities. For example, one with old data and version 1, and the second with new data and version 2.&lt;/P&gt;
  &lt;P&gt;And the question is how to stop the execution of event handlers so that the request ends at before and does not go further into on and after.&lt;/P&gt;
  &lt;P&gt;Are there any ways to do this somehow?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 08:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-abort-event-handler/qaq-p/12475841</guid>
      <dc:creator>former_member774423</dc:creator>
      <dc:date>2022-03-18T08:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to abort event handler?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-abort-event-handler/qaa-p/12475842#M4673756</link>
      <description>&lt;P&gt;I'd recommend to read our documentation about the event phases Before, On and After: &lt;A href="https://cap.cloud.sap/docs/java/provisioning-api#phases" target="test_blank"&gt;https://cap.cloud.sap/docs/java/provisioning-api#phases&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In your Before handler you can skip the On handlers, by completing the event or returning a result.&lt;BR /&gt;After handlers are always executed after that.&lt;/P&gt;&lt;P&gt;However usually it is best to simply define your own On handler and overwrite the default logic with that, as the On handler should be responsible for the "core processing" and should compute the result of the event.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 11:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-abort-event-handler/qaa-p/12475842#M4673756</guid>
      <dc:creator>marcbecker</dc:creator>
      <dc:date>2022-03-18T11:50:54Z</dc:date>
    </item>
  </channel>
</rss>

