<?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 Mapping between task identifier and activiti$ in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/mapping-between-task-identifier-and-activiti/m-p/108453#M30485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a ruby script that can delete a task given its activiti$&amp;lt;number&amp;gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this number from admin console:&lt;/P&gt;&lt;P&gt;Command: show workflows all&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/27165_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;I want to automate the process of deleting workflows. Can I get this activiti number from Task identifier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/27164_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jul 2019 23:33:38 GMT</pubDate>
    <dc:creator>sakshik</dc:creator>
    <dc:date>2019-07-12T23:33:38Z</dc:date>
    <item>
      <title>Mapping between task identifier and activiti$</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/mapping-between-task-identifier-and-activiti/m-p/108453#M30485</link>
      <description>I have a ruby script that can delete a task given its activiti$&amp;lt;number&amp;gt;.&amp;nbsp;I get this number from admin console:Command: show workflows allI want to automate the process of deleting workflows. Can I get this activiti number from Task identifier</description>
      <pubDate>Fri, 12 Jul 2019 23:33:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/mapping-between-task-identifier-and-activiti/m-p/108453#M30485</guid>
      <dc:creator>sakshik</dc:creator>
      <dc:date>2019-07-12T23:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping between task identifier and activiti$</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/mapping-between-task-identifier-and-activiti/m-p/108454#M30486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.You will get activiti Id from that task id.&lt;/P&gt;&lt;P&gt;WorkflowTask workflowTask =serviceRegistry.getWorkflowService().getTaskById("activiti$18563");&lt;BR /&gt; String activitiId=workflowTask.getPath().getInstance().getId();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jul 2019 10:23:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/mapping-between-task-identifier-and-activiti/m-p/108454#M30486</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-07-14T10:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping between task identifier and activiti$</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/mapping-between-task-identifier-and-activiti/m-p/108455#M30487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer. I do not have alfresco SDK setup and hence I could not do this in Java.&lt;/P&gt;&lt;P&gt;I found an API provided by alfresco that returns details about a task :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;A href="https://alfresco.intel.com/alfresco/service/api/task-instances/activiti$445548" rel="nofollow noopener noreferrer"&gt;https://&amp;lt;Domain name&amp;gt;/alfresco/service/api/task-instances/activiti$&lt;/A&gt;&amp;lt;taskidentifier&amp;gt;.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It throws lots of details about this task in JSON. I pull the activiti ID like this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;JSON.parse(result)["data"]["workflowInstance"]["id"]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 21:58:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/mapping-between-task-identifier-and-activiti/m-p/108455#M30487</guid>
      <dc:creator>sakshik</dc:creator>
      <dc:date>2019-07-23T21:58:32Z</dc:date>
    </item>
  </channel>
</rss>

