<?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: Extend-able QueryParameters for Query API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203869#M156999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may be right. How about just adding the ability to add custom parameters simply by just adding an optional params property (of interface i.e. QueryParameters) to AbstractQuery class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The custom parameters will not be supported directly by Query API instead users will need to add appropriate SQL checks by modifying XML mapping files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kindly check my initial modifications&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/balsarori/Activiti/compare/queryparams" rel="nofollow noopener noreferrer"&gt;https://github.com/balsarori/Activiti/compare/queryparams&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you agree, I'll apply the modifications to the rest of Query classes and create a pull request.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2014 21:34:13 GMT</pubDate>
    <dc:creator>balsarori</dc:creator>
    <dc:date>2014-07-29T21:34:13Z</dc:date>
    <item>
      <title>Extend-able QueryParameters for Query API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203867#M156997</link>
      <description>HiActiviti's Query API fulfills most of my query requirements with some simple exceptions such as querying tasks that are assigned (assignee is not null) and querying tasks/processInstances that a user is involved in with a specific involvement type (ie kermit involved as manager).I think that the r</description>
      <pubDate>Sat, 26 Jul 2014 02:35:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203867#M156997</guid>
      <dc:creator>balsarori</dc:creator>
      <dc:date>2014-07-26T02:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extend-able QueryParameters for Query API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203868#M156998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The main issue is that it's not always a straight-forward 'is null' or '= value' check for the most parameters supported right now. If we whould need to adapt all existing queries, this will have a huge impact on everything and needs thorough testing. We don't have the bandwidth for this right now, so don't think this will happen any time soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you feel some query-options are missing (like the taskAssigned() one, which makes sense) you're free to create a pull-request for this. We're always happy to accept contributions &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 08:21:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203868#M156998</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-07-29T08:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Extend-able QueryParameters for Query API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203869#M156999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may be right. How about just adding the ability to add custom parameters simply by just adding an optional params property (of interface i.e. QueryParameters) to AbstractQuery class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The custom parameters will not be supported directly by Query API instead users will need to add appropriate SQL checks by modifying XML mapping files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kindly check my initial modifications&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/balsarori/Activiti/compare/queryparams" rel="nofollow noopener noreferrer"&gt;https://github.com/balsarori/Activiti/compare/queryparams&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you agree, I'll apply the modifications to the rest of Query classes and create a pull request.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 21:34:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203869#M156999</guid>
      <dc:creator>balsarori</dc:creator>
      <dc:date>2014-07-29T21:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extend-able QueryParameters for Query API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203870#M157000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I guess the need to change the mapping XML-files in order to use something that is offered in our API is a no-go. In case people alter the mapping-xml's, they need to fork activiti anyway and they might end up with incompatible changes in regards to future versions in the XML… &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution makes sense for some people, but we can't include it in the API if it's not doing anything without a custom version of Activti. That's the reason we added the native queries, to prevent this…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 14:53:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203870#M157000</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-07-30T14:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extend-able QueryParameters for Query API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203871#M157001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Writing native queries can result in the same issue. Users will have to update their native queries when future Activiti versions that include schema modifications. Not to mention the complexity of writing native queries which are not typesafe. Users will end up writing poor code with hard coded SQL statements separated in different parts of their code or building their own Query API (build on the Native Query API) or forking the Query API and it's implementation (java files and XML files) to add the modifications they need. Updating an XML file or two that may contain few modified lines with a new version could be a much more simpler option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the end, I think the user should be given options to choose between what they think is better for them as long as the drawbacks of each option is clearly mentioned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I have added some query options to the TaskQuery in this pull request&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/pull/346" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/pull/346&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 01:03:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203871#M157001</guid>
      <dc:creator>balsarori</dc:creator>
      <dc:date>2014-07-31T01:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extend-able QueryParameters for Query API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203872#M157002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I get the point - we can't cater for all query possibilities (downside of writing own SQL-mapping for better control, opposed to exposing eg. a JPA Criteria API). Again, it's not ideal but we DON'T want an API that forces you to fork the engine to alter XML-mapping files. If we whould offer a way of hooking in additional XML-mapping files in mybatis using the process-engine configuration, this is another story. At the moment, we don't have the bandwidth to do a change of this magnitude, I'm afraid…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll take a look at the pull-request, thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 07:01:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203872#M157002</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-07-31T07:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extend-able QueryParameters for Query API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203873#M157003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi @frederikheremans,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Its been a while since the last discussion of this issue. I did not give up yet &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've made simple changes to process-engine configuration that enables setting custom mybatis XML mapping files. I also added some tests that use a custom xml mapping file and a custom task query. Please check it out&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/balsarori/Activiti/commit/812c5bab083a89796490133957139433da7f659b" rel="nofollow noopener noreferrer"&gt;https://github.com/balsarori/Activiti/commit/812c5bab083a89796490133957139433da7f659b&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 02:19:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extend-able-queryparameters-for-query-api/m-p/203873#M157003</guid>
      <dc:creator>balsarori</dc:creator>
      <dc:date>2014-12-01T02:19:07Z</dc:date>
    </item>
  </channel>
</rss>

