<?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: retrieving task with variables values using single api call in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118670#M83697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the activiti-api, tasks are considered as light-weight objects, spawned by a process (or created by yourself). It was an explicit choice to keep them lightweight and excluding the properties all together. The NativeQuery won't work for you either because the TaskEntity doesn't contain any mappings for the properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want this in a single query, you'll have to write your own SQL and new mapping in iBatis OR alter the Task-entity and Task.xml mapping file, to include the variables…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2013 08:24:02 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-01-21T08:24:02Z</dc:date>
    <item>
      <title>retrieving task with variables values using single api call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118667#M83694</link>
      <description>is it possible to get all tasks with variables names and values using TaskService Using the following service able to retrieve tasks but each task does not contain complete information like variables and its values. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processEngine.getTaskService.createTaskQuery().list();Would like to know if the</description>
      <pubDate>Mon, 21 Jan 2013 06:43:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118667#M83694</guid>
      <dc:creator>ganeshr</dc:creator>
      <dc:date>2013-01-21T06:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving task with variables values using single api call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118668#M83695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is no single API call that can achieve this. You'll have to query the tasks first, and for each task, fetch the variables separately.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 07:55:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118668#M83695</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-21T07:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving task with variables values using single api call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118669#M83696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;but every of operation above goes to database. If I have list of 100 tasks I'll make 100 queries to DB. I don't want to use this approach. Is there any other way to get task variables?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can it be possible to customize the call?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 08:19:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118669#M83696</guid>
      <dc:creator>ganeshr</dc:creator>
      <dc:date>2013-01-21T08:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving task with variables values using single api call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118670#M83697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the activiti-api, tasks are considered as light-weight objects, spawned by a process (or created by yourself). It was an explicit choice to keep them lightweight and excluding the properties all together. The NativeQuery won't work for you either because the TaskEntity doesn't contain any mappings for the properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want this in a single query, you'll have to write your own SQL and new mapping in iBatis OR alter the Task-entity and Task.xml mapping file, to include the variables…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 08:24:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118670#M83697</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-21T08:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving task with variables values using single api call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118671#M83698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;can you please share the path where these files are existing. Task-entity and Task.xml mapping files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And how complexity is involved in changing this mapping files?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 09:41:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118671#M83698</guid>
      <dc:creator>ganeshr</dc:creator>
      <dc:date>2013-01-21T09:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving task with variables values using single api call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118672#M83699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;modules/activiti-engine/src/main/resources/org/activiti/db/mapping/entity/Task.xml and modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/TaskEntity.java.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will involve copying parts from the VariableInstance.xml mapping (or referencing result-mappings and queries from that file) in order to make the Task-queries in Task.xml, join in the variables as well… The other thing to do is to alter the result-mapping (resultMap id="taskResultMap") and TaskEntity, to add a map of variables to it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More info on altering the myBatis mappings, can be found on google and myBatis docs, as this is not something Activiti-specific…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 09:45:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-task-with-variables-values-using-single-api-call/m-p/118672#M83699</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-21T09:45:11Z</dc:date>
    </item>
  </channel>
</rss>

