<?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: Selective combination of querys in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218365#M171495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently we have only limited support for or queries. So we've got nothing out of the box sadly that would cover that. Maybe a custom query is the answer here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Dec 2015 19:43:37 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2015-12-08T19:43:37Z</dc:date>
    <item>
      <title>Selective combination of querys</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218364#M171494</link>
      <description>Hi everyone.i'm building a specific filter mechanism in my gui, that allows the user to select only some subset of processes based on a few different attributes (like start date, the value of certain process variables, and so on).Being a filter, every filtering field can be present or not. That said</description>
      <pubDate>Sun, 06 Dec 2015 22:16:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218364#M171494</guid>
      <dc:creator>lestat86</dc:creator>
      <dc:date>2015-12-06T22:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selective combination of querys</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218365#M171495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently we have only limited support for or queries. So we've got nothing out of the box sadly that would cover that. Maybe a custom query is the answer here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 19:43:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218365#M171495</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-12-08T19:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Selective combination of querys</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218366#M171496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi and thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Custom query might be the answer but it would be a rather complicated one… I've tried using null references and regular expressions but it doesn't work the way i expect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep in mind that the user is using this filter in a multichoice way, meaning that he can select multiple value for multiple process variables and this can potentially generate null pointers like crazy (in my experience).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One way i thought it might be possible is to create a native query using string composition, but i've no idea how to print the sql of a custom generated query so i have no idea on how to modify the code…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 19:50:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218366#M171496</guid>
      <dc:creator>lestat86</dc:creator>
      <dc:date>2015-12-08T19:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selective combination of querys</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218367#M171497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm so what about a custom Mybatis query: &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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do note that I noticed that in the latest version the annotation approach seems to be bugged , the old-school XML counterpart does work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 20:10:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218367#M171497</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-12-08T20:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selective combination of querys</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218368#M171498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did use direct connection to DB and it's work. Not sure that it's correct approach thou:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; private static ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; private static RuntimeService runtimeService = processEngine.getRuntimeService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; private static String getEndPointByName(String name) throws SQLException {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; final String selEp = "SELECT PROTOCOL, HOST, PORT, PATHURI FROM ENDPOINT_CONFIGURATION WHERE NAME='" + name + "';";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String ep = "";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ProcessEngineConfiguration processEngineConfiguration = processEngine.getProcessEngineConfiguration();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; DataSource dataSource = processEngineConfiguration.getDataSource();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Connection connection = dataSource.getConnection();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; PreparedStatement preparedStatement = connection.prepareStatement(selEp);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ResultSet rs = preparedStatement.executeQuery();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; while (rs.next()) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; String pt=rs.getString("PROTOCOL");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; String host = rs.getString("HOST");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; String port = rs.getString("PORT");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; String uri = rs.getString("PATHURI");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ep="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow noopener noreferrer" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if(pt.equals("0")){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ep="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ep += host;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if (port != null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ep += ":" + port;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ep += uri;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; rs.close();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; preparedStatement.close();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; connection.close();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; return ep;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 22:17:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218368#M171498</guid>
      <dc:creator>echashnik</dc:creator>
      <dc:date>2016-03-16T22:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selective combination of querys</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218369#M171499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure what you're trying to do here? Is this in the Alfresco BPM Suite?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, it's way easier of adding a custom Spring bean and injecting the corresponding Repository class to get db data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 13:56:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/selective-combination-of-querys/m-p/218369#M171499</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-18T13:56:10Z</dc:date>
    </item>
  </channel>
</rss>

