<?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 Is there a limitation on the size of expression builder strings? Run document Chain id? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-limitation-on-the-size-of-expression-builder-strings/m-p/324612#M11613</link>
    <description>&lt;P&gt;I have two separate x?y:z nested conditional statements in the Run Document Chain Id field simulating a switch statement.&lt;/P&gt;
&lt;P&gt;One of the statements is 251 characters long the other is 418 characters long. The 251 character statement works fine with 4 imbedded conditionals. The 418 character statement gives a error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Caused by: [Error: unexpected token in contstructor] [Near : {... Complete'):'besPSSSandCheckLis ....}] 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The 418 character statement has 5 conditionals and much longer variable names hence the increased size.&lt;/P&gt;
&lt;P&gt;I have gone over and over the longer of the two expressions looking for errors. I even used an editor (notepad++) which matches parenthesis, braces, quotes, etc to see if there is a typo. I can't find any typos or mismatched delimiters.&lt;/P&gt;
&lt;P&gt;I'm getting suspicious of the number 251. 251 is very close to 256, a very magical number in computers. The first, working, statement is just under 256 characters long. The second is well over that.&lt;/P&gt;
&lt;P&gt;The question is: Is there a character buffer limit on the buffer for the expression builder and/or Run Document chain id field in studio?&lt;/P&gt;
&lt;P&gt;Here are the two statements:&lt;/P&gt;
&lt;P&gt;This statement works.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@{Document["PSI1:Dents"]=='no'?( Document["PSI1:Flaking"]== 'no' ?( Document["PSI1:Dirt"] == 'no' ?(Document["PSI1:TransitionWires"] == 'no'?'ac_stub':'besPSI1FTDDgetComment'):'besPSI1FTDDgetComment'):'besPSI1FTDDgetComment'):'besPSI1FTDDgetComment'}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This statement generates the error above:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@{Document["PSSand:CleanedRubberAlcohol"]=='yes'?( Document["PSSand:SandUniformEndtoEnd"]== 'yes' ?( Document["PSSand:SixHundredGritSandPaper"] == 'yes' ?(Document["PSSand:SpongeDustOffRubber"] == 'yes'? Document["PSSand:WireSideDown"]=='yes'?'ac_stub':'besPSSSandCheckListToComplete'):'besPSSSandCheckListToComplete'):'besPSSSandCheckListToComplete'):'besPSSSandCheckListToComplete'):'besPSSSandCheckListToComplete'}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Apr 2012 20:10:30 GMT</pubDate>
    <dc:creator>karl_harris_</dc:creator>
    <dc:date>2012-04-18T20:10:30Z</dc:date>
    <item>
      <title>Is there a limitation on the size of expression builder strings? Run document Chain id?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-limitation-on-the-size-of-expression-builder-strings/m-p/324612#M11613</link>
      <description>&lt;P&gt;I have two separate x?y:z nested conditional statements in the Run Document Chain Id field simulating a switch statement.&lt;/P&gt;
&lt;P&gt;One of the statements is 251 characters long the other is 418 characters long. The 251 character statement works fine with 4 imbedded conditionals. The 418 character statement gives a error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Caused by: [Error: unexpected token in contstructor] [Near : {... Complete'):'besPSSSandCheckLis ....}] 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The 418 character statement has 5 conditionals and much longer variable names hence the increased size.&lt;/P&gt;
&lt;P&gt;I have gone over and over the longer of the two expressions looking for errors. I even used an editor (notepad++) which matches parenthesis, braces, quotes, etc to see if there is a typo. I can't find any typos or mismatched delimiters.&lt;/P&gt;
&lt;P&gt;I'm getting suspicious of the number 251. 251 is very close to 256, a very magical number in computers. The first, working, statement is just under 256 characters long. The second is well over that.&lt;/P&gt;
&lt;P&gt;The question is: Is there a character buffer limit on the buffer for the expression builder and/or Run Document chain id field in studio?&lt;/P&gt;
&lt;P&gt;Here are the two statements:&lt;/P&gt;
&lt;P&gt;This statement works.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@{Document["PSI1:Dents"]=='no'?( Document["PSI1:Flaking"]== 'no' ?( Document["PSI1:Dirt"] == 'no' ?(Document["PSI1:TransitionWires"] == 'no'?'ac_stub':'besPSI1FTDDgetComment'):'besPSI1FTDDgetComment'):'besPSI1FTDDgetComment'):'besPSI1FTDDgetComment'}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This statement generates the error above:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@{Document["PSSand:CleanedRubberAlcohol"]=='yes'?( Document["PSSand:SandUniformEndtoEnd"]== 'yes' ?( Document["PSSand:SixHundredGritSandPaper"] == 'yes' ?(Document["PSSand:SpongeDustOffRubber"] == 'yes'? Document["PSSand:WireSideDown"]=='yes'?'ac_stub':'besPSSSandCheckListToComplete'):'besPSSSandCheckListToComplete'):'besPSSSandCheckListToComplete'):'besPSSSandCheckListToComplete'):'besPSSSandCheckListToComplete'}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Apr 2012 20:10:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-limitation-on-the-size-of-expression-builder-strings/m-p/324612#M11613</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2012-04-18T20:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a limitation on the size of expression builder strings? Run document Chain id?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-limitation-on-the-size-of-expression-builder-strings/m-p/324613#M11614</link>
      <description>&lt;P&gt;Your expression is malformed, the innermost parenthesis looks like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;( Document["PSSand:SpongeDustOffRubber"] == 'yes' 
    ? Document["PSSand:WireSideDown"] == 'yes'  ? 'ac_stub' : 'besPSSSandCheckListToComplete'
 )
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It's missing a &lt;CODE&gt;: something&lt;/CODE&gt; to match the &lt;CODE&gt;?&lt;/CODE&gt;. Or the parenthesis is misplaced.&lt;/P&gt;
&lt;P&gt;And no, there are no size limitations like that in Nuxeo Studio.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 11:26:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-limitation-on-the-size-of-expression-builder-strings/m-p/324613#M11614</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-04-19T11:26:19Z</dc:date>
    </item>
  </channel>
</rss>

