<?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 Retrieve taskId from custom control share tier in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-taskid-from-custom-control-share-tier/m-p/304946#M258076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to integrate a custom control within my custom workflow derived from bpm:workflowTask, in Alfresco 4.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My custom control invokes a webscript in the repo tier, and I need to pass the taskId for which the control instance is running to that webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My goal is to retrieve task variables from the webscript by using&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var taskId = args["taskId"];&lt;BR /&gt;var task = workflow.getTaskById(taskId);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know how to retrieve the taskId in my control.inc.ftl; any hint appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Mar 2015 08:44:01 GMT</pubDate>
    <dc:creator>evoci</dc:creator>
    <dc:date>2015-03-27T08:44:01Z</dc:date>
    <item>
      <title>Retrieve taskId from custom control share tier</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-taskid-from-custom-control-share-tier/m-p/304946#M258076</link>
      <description>I am trying to integrate a custom control within my custom workflow derived from bpm:workflowTask, in Alfresco 4.2.My custom control invokes a webscript in the repo tier, and I need to pass the taskId for which the control instance is running to that webscript.My goal is to retrieve task variables f</description>
      <pubDate>Fri, 27 Mar 2015 08:44:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-taskid-from-custom-control-share-tier/m-p/304946#M258076</guid>
      <dc:creator>evoci</dc:creator>
      <dc:date>2015-03-27T08:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve taskId from custom control share tier</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-taskid-from-custom-control-share-tier/m-p/304947#M258077</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;You can get the task id using &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;${args.itemId}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; in any control of the task-edit form.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 13:32:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-taskid-from-custom-control-share-tier/m-p/304947#M258077</guid>
      <dc:creator>tonyrivet</dc:creator>
      <dc:date>2015-03-27T13:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve taskId from custom control share tier</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-taskid-from-custom-control-share-tier/m-p/304948#M258078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I succeded in retrieving itemId, thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That however appears to be the id of the workflow definition, not the id of the instance, therefore I cannot use it to retrieve the variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did I miss something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Elio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 19:35:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-taskid-from-custom-control-share-tier/m-p/304948#M258078</guid>
      <dc:creator>evoci</dc:creator>
      <dc:date>2015-03-27T19:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve taskId from custom control share tier</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-taskid-from-custom-control-share-tier/m-p/304949#M258079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On which form are you trying to get your task id ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The itemId is the workflow definition id on the start task form, but it should be the task id in any other task edit form.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 11:29:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-taskid-from-custom-control-share-tier/m-p/304949#M258079</guid>
      <dc:creator>tonyrivet</dc:creator>
      <dc:date>2015-03-30T11:29:44Z</dc:date>
    </item>
  </channel>
</rss>

