<?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: Increase lenght of String process variables in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10733#M4117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bernd, yes I did -&amp;gt; My MySQL Administrator even displays images in the DB-column inspector as well as text in binary columns &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>Wed, 16 Mar 2011 10:38:28 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2011-03-16T10:38:28Z</dc:date>
    <item>
      <title>Increase lenght of String process variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10724#M4108</link>
      <description>Hey guys.We should increase the possible size for Strings as process variables in the database! Since in most projects I see today we save XML (instead of objects at least) 255 bytes are a bit limiting &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; And especially with Test cases it is hard to change that on-the-fly with the in memory H2.Can</description>
      <pubDate>Fri, 11 Mar 2011 11:30:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10724#M4108</guid>
      <dc:creator>bernd_ruecker</dc:creator>
      <dc:date>2011-03-11T11:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Increase lenght of String process variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10725#M4109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Quick addition: I added this to the setUp of my tests to get it working as a workaround, but that's a bit hacky:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngineConfigurationImpl processEngineConfiguration = ((ProcessEngineImpl)processEngine).getProcessEngineConfiguration();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlSession session = processEngineConfiguration.getDbSqlSessionFactory().getSqlSessionFactory().openSession();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Connection connection = session.getConnection();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Statement jdbcStatement = connection.createStatement();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jdbcStatement.execute("ALTER TABLE ACT_RU_VARIABLE ALTER TEXT_ CLOB");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jdbcStatement.close();&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 12:49:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10725#M4109</guid>
      <dc:creator>bernd_ruecker</dc:creator>
      <dc:date>2011-03-11T12:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Increase lenght of String process variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10726#M4110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is already some discussion done on this topic: &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-614" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-614&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically switching to TEXT would disallow querying on those variables, so that is not a real option.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 16:25:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10726#M4110</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-03-11T16:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Increase lenght of String process variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10727#M4111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Eh? You can still query on a text field, or why not? Or does some database disallow that? Which ones?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My expectation always was, that the database handle these nuts and bolts, so I don't have to care about &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 14:43:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10727#M4111</guid>
      <dc:creator>bernd_ruecker</dc:creator>
      <dc:date>2011-03-14T14:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Increase lenght of String process variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10728#M4112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The type TEXT is actually a CLOB on other DB's. Oracle has no support for this (only through DBMS_LOB package), and think there were others as well. When I implemented the execution/process-instance query based on process-variables (variableValueEquals, variableValueNotEquals, variableValueLike(string)) I did some research on this. So thinking the DB will do the nuts and bolts isn't always working &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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think about the suggestion I made here: &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-236" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-236&lt;/A&gt;&lt;SPAN&gt; ? Automagically uses BLOB if too long, best of both worlds?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Another solution could be the folowing:&lt;BR /&gt;&lt;BR /&gt;The org.activiti.engine.impl.variable.StringType should overflow all characters between 255 and 510 into the TEXT2_ column.&lt;BR /&gt;StringType getValue() returns concatenated string including TEXT1_ and TEXT2_ columns.&lt;BR /&gt;Querying for String-values will continue to work untill 510 (eg. executionQuery.variableValueEquals('str', 'XXX')&lt;BR /&gt;When String is longer than 510 characters, false is returned when calling 'isAbleToStore(…)'. The String will eventually be stored by the SerializableType.&lt;BR /&gt;This way, strings can grow transparantly larger than the limitation. Offcourse, the limitaion for variable-value-querying should be docced.&lt;BR /&gt;&lt;BR /&gt;WDYT?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 15:28:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10728#M4112</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-14T15:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Increase lenght of String process variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10729#M4113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think that is a good option. if you think of XML as payload, you almost always have more than 510&amp;nbsp; characters. And storing that as BLOB is a pain in the ass (and I guess querying for that is not possible as well then).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can all databases maybe handle a VARCHAR(10000) or something like this? That would be still much better than a blob. Actually before I have a blob I even would prefer living with the hack in the test cases and tune the database myself &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; It always surprises me, what Oracle cannot handle &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 15:41:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10729#M4113</guid>
      <dc:creator>bernd_ruecker</dc:creator>
      <dc:date>2011-03-14T15:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Increase lenght of String process variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10730#M4114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think there are already some vendor-specific sql mappings, so maybe we could consider adding one more for being able to query clob contents in db vendor specific way (although I think it won't be v.effective)? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the other hand, Bernd, do you actually consider querying these xmls stored in text fields by value? I think usually it's not reasonable thing to do - I mean, one usually wants to use xpath or some similar stuff then. And if you just want to retrieve/set values easily by means of get/setVariable, then I think that Frederik's proposition is OK - the fact that the value is stored in (C)Lob is then transparent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At least this is how I understand it &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>Mon, 14 Mar 2011 16:06:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10730#M4114</guid>
      <dc:creator>mproch</dc:creator>
      <dc:date>2011-03-14T16:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Increase lenght of String process variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10731#M4115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bernd, limit on oracle is 4000 in nvarchar2 (and about 2000 in UTF-8 I think). Not sure about others though..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From a usage perspective, I don't think it matters how it is stored underlying, as long as you can store long variables and short ones I guess &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; How is storing a blob a pain in the ass? This is handled transparently (if you serialize the string), exactly the nuts and bolts you were reffering to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 16:26:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10731#M4115</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-14T16:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Increase lenght of String process variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10732#M4116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ever tried to look into serialized values on the database? Sooner or later you will face this situation. It is not about runtime, it is about monitoring and operations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At least serializing a String is less evil than own Java classes, but anyway I don't like it. Then I would go for the 2000 characters and document how to change this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 07:55:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10732#M4116</guid>
      <dc:creator>bernd_ruecker</dc:creator>
      <dc:date>2011-03-15T07:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Increase lenght of String process variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10733#M4117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bernd, yes I did -&amp;gt; My MySQL Administrator even displays images in the DB-column inspector as well as text in binary columns &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>Wed, 16 Mar 2011 10:38:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/increase-lenght-of-string-process-variables/m-p/10733#M4117</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-16T10:38:28Z</dc:date>
    </item>
  </channel>
</rss>

