<?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: Getting local task variable with Native Queries in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162384#M116270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's correct, that functionality is not available on native query. Please raise a JIRA if you would like to see this being added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Dec 2013 09:30:16 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2013-12-27T09:30:16Z</dc:date>
    <item>
      <title>Getting local task variable with Native Queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162383#M116269</link>
      <description>Hi,When use taskQuery with "includeTaskLocalVariables" i can get all task local variables.But when i am using taskNativeQuery i don't get task local variables and also there doesn't seem to be any API.List&amp;lt;Task&amp;gt; tasks = taskService.createNativeTaskQuery()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .sql("SELECT * FROM AC</description>
      <pubDate>Tue, 24 Dec 2013 10:05:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162383#M116269</guid>
      <dc:creator>rohitagrawal</dc:creator>
      <dc:date>2013-12-24T10:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting local task variable with Native Queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162384#M116270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's correct, that functionality is not available on native query. Please raise a JIRA if you would like to see this being added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 09:30:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162384#M116270</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-12-27T09:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting local task variable with Native Queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162385#M116271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;is there any workaround to this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now just to get task custom attributes(which is strictly required in our case) we need to fetch task again using taskService one by one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 11:01:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162385#M116271</guid>
      <dc:creator>rohitagrawal</dc:creator>
      <dc:date>2014-01-15T11:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting local task variable with Native Queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162386#M116272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, the only workaround would be a direct mybatis query.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 08:47:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162386#M116272</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-01-17T08:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting local task variable with Native Queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162387#M116273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, your post triggered me to make this easier in Activiti: &lt;/SPAN&gt;&lt;A href="http://www.jorambarrez.be/blog/2014/01/17/execute-custom-sql-in-activiti/" rel="nofollow noopener noreferrer"&gt;http://www.jorambarrez.be/blog/2014/01/17/execute-custom-sql-in-activiti/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 13:53:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162387#M116273</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-01-17T13:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting local task variable with Native Queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162388#M116274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jbarrez, thanks for providing simple solution like customSqlExecution feature. Its a big helping hand for me. How do I customize mapper with my own List&amp;lt;ResultType&amp;gt; instead of List&amp;lt;Map&amp;lt;String, Object&amp;gt;&amp;gt;? Could some one give an example for how to implement it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update: I find a way for this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class TaskResultType{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; private String name;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; private String id;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public final void setName(final String name) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.name = name;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public final String getName() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return name;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public final void setId(final String id) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.id = id;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public final String getId() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return id;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the usage of return type as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CustomSqlExecution&amp;lt;MyTestMapper, List&amp;lt;TaskResultType&amp;gt;&amp;gt; customSqlExecution =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new AbstractCustomSqlExecution&amp;lt;MyTestMapper, List&amp;lt;TaskResultType&amp;gt;&amp;gt;(MyTestMapper.class) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public List&amp;lt;TaskResultType&amp;gt; execute(final MyTestMapper customMapper) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return customMapper.selectTasks();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;TaskResultType&amp;gt; results = managementService.executeCustomSql(customSqlExecution);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Swamy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:01:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162388#M116274</guid>
      <dc:creator>swamy2156</dc:creator>
      <dc:date>2014-06-24T14:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting local task variable with Native Queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162389#M116275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Indeed - thanks for posting this back!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 09:36:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-local-task-variable-with-native-queries/m-p/162389#M116275</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-07-04T09:36:47Z</dc:date>
    </item>
  </channel>
</rss>

