<?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 REST API Create workflow / task in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-workflow-task/m-p/23831#M10397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the latest Alfresco community edition (5.2 - 201707). I would like to create a task with a REST call for a group of users after I add files in repository. I can do it manually by going to: My Tasks -&amp;gt; Start Workflow -&amp;gt; Review and approve (pooled review) -&amp;gt; Start workflow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been searching for a way to do this but in all the confusion about versions (community, enterprise, activity, etc) I cannot be a 100% sure if a way to do this by REST exists or not. In all documentation:&amp;nbsp;&lt;A class="link-titled" href="https://api-explorer.alfresco.com/api-explorer/#/tasks" title="https://api-explorer.alfresco.com/api-explorer/#/tasks" rel="nofollow noopener noreferrer"&gt;Alfresco Content Services REST API Explorer&lt;/A&gt;&amp;nbsp;there is no POST method for /tasks. Although some community posts say that it should exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively I can user Java API. Example would be appreciated, especially regarding how to initialize connection to a local alfresco server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help regarding this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2018 14:14:08 GMT</pubDate>
    <dc:creator>d0m3n</dc:creator>
    <dc:date>2018-04-09T14:14:08Z</dc:date>
    <item>
      <title>REST API Create workflow / task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-workflow-task/m-p/23831#M10397</link>
      <description>I'm using the latest Alfresco community edition (5.2 - 201707). I would like to create a task with a REST call for a group of users after I add files in repository. I can do it manually by going to: My Tasks -&amp;gt; Start Workflow -&amp;gt; Review and approve (pooled review) -&amp;gt; Start workflow.&amp;nbsp;I have b</description>
      <pubDate>Mon, 09 Apr 2018 14:14:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-workflow-task/m-p/23831#M10397</guid>
      <dc:creator>d0m3n</dc:creator>
      <dc:date>2018-04-09T14:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Create workflow / task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-workflow-task/m-p/23832#M10398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I'm trying to understand your scenario, but I'm struggling to see where you are stuck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please elaborate on: "&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;I would like to create a task with a REST call for a group of users after I add files in repository."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;It sounds like you want to extend the review workflow with an extra service task to do a rest call.&amp;nbsp;This workflow is executed as part of the content repository with a version of activiti embeded in there.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;You can do a REST call or a java call depending if you want to create another Java app that points to the same DB of the content repository. In that way you should be able to interact with tasks programatically. Is that what you are looking for?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:40:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-workflow-task/m-p/23832#M10398</guid>
      <dc:creator>salaboy</dc:creator>
      <dc:date>2018-04-20T16:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Create workflow / task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-workflow-task/m-p/23833#M10399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for answering. I don't think we understand each other.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know if I can do this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;"I can do it manually by going to: My Tasks -&amp;gt; Start Workflow -&amp;gt; Review and approve (pooled review) -&amp;gt; Start workflow"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;with a REST API call. That is create a task with attached documents assigned to a group with a REST call.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;For example by calling POST&amp;nbsp;&lt;A class="link-titled" href="https://api-explorer.alfresco.com/alfresco/api/-default-/public/workflow/versions/1/tasks" title="https://api-explorer.alfresco.com/alfresco/api/-default-/public/workflow/versions/1/tasks" rel="nofollow noopener noreferrer"&gt;https://api-explorer.alfresco.com/alfresco/api/-default-/public/workflow/versions/1/task&lt;/A&gt;&amp;nbsp;with data (like description, group id, document ids, ...) in JSON&amp;nbsp;format.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 14:51:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-workflow-task/m-p/23833#M10399</guid>
      <dc:creator>d0m3n</dc:creator>
      <dc:date>2018-04-25T14:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Create workflow / task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-workflow-task/m-p/23834#M10400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah it&amp;nbsp;is&amp;nbsp; possible to start another process from a Service Task. Do you really want to do it via a POST? because if you are in the context of the engine you can just use a Java call to do that using the RuntimeService from your Java Delegate.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:09:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-workflow-task/m-p/23834#M10400</guid>
      <dc:creator>salaboy</dc:creator>
      <dc:date>2018-04-25T15:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Create workflow / task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-workflow-task/m-p/23835#M10401</link>
      <description>&lt;P&gt;I can't speak for OP, but my use case is to have an external product initiate an audit/approval workflow in Alfresco in response to certain events, which will eventually be fed back into the external product as a "go/no-go" flag.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 17:24:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-workflow-task/m-p/23835#M10401</guid>
      <dc:creator>swift99</dc:creator>
      <dc:date>2020-01-24T17:24:33Z</dc:date>
    </item>
  </channel>
</rss>

