<?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 How to retrieve the task id and name in a service task? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-the-task-id-and-name-in-a-service-task/m-p/82665#M55421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I get the task id and the task name for a service task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;public void execute(DelegateExecution execution) throws Exception&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; String name = ???;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; String id = ???;&lt;BR /&gt;&amp;nbsp; }&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Also, how would I access the process instance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll appreciate your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TIA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ion&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2012 20:49:02 GMT</pubDate>
    <dc:creator>imoraru</dc:creator>
    <dc:date>2012-01-12T20:49:02Z</dc:date>
    <item>
      <title>How to retrieve the task id and name in a service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-the-task-id-and-name-in-a-service-task/m-p/82665#M55421</link>
      <description>How can I get the task id and the task name for a service task?&amp;nbsp; public void execute(DelegateExecution execution) throws Exception&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; String name = ???;&amp;nbsp;&amp;nbsp;&amp;nbsp; String id = ???;&amp;nbsp; }Also, how would I access the process instance?I'll appreciate your help.TIAIon</description>
      <pubDate>Thu, 12 Jan 2012 20:49:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-the-task-id-and-name-in-a-service-task/m-p/82665#M55421</guid>
      <dc:creator>imoraru</dc:creator>
      <dc:date>2012-01-12T20:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the task id and name in a service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-the-task-id-and-name-in-a-service-task/m-p/82666#M55422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should work :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public void execute(DelegateExecution execution) throws Exception&lt;BR /&gt;{&lt;BR /&gt; @Override&lt;BR /&gt; public void execute(DelegateExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp; ExecutionEntity ee = (ExecutionEntity) execution;&lt;BR /&gt;&amp;nbsp; String name = (String) ee.getActivity().getProperties().get("name");&lt;BR /&gt;&amp;nbsp; String id = ee.getActivity().getId();&lt;BR /&gt;&amp;nbsp; System.out.println(name);&lt;BR /&gt;&amp;nbsp; System.out.println(id);&lt;BR /&gt; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Atif&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 13:03:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-the-task-id-and-name-in-a-service-task/m-p/82666#M55422</guid>
      <dc:creator>atifelkhachine</dc:creator>
      <dc:date>2012-01-16T13:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the task id and name in a service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-the-task-id-and-name-in-a-service-task/m-p/82667#M55423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It actually works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Atif.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ion&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 18:51:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-the-task-id-and-name-in-a-service-task/m-p/82667#M55423</guid>
      <dc:creator>imoraru</dc:creator>
      <dc:date>2012-01-16T18:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the task id and name in a service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-the-task-id-and-name-in-a-service-task/m-p/82668#M55424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But keep in mind that this requires the use of non public classes so they might change without notice!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 23:24:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-the-task-id-and-name-in-a-service-task/m-p/82668#M55424</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-01-16T23:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the task id and name in a service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-the-task-id-and-name-in-a-service-task/m-p/82669#M55425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can also use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.getCurrentActivityId();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.getCurrentActivityName();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 09:48:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-the-task-id-and-name-in-a-service-task/m-p/82669#M55425</guid>
      <dc:creator>pedro1</dc:creator>
      <dc:date>2014-05-23T09:48:38Z</dc:date>
    </item>
  </channel>
</rss>

