<?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>Question Re: Error while setting build process workflow user task to &amp;quot;COMPLETED&amp;quot; using API Call in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/error-while-setting-build-process-workflow-user-task-to-quot-completed-quot/qaa-p/12798639#M4805499</link>
    <description>&lt;P&gt;So turn out my issue was, i was passing decision="Approve"    / "APPROVE" &lt;/P&gt;&lt;P&gt;it doesnt recognize it. &lt;/P&gt;&lt;P&gt;for future , if anyone has this issue just pass decision="approve"   it somehow only recognize small caps &lt;/P&gt;</description>
    <pubDate>Sat, 23 Sep 2023 05:33:02 GMT</pubDate>
    <dc:creator>former_member478321</dc:creator>
    <dc:date>2023-09-23T05:33:02Z</dc:date>
    <item>
      <title>Error while setting build process workflow user task to "COMPLETED" using API Call</title>
      <link>https://community.sap.com/t5/technology-q-a/error-while-setting-build-process-workflow-user-task-to-quot-completed-quot/qaq-p/12798636</link>
      <description>&lt;P&gt;Hello Expert, &lt;/P&gt;
  &lt;P&gt;i have created a workflow on SAP Build which has 2 step approval process. &lt;/P&gt;
  &lt;P&gt;These 2 steps are designed using approval form which has "Approve" and "Reject" branch as shown in the screenshot. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2211914-uw-workflow.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;i am able to call the API to get the task Details and now i want to mark first user task as Completed. &lt;/P&gt;
  &lt;P&gt;hence i am calling API : &lt;/P&gt;
  &lt;P&gt;/v1/task-instances/{taskInstanceId}&lt;/P&gt;
  &lt;P&gt;With following context: &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;{&amp;lt;br&amp;gt;   "context": {},&amp;lt;br&amp;gt;   "status": "COMPLETED",&amp;lt;br&amp;gt;   "decision": "",&amp;lt;br&amp;gt;   "subject": "",&amp;lt;br&amp;gt;   "description": "",&amp;lt;br&amp;gt;   "recipientUsers": "",&amp;lt;br&amp;gt;   "recipientGroups": "",&amp;lt;br&amp;gt;   "processor": "",&amp;lt;br&amp;gt;   "dueDate": "2023-09-19T08:14:52.691Z",&amp;lt;br&amp;gt;   "priority": "VERY_HIGH",&amp;lt;br&amp;gt;   "confidenceLevel": 0&amp;lt;br&amp;gt;}&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But it returns with error saying :&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;{&amp;lt;br&amp;gt;  "error": {&amp;lt;br&amp;gt;    "message": "No outgoing sequence flow of element 'form_firstlevelapprovaluw_1' could be selected for continuing the process",&amp;lt;br&amp;gt;    "logId": "eb60dd13-50b0-4c5f-a4c2-cb93dcc-eu10"&amp;lt;br&amp;gt;  }&amp;lt;br&amp;gt;}&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Note: Setting status "Approve" or "Reject" doesnt work as it throws message saying invalid status. so i guess "COMPLETED" is the way to go. but not sure what branch and sequence flow it needs. &lt;/P&gt;
  &lt;P&gt;Thanks in advance for your time.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 08:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-while-setting-build-process-workflow-user-task-to-quot-completed-quot/qaq-p/12798636</guid>
      <dc:creator>former_member478321</dc:creator>
      <dc:date>2023-09-19T08:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error while setting build process workflow user task to "COMPLETED" using API Call</title>
      <link>https://community.sap.com/t5/technology-q-a/error-while-setting-build-process-workflow-user-task-to-quot-completed-quot/qaa-p/12798637#M4805497</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please refer to the API documentation: &lt;A href="https://api.sap.com/api/SPA_Workflow_Runtime/path/patch_v1_task_instances__taskInstanceId_" target="test_blank"&gt;https://api.sap.com/api/SPA_Workflow_Runtime/path/patch_v1_task_instances__taskInstanceId_&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think the empty decision value you provide causes the issue. See the specific description in the API documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Specify the decision taken by the user when the task status is set to 'COMPLETED'.&lt;BR /&gt;
The decision can be evaluated with a respective expression to adapt the control flow accordingly.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 11:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-while-setting-build-process-workflow-user-task-to-quot-completed-quot/qaa-p/12798637#M4805497</guid>
      <dc:creator>tobias_breyer</dc:creator>
      <dc:date>2023-09-19T11:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error while setting build process workflow user task to "COMPLETED" using API Call</title>
      <link>https://community.sap.com/t5/technology-q-a/error-while-setting-build-process-workflow-user-task-to-quot-completed-quot/qaa-p/12798638#M4805498</link>
      <description>&lt;P&gt;Hi Tobias, &lt;/P&gt;&lt;P&gt;thanks for the reply. I tried to add Decision = "APPROVE" and Status="COMPLETED" while calling the patch API but the error remains the same. &lt;/P&gt;&lt;P&gt;so i thought may be my workflow needs a Decision elements so i added it as follow . &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2211939-added-decision.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Still no luck and error remain the same saying "No outgoing sequence flow ..." &lt;/P&gt;&lt;P&gt;Note : i did tested my workflow by manual approval in Workflow inbox and it moves to second level approval after i click on Approve on the first task in inbox. Not sure what's missing. &lt;/P&gt;&lt;P&gt;may be i am missing very basic thing. any idea?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 06:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-while-setting-build-process-workflow-user-task-to-quot-completed-quot/qaa-p/12798638#M4805498</guid>
      <dc:creator>former_member478321</dc:creator>
      <dc:date>2023-09-20T06:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error while setting build process workflow user task to "COMPLETED" using API Call</title>
      <link>https://community.sap.com/t5/technology-q-a/error-while-setting-build-process-workflow-user-task-to-quot-completed-quot/qaa-p/12798639#M4805499</link>
      <description>&lt;P&gt;So turn out my issue was, i was passing decision="Approve"    / "APPROVE" &lt;/P&gt;&lt;P&gt;it doesnt recognize it. &lt;/P&gt;&lt;P&gt;for future , if anyone has this issue just pass decision="approve"   it somehow only recognize small caps &lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 05:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-while-setting-build-process-workflow-user-task-to-quot-completed-quot/qaa-p/12798639#M4805499</guid>
      <dc:creator>former_member478321</dc:creator>
      <dc:date>2023-09-23T05:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error while setting build process workflow user task to "COMPLETED" using API Call</title>
      <link>https://community.sap.com/t5/technology-q-a/error-while-setting-build-process-workflow-user-task-to-quot-completed-quot/qaa-p/13982462#M4898609</link>
      <description>&lt;P&gt;Hello, you just have to make a task of approval, and take the id of your task, then you can approve this task with:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="luicchi_0-1736502853500.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/210539i9D71B8182F4C3C88/image-size/medium?v=v2&amp;amp;px=400" alt="luicchi_0-1736502853500.png" title="luicchi_0-1736502853500.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 09:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-while-setting-build-process-workflow-user-task-to-quot-completed-quot/qaa-p/13982462#M4898609</guid>
      <dc:creator>luicchi</dc:creator>
      <dc:date>2025-01-10T09:54:33Z</dc:date>
    </item>
  </channel>
</rss>

