<?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>topic Events API no working for Alfresco Content sevrive Enterprise - 7.0.0 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/events-api-no-working-for-alfresco-content-sevrive-enterprise-7/m-p/141628#M37733</link>
    <description>&lt;P&gt;Hi Alfresco Team,&lt;/P&gt;&lt;P&gt;I am currently working on Events API for Alfresco Content sevrive Enterprise - 7.0.0&lt;/P&gt;&lt;P&gt;I am trying to run the springboot example program as explained in the link below :&lt;BR /&gt;&lt;A href="https://docs.alfresco.com/content-services/latest/develop/oop-sdk/#creating-event-handler-projects" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/latest/develop/oop-sdk/#creating-event-handler-projects&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This program should get triggered when I create any node (file, wiki etc).&lt;BR /&gt;But on my machine, the event is not getting triggered. Nothing gets updated in the logs.&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Rahul&lt;/P&gt;&lt;P&gt;Here is the class&lt;/P&gt;&lt;P&gt;public class EventdemoApplication {&lt;BR /&gt;private static final Logger LOGGER = LoggerFactory.getLogger(EventdemoApplication.class);&lt;BR /&gt;&lt;BR /&gt;public static void main(String[] args) {&lt;BR /&gt;LOGGER.info("Inside main()");&lt;BR /&gt;SpringApplication.run(EventdemoApplication.class, args);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/43638"&gt;@bean&lt;/A&gt;&lt;BR /&gt;public IntegrationFlow logError() {&lt;BR /&gt;return IntegrationFlows.from(EventChannels.ERROR).handle(t -&amp;gt; {&lt;BR /&gt;LOGGER.info("Error: {}", t.getPayload().toString());&lt;BR /&gt;MessageHandlingException exception = (MessageHandlingException) t.getPayload();&lt;BR /&gt;exception.printStackTrace();&lt;BR /&gt;}).get();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/43638"&gt;@bean&lt;/A&gt;&lt;BR /&gt;public IntegrationFlow logCreateFileNode() {&lt;BR /&gt;return IntegrationFlows.from(EventChannels.MAIN) // Listen to events coming from the Alfresco events channel&lt;BR /&gt;.filter(IntegrationEventFilter.of(EventTypeFilter.NODE_CREATED)) // Filter events and select only node created events&lt;BR /&gt;.filter(IntegrationEventFilter.of(EventTypeFilter.NODE_DELETED))&lt;BR /&gt;.filter(IntegrationEventFilter.of(EventTypeFilter.NODE_UPDATED))&lt;BR /&gt;.filter(IntegrationEventFilter.of(EventTypeFilter.PERMISSION_UPDATED))&lt;BR /&gt;//.filter(IntegrationEventFilter.of(IsFileFilter.get())) // Filter node and make sure it is a file node&lt;BR /&gt;.handle(t -&amp;gt; LOGGER.info("File uploaded: {}", t.getPayload().toString())) // Handle event with a bit of logging&lt;BR /&gt;.get();&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Mon, 20 Sep 2021 07:43:09 GMT</pubDate>
    <dc:creator>rkhot</dc:creator>
    <dc:date>2021-09-20T07:43:09Z</dc:date>
    <item>
      <title>Events API no working for Alfresco Content sevrive Enterprise - 7.0.0</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/events-api-no-working-for-alfresco-content-sevrive-enterprise-7/m-p/141628#M37733</link>
      <description>&lt;P&gt;Hi Alfresco Team,&lt;/P&gt;&lt;P&gt;I am currently working on Events API for Alfresco Content sevrive Enterprise - 7.0.0&lt;/P&gt;&lt;P&gt;I am trying to run the springboot example program as explained in the link below :&lt;BR /&gt;&lt;A href="https://docs.alfresco.com/content-services/latest/develop/oop-sdk/#creating-event-handler-projects" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/latest/develop/oop-sdk/#creating-event-handler-projects&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This program should get triggered when I create any node (file, wiki etc).&lt;BR /&gt;But on my machine, the event is not getting triggered. Nothing gets updated in the logs.&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Rahul&lt;/P&gt;&lt;P&gt;Here is the class&lt;/P&gt;&lt;P&gt;public class EventdemoApplication {&lt;BR /&gt;private static final Logger LOGGER = LoggerFactory.getLogger(EventdemoApplication.class);&lt;BR /&gt;&lt;BR /&gt;public static void main(String[] args) {&lt;BR /&gt;LOGGER.info("Inside main()");&lt;BR /&gt;SpringApplication.run(EventdemoApplication.class, args);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/43638"&gt;@bean&lt;/A&gt;&lt;BR /&gt;public IntegrationFlow logError() {&lt;BR /&gt;return IntegrationFlows.from(EventChannels.ERROR).handle(t -&amp;gt; {&lt;BR /&gt;LOGGER.info("Error: {}", t.getPayload().toString());&lt;BR /&gt;MessageHandlingException exception = (MessageHandlingException) t.getPayload();&lt;BR /&gt;exception.printStackTrace();&lt;BR /&gt;}).get();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/43638"&gt;@bean&lt;/A&gt;&lt;BR /&gt;public IntegrationFlow logCreateFileNode() {&lt;BR /&gt;return IntegrationFlows.from(EventChannels.MAIN) // Listen to events coming from the Alfresco events channel&lt;BR /&gt;.filter(IntegrationEventFilter.of(EventTypeFilter.NODE_CREATED)) // Filter events and select only node created events&lt;BR /&gt;.filter(IntegrationEventFilter.of(EventTypeFilter.NODE_DELETED))&lt;BR /&gt;.filter(IntegrationEventFilter.of(EventTypeFilter.NODE_UPDATED))&lt;BR /&gt;.filter(IntegrationEventFilter.of(EventTypeFilter.PERMISSION_UPDATED))&lt;BR /&gt;//.filter(IntegrationEventFilter.of(IsFileFilter.get())) // Filter node and make sure it is a file node&lt;BR /&gt;.handle(t -&amp;gt; LOGGER.info("File uploaded: {}", t.getPayload().toString())) // Handle event with a bit of logging&lt;BR /&gt;.get();&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 07:43:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/events-api-no-working-for-alfresco-content-sevrive-enterprise-7/m-p/141628#M37733</guid>
      <dc:creator>rkhot</dc:creator>
      <dc:date>2021-09-20T07:43:09Z</dc:date>
    </item>
  </channel>
</rss>

