<?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 Re: Obtain the current TaskId in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80945#M54095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Someone? If is necessary I can re-formulate the question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2012 16:50:38 GMT</pubDate>
    <dc:creator>variag</dc:creator>
    <dc:date>2012-05-22T16:50:38Z</dc:date>
    <item>
      <title>Obtain the current TaskId</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80944#M54094</link>
      <description>Hello guys,How could I obtain the current taskid of a process in execution?I have tried it with this code but throw an exception: "The task with this &amp;lt;id&amp;gt; doesn't exists"public void notify(DelegateExecution execution) throws Exception {[…]String taskId = execution.getId();List&amp;lt;FormProperty&amp;amp;</description>
      <pubDate>Mon, 21 May 2012 22:53:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80944#M54094</guid>
      <dc:creator>variag</dc:creator>
      <dc:date>2012-05-21T22:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain the current TaskId</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80945#M54095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Someone? If is necessary I can re-formulate the question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 16:50:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80945#M54095</guid>
      <dc:creator>variag</dc:creator>
      <dc:date>2012-05-22T16:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain the current TaskId</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80946#M54096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;execution.getId() will return the execution Id "not task id"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;execution is different than task&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please can you explain what exactly you want to achieve?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 10:00:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80946#M54096</guid>
      <dc:creator>hassang1</dc:creator>
      <dc:date>2012-05-23T10:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain the current TaskId</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80947#M54097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want the current taskId for obtain the formproperties of the task. I have created a custom FormProperty and I want set it with data that I collect before in other variables of the process execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 10:17:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80947#M54097</guid>
      <dc:creator>variag</dc:creator>
      <dc:date>2012-05-23T10:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain the current TaskId</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80948#M54098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Like bosted above: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;execution.getId() will return the execution Id "not task id"&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 11:44:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80948#M54098</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-05-23T11:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain the current TaskId</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80949#M54099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have changed the ExecutionListener for a TaskListener but the exception persists &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 12:54:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80949#M54099</guid>
      <dc:creator>variag</dc:creator>
      <dc:date>2012-05-23T12:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain the current TaskId</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80950#M54100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 14:38:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80950#M54100</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-05-23T14:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain the current TaskId</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80951#M54101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;CODE&gt;public class PerDiemButtonFiller implements TaskListener{&lt;BR /&gt; &lt;BR /&gt; public PerDiemButtonFiller(){&lt;BR /&gt;&amp;nbsp; super();&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; public void notify(DelegateTask delegateTask) {&lt;BR /&gt;&amp;nbsp; ActivitiUserPerDiem activitiUserPerDiem = (ActivitiUserPerDiem) &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delegateTask.getVariable("activitiUserPerDiem");&lt;BR /&gt;&amp;nbsp; ActivitiNationalPerDiem activitiNationalPerDiem = (ActivitiNationalPerDiem) &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delegateTask.getVariable("activitiNationalPerDiem");&lt;BR /&gt;&amp;nbsp; ActivitiForeignPerDiem activitiForeignPerDiem = (ActivitiForeignPerDiem) &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delegateTask.getVariable("activitiForeignPerDiem");&lt;BR /&gt;&amp;nbsp; ActivitiLocomotion activitiLocomotion = (ActivitiLocomotion) &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delegateTask.getVariable("activitiLocomotion");&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; String taskId = delegateTask.getId();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; List&amp;lt;FormProperty&amp;gt; formProperties = ProcessEngines.getDefaultProcessEngine().getFormService()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getTaskFormData(taskId).getFormProperties();&lt;BR /&gt;&amp;nbsp; Iterator&amp;lt;FormProperty&amp;gt; it = formProperties.iterator();&lt;BR /&gt;&amp;nbsp; while(it.hasNext()){&lt;BR /&gt;&amp;nbsp;&amp;nbsp; FormProperty formP = it.next();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if(formP.getId() == "id_button"){&lt;BR /&gt;&amp;nbsp;&amp;nbsp; PerDiemButtonFormPropertyRenderer obj = (PerDiemButtonFormPropertyRenderer) formP;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; obj.setUserPerDiemVariable(activitiUserPerDiem);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; obj.setNationalPerDiemVariable(activitiNationalPerDiem);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; obj.setForeignPerDiemVariable(activitiForeignPerDiem);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; obj.setLocomotionVariable(activitiLocomotion);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;}&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 15:54:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-the-current-taskid/m-p/80951#M54101</guid>
      <dc:creator>variag</dc:creator>
      <dc:date>2012-05-23T15:54:50Z</dc:date>
    </item>
  </channel>
</rss>

