<?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 processVariableValueLike ineffective - Why ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163273#M117079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can get normally all my tasks included one which contains this variable: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{clientOrderId=1450, …} &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when I do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;taskService.createTaskQuery().includeProcessVariables().list()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I do :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;taskService.createTaskQuery().processVariableValueLike("clientOrderId", "1450").singleResult()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get a null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it explainable, or am I doing something wrong ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2014 04:13:20 GMT</pubDate>
    <dc:creator>ugo1</dc:creator>
    <dc:date>2014-01-22T04:13:20Z</dc:date>
    <item>
      <title>processVariableValueLike ineffective - Why ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163273#M117079</link>
      <description>I can get normally all my tasks included one which contains this variable: {clientOrderId=1450, …} when I do:taskService.createTaskQuery().includeProcessVariables().list()But when I do :taskService.createTaskQuery().processVariableValueLike("clientOrderId", "1450").singleResult()I get a null.Is it e</description>
      <pubDate>Wed, 22 Jan 2014 04:13:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163273#M117079</guid>
      <dc:creator>ugo1</dc:creator>
      <dc:date>2014-01-22T04:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: processVariableValueLike ineffective - Why ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163274#M117080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I finally found the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that because I stored my clientOrderId variable as a Long, then the Activiti engine is unable to do the comparison with a String (which is normal). But then my question is, why the method processVariableValueEquals takes a String for the value parameter, instead of an Object ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 04:55:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163274#M117080</guid>
      <dc:creator>ugo1</dc:creator>
      <dc:date>2014-01-22T04:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: processVariableValueLike ineffective - Why ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163275#M117081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It does:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; /** &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * Only select process instances which have a global variable with the given value. The type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * of variable is determined based on the value, using types configured in &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * {@link ProcessEngineConfiguration#getVariableTypes()}. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * Byte-arrays and {@link Serializable} objects (which are not primitive type wrappers)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * are not supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * @param name name of the variable, cannot be null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ProcessInstanceQuery variableValueEquals(String name, Object value);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The method you used, has a 'like' in it. You can only do a like with a string, not with a number.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 15:08:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163275#M117081</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-01-22T15:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: processVariableValueLike ineffective - Why ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163276#M117082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is this operation - processVariableValueLike- case sensitive? I can't find this information in the documentation. We just upgrade in a project to 5.14 because this method wasn't in 5.11, but after a smoke test it seems is case sensitive? Are we missing something or it's just a limitation from activiti 5.14?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 11:58:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163276#M117082</guid>
      <dc:creator>cosminradu_vasi</dc:creator>
      <dc:date>2014-02-06T11:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: processVariableValueLike ineffective - Why ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163277#M117083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is case sensitive if your database has case sensitive string comparison. Which most databases have.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 08:27:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163277#M117083</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-02-07T08:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: processVariableValueLike ineffective - Why ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163278#M117084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok,,,I was hopping you guys would have some toLowerCase stuff, because the equals restriction isn't case sensitive and I believe this is what you've done here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the collation "bin" from the "act_ru_variables" table is the problem. If we change the collation to something like "utf8_general_ci" will we broke something really bad? Is there a particular reason for "utf8_bin" collation?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 14:47:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163278#M117084</guid>
      <dc:creator>cosminradu_vasi</dc:creator>
      <dc:date>2014-02-07T14:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: processVariableValueLike ineffective - Why ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163279#M117085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since strings that differ in case aren't exaclty the same, we opted for the case-sensitive approach. Offcoruse, depending on your DB configuration, LIKEs kan work case-insensitive as well. We're using the utf8_bin for that reason (to make our LIKE-unit-tests run on all DB's being case-sensitive). It's perfectly fine, however, to change that. Activiti does not "count" on this behaviour, so it's safe to alter the collation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 08:38:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processvariablevaluelike-ineffective-why/m-p/163279#M117085</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-02-10T08:38:14Z</dc:date>
    </item>
  </channel>
</rss>

