<?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 send notification from wf task by http request in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/send-notification-from-wf-task-by-http-request/m-p/289584#M242714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys) need your help with next.&lt;/P&gt;&lt;P&gt;I have custom workflow, which works fine - thanks a lot for everyone who discussed about wfs)&lt;/P&gt;&lt;P&gt;In that wf I have a &amp;nbsp;task - sending notification to user.&lt;/P&gt;&lt;P&gt;I would like to send this notification from this tsk not by email, but by http requests to another website. &amp;nbsp;&lt;/P&gt;&lt;P&gt;how it is possible?&lt;/P&gt;&lt;P&gt;I researched a lot about sending http requests and found that i have two options:&lt;/P&gt;&lt;P&gt;1) ajax request - but, if understood right - it is possible to send from html page, because of including alfresco. ajax.library and this option is not for my case&lt;/P&gt;&lt;P&gt;2) and remote root object from Surf.&lt;/P&gt;&lt;P&gt;I could &amp;nbsp;not use remote - it is undefined. I tried to make this &lt;A __default_attr="202071" __jive_macro_name="thread" _jive_internal="true" class="jive_macro_thread jive_macro link-titled" href="https://community.alfresco.com/thread/202071-using-remote-endpoint-in-repository-not-share-webscript" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp; - add bean with remote to webscript-context.xml in the folder with my project, but had trouble with setting &amp;lt;map merge =true&amp;gt; - got error - &amp;nbsp;merge must be defined. I deleted attribute merge, alfresco started, but in share i had 500 code. &amp;nbsp;&lt;/P&gt;&lt;P&gt;what i do wrong?&lt;/P&gt;&lt;P&gt;Probably there is other way to send notification just like http requests. I am not strong in Java a would like use java script api for that.&lt;/P&gt;&lt;P&gt;Thank you for your replies.&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2016 16:49:04 GMT</pubDate>
    <dc:creator>natgeek</dc:creator>
    <dc:date>2016-11-21T16:49:04Z</dc:date>
    <item>
      <title>send notification from wf task by http request</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/send-notification-from-wf-task-by-http-request/m-p/289584#M242714</link>
      <description>Hi guys) need your help with next.I have custom workflow, which works fine - thanks a lot for everyone who discussed about wfs)In that wf I have a &amp;nbsp;task - sending notification to user.I would like to send this notification from this tsk not by email, but by http requests to another website. &amp;nbsp;how it</description>
      <pubDate>Mon, 21 Nov 2016 16:49:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/send-notification-from-wf-task-by-http-request/m-p/289584#M242714</guid>
      <dc:creator>natgeek</dc:creator>
      <dc:date>2016-11-21T16:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: send notification from wf task by http request</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/send-notification-from-wf-task-by-http-request/m-p/289585#M242715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you haven't already, please take a look at my &lt;A href="http://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html" rel="nofollow noopener noreferrer"&gt;Workflow Tutorial&lt;/A&gt;. In it, I show how to write a Java task. The example sends a notification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirement is to make an HTTP call. You were right to try to use the remote object that exists in the web script framework. That should work. But if it doesn't, you could use the example above to learn how to write a Java-based task, but instead of sending an email, you could leverage something like the &lt;A href="http://hc.apache.org/httpcomponents-client-4.5.x/index.html" rel="nofollow noopener noreferrer"&gt;Apache Commons HTTP Client&lt;/A&gt; to invoke a URL on another web site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 18:44:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/send-notification-from-wf-task-by-http-request/m-p/289585#M242715</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2016-11-21T18:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: send notification from wf task by http request</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/send-notification-from-wf-task-by-http-request/m-p/289586#M242716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff, thank you very much for your fast replay. Yes, I used your tutorial for implement my WF and thanks &amp;nbsp;a lot for that tutorial also - very helpful&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp;I avoided Java coding till now, but it seems like I should start java coding. I found that library &lt;A class="link-titled" href="https://github.com/ITDSystems/alvex#downloads" title="https://github.com/ITDSystems/alvex#downloads" rel="nofollow noopener noreferrer"&gt;GitHub - ITDSystems/alvex: Alvex meta repository&lt;/A&gt;&amp;nbsp;&amp;nbsp;and now have two &amp;nbsp;options java task and try this module. I'll tell about results&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 09:43:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/send-notification-from-wf-task-by-http-request/m-p/289586#M242716</guid>
      <dc:creator>natgeek</dc:creator>
      <dc:date>2016-11-24T09:43:39Z</dc:date>
    </item>
  </channel>
</rss>

