<?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 Re: how activiti include curl REST API? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20618#M9085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I am not quite sure the difference between 1. and 3.&lt;/P&gt;&lt;P&gt;The curl command (other application provided) is call to execute do some action on the other application itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to execute that curl command separately and it works fine, so I wonder how I can embed into my workflow. So I would like to know how/where to let the workflow call the curl to trigger the other application to do some task itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;Mandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 May 2017 02:57:15 GMT</pubDate>
    <dc:creator>miraclesuki</dc:creator>
    <dc:date>2017-05-02T02:57:15Z</dc:date>
    <item>
      <title>how activiti include curl REST API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20615#M9082</link>
      <description>Hello,I would have my workflow to trigger curl REST API to the other web application.May I know where/how I can place my curl command in the workflow?Thanks for your kindly help.BR,Mandy</description>
      <pubDate>Fri, 28 Apr 2017 09:21:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20615#M9082</guid>
      <dc:creator>miraclesuki</dc:creator>
      <dc:date>2017-04-28T09:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: how activiti include curl REST API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20616#M9083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mandy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is multiple ways to accomplish this but probably the easiest is to use Activiti Shell Task.&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink10" href="https://www.activiti.org/userguide/#bpmnShellTask" title="https://www.activiti.org/userguide/#bpmnShellTask" rel="nofollow noopener noreferrer"&gt;https://www.activiti.org/userguide/#bpmnShellTask&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are insisting to use CURL. As an alternative it wold be a good idea to use Camel task or a simpl Java task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:23:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20616#M9083</guid>
      <dc:creator>ikaygorodov</dc:creator>
      <dc:date>2017-04-28T11:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: how activiti include curl REST API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20617#M9084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say "trigger curl REST api" are you wanting to:&lt;/P&gt;&lt;P&gt;1. make a Rest call to an external REST Service from an activiti service task?&lt;/P&gt;&lt;P&gt;2. Use curl.com API to call Activiti REST API&lt;/P&gt;&lt;P&gt;3. Call a shell script (that executes a curl command)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what you are asking for.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 12:34:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20617#M9084</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-04-28T12:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: how activiti include curl REST API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20618#M9085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I am not quite sure the difference between 1. and 3.&lt;/P&gt;&lt;P&gt;The curl command (other application provided) is call to execute do some action on the other application itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to execute that curl command separately and it works fine, so I wonder how I can embed into my workflow. So I would like to know how/where to let the workflow call the curl to trigger the other application to do some task itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;Mandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 02:57:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20618#M9085</guid>
      <dc:creator>miraclesuki</dc:creator>
      <dc:date>2017-05-02T02:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: how activiti include curl REST API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20619#M9086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mandy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you want to call an external REST service from within an Activiti process flow.&lt;/P&gt;&lt;P&gt;You should use a Service Task.&lt;/P&gt;&lt;P&gt;If you are using Activiti Enterprise edition, there is already a REST service task available in the process designer palette.&lt;/P&gt;&lt;P&gt;If you are using community edition, then you will need to create your own service task to make the REST call.&lt;/P&gt;&lt;P&gt;I have created a simple Rest delegate which you can use as an example here:&lt;BR /&gt;&lt;A class="link-titled" href="https://github.com/gdharley/activiti-integrations" title="https://github.com/gdharley/activiti-integrations" rel="nofollow noopener noreferrer"&gt;GitHub - gdharley/activiti-integrations: A collection of simple activiti javadelegates&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 07:33:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20619#M9086</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-02T07:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: how activiti include curl REST API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20620#M9087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Grey you provide me a great support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case, I'm not familiar with Java and there are some questions would like to ask you about.&lt;BR /&gt;After I drag out the service task from eclipse, I saw "Java class", "expression", "delegate expression" in the list of Task Type under Properties/Main Config tab. And there is a class name, result variable, skip expression .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder to know how can I add your code into the service task step?&lt;/P&gt;&lt;P&gt;My restAPI is look like this for your reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;curl -X POST &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://hostname/v2/b8ed2a4e1b294971bf7fb4a679130f58/servers" rel="nofollow noopener noreferrer" target="_blank"&gt;http://hostname/v2/b8ed2a4e1b294971bf7fb4a679130f58/servers&lt;/A&gt;&lt;SPAN&gt; -H "X-Auth-Token:e20363a7c5ba4be0b63caf46fc7d4400" -H "Content-Type: application/json" -d "{\"server\": {\"min_count\": 1, \"flavorRef\": \"1\", \"name\": \"MandyTest-RestAPI\", \"imageRef\": \"fd3a13bd-eb10-48a7-bd8a-2d596efa2c19\", \"max_count\": 1, \"networks\": [{\"uuid\": \"ab2cf228-05a1-49b1-aeab-843575f31f66\"}]}}"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Sorry for my poor knowledge again...&lt;/P&gt;&lt;P&gt;Mandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 03:01:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20620#M9087</guid>
      <dc:creator>miraclesuki</dc:creator>
      <dc:date>2017-05-16T03:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: how activiti include curl REST API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20621#M9088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The JavaDelegate includes a number of properties you need to define in the call.&lt;/P&gt;&lt;P&gt;These properties are noted at the top of the class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;endpointUrl -&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #f6f6f6; border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;A href="http://hostname/v2/b8ed2a4e1b294971bf7fb4a679130f58/servers" rel="nofollow noopener noreferrer" style="color: #1e88e5; background-color: #f6f6f6; border: 0px; text-decoration: none; font-size: 14px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://hostname/v2/b8ed2a4e1b294971bf7fb4a679130f58/servers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;httpMethod - POST&lt;/P&gt;&lt;P&gt;isSecure _ false&lt;/P&gt;&lt;P&gt;payload - Your JSON payload&lt;/P&gt;&lt;P&gt;headers -[{ "name" : "&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;X-Auth-Token", value : "e20363a7c5ba4be0b63caf46fc7d4400"},{"name" : "&lt;SPAN&gt;Content-Type", "value" : "application/json"}]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;responseMapping - variable you want to send the response json to.&lt;/P&gt;&lt;P&gt;This should be enough to get you moving ahead.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 15:08:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-activiti-include-curl-rest-api/m-p/20621#M9088</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-16T15:08:58Z</dc:date>
    </item>
  </channel>
</rss>

