<?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 - workflows  - Approve &amp; Reject in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-workflows-approve-reject/m-p/117348#M32467</link>
    <description>&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;I am trying to implement a mobile app using Alfresco's REST API. So far I have been able to use the below end point to get a user's assigned tasks:&lt;/P&gt;&lt;PRE&gt;/alfresco/api/-default-/public/workflow/versions/1/tasks?where=(assignee='homer')&lt;/PRE&gt;&lt;P&gt;Now I am struggling with figuring out the API actions for Approve and Reject actions on a task. Would appreciate any help. I am getting the idea that I will have to update some 'variable' values, but I can't find any clear documentation on exactly what variables to set, if I am rejecting a task, and which variables to set when I am approving a task.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vipul&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2020 08:39:12 GMT</pubDate>
    <dc:creator>VipulSwarup</dc:creator>
    <dc:date>2020-09-16T08:39:12Z</dc:date>
    <item>
      <title>REST API - workflows  - Approve &amp; Reject</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-workflows-approve-reject/m-p/117348#M32467</link>
      <description>&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;I am trying to implement a mobile app using Alfresco's REST API. So far I have been able to use the below end point to get a user's assigned tasks:&lt;/P&gt;&lt;PRE&gt;/alfresco/api/-default-/public/workflow/versions/1/tasks?where=(assignee='homer')&lt;/PRE&gt;&lt;P&gt;Now I am struggling with figuring out the API actions for Approve and Reject actions on a task. Would appreciate any help. I am getting the idea that I will have to update some 'variable' values, but I can't find any clear documentation on exactly what variables to set, if I am rejecting a task, and which variables to set when I am approving a task.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vipul&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 08:39:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-workflows-approve-reject/m-p/117348#M32467</guid>
      <dc:creator>VipulSwarup</dc:creator>
      <dc:date>2020-09-16T08:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - workflows  - Approve &amp; Reject</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-workflows-approve-reject/m-p/117349#M32468</link>
      <description>&lt;P&gt;I could not locate v1 workflow rest api in documentation and also not sure if there are v1 apis like one you provided to update tasks/instances etc.&lt;/P&gt;
&lt;P&gt;However, have a look at repository rest apis and see if that works for you.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://127.0.0.1:8080/alfresco/service/index/package/org/alfresco/repository/workflow" target="_blank" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8080/alfresco/service/index/package/org/alfresco/repository/workflow&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Workflow definitions can be found here:&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-remote-api/tree/master/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/workflow" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-remote-api/tree/master/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/workflow&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This is an obselete doc but may be helpful:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-hub/workflow-rest-api/ba-p/290146#w_posttaskinstance" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-hub/workflow-rest-api/ba-p/290146#w_posttaskinstance&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 21:04:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-workflows-approve-reject/m-p/117349#M32468</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-09-16T21:04:40Z</dc:date>
    </item>
  </channel>
</rss>

