OpenL Tablets 7.0.0 Migration Notes
Contents
Upgrading to OpenL Tablets 7.0.0 requires no database changes and no Java version change. Three changes need
attention. Groovy moves from 4.0.33 to 6.0.0, skipping the whole 5.x line, so a project that carries Groovy
sources needs a source-compatibility check; every deployment runs the new Groovy runtime, so the administrator
notes below apply even where no project carries Groovy sources. Separately, the /web prefix of the OpenL Studio
API is removed, /rest is the only prefix left, and the WebSocket endpoint moves out of it to /ws — which affects
everyone who calls that API from outside the browser. Finally, the WAR files are no longer published to Maven
Central: they are the assets of the GitHub release, which affects every build and deployment that fetches them
from Maven.
Rules Authors
-
The OpenL Studio screens need nothing from you for the API prefix change. They call the new address on their own.
-
A bookmark of a project from OpenL Studio 6.4 opens nothing. A project is addressed by a new id, so an address saved before the upgrade, and one that names a project by its name, leads to no project. Open the project from the Projects tab and bookmark it again.
-
My Settings are kept in the browser and open from the header. The settings icon beside the theme icon opens them, and a change applies at once. They are no longer saved in the user profile, so each browser starts from the defaults, and the settings saved before the upgrade are not used. The user icon lists Personal Access Tokens right under My Profile instead.
-
The Default Order is gone from My Settings. The module tree opens on the view last picked in the browser, and on By Excel Sheet until one is picked. A Default Order saved before the upgrade is not used.
-
A condition over a Vocabulary column no longer fails on a value missing from the Vocabulary. A decision table condition compares a Vocabulary column with a value of the base type, such as a
Stringargument, in that base type, as its expression does. A value that is not in the Vocabulary equals no value of the column, so only a range that holds it or a rule whose condition cell is empty matches it. Before, the answer depended on how the table was evaluated: most tables stopped the call withObject '...' is outside of valid domain, even for a number that lies inside a range of the table, while a table with formulas in the condition cells answered as it does now. A table that has to reject such a value can end with a rule that leaves the condition cell empty and returns the result of theerror()function. -
An infinite number matches only the same infinity in a decision table condition. In a condition over
Double,double,Floatorfloatvalues, the inputInfinityor-Infinitymatches a rule only when its condition cell holds that infinity or is empty, as==compares them. Before, it matched the rule of a number of the column, such as0, and a condition cell withInfinitycould also match-Infinityor a number. -
A
DoubleRangecondition matches exactly the numbers its range holds. A range without an upper limit, such as> 10,10+ormore than 10, matchesInfinity. A negative bound keeps the number next to it on the correct side:(-1; 0)matches-0.9999999999999999, while[-2; -1]and-1do not. Before,Infinitymatched only a rule whose condition cell is empty. At a negative bound that is a power of two, such as-1or-4, the number next to the bound fell on the wrong side. -
Arithmetic on
Doublevalues computes with the decimals the numbers show. The operators+,-,*,/,%,++,--and their assignments, and the functionsremainder,quotient,floorDivandmod, round the exact result of the written numbers once to the nearestDouble:0.1 + 0.2is0.3,1.15 * 100is115and1.1 % 0.1is0. Before, they computed in binary and gave0.30000000000000004,114.99999999999999and2.7755575615628914E-17. A test that expects such a binary result, or compares it with====, needs the decimal one. A number of 16 or 17 digits with a fraction is a computed one, such as the quotient1 / 3: it counts as itsDouble, and a result of it within the rounding it carries of a shorter decimal is that decimal. So1 / 3 * 3is1.0and9 / 35 * 7is1.8, where binary gave1.0and1.7999999999999998.quotientandfloorDivagree withremainderandmod: a dividend within a rounding of a multiple of the divisor counts as that multiple, andmodof a multiple is0.0, not-0.0.Floatvalues still compute in binary. -
sum,avgandproductofDoublevalues compute with the decimals the numbers show and round once. Their result is theDoublenearest to the exact total:sum(0.1, 0.2)is0.3, and ten times0.1sum to1. Before, they rounded after every value and gave0.30000000000000004and0.9999999999999999. A computed number counts as itsDouble, as in the operators, sosum(1 / 3, 1 / 3, 1 / 3)is1. A result rounded once can differ from adding the values one by one with+:sum(1e16, 1, 1, 1, 1)is1.0000000000000004E16. Aproductof finite values with a zero is zero, also when the other values overflow, where it gaveNaN.medianaverages its two middle values the same way: the median of0.1and0.2is0.15, where it was0.15000000000000002.varS,varP,stdevS,stdevP,covarS,covarP,correl,rsq,slope,interceptandforecastofDoublevalues take this average, so their results can change in the last digits.Floatvalues still compute in binary. -
A test compares a
BigDecimalresult with all its digits. Without a precision, the expected value must equal the result, and with a precision(n)their difference may be up to1E-n, computed without rounding. Before, both were rounded to aDouble, so a test passed when they differed after about the 16th digit:0.6666666666666667matched two thirds, which is0.6666666666666666666666666666666667as aBigDecimal. Write the expected value with all its digits, or give the column a precision, such as_res_ (10). ABigIntegerresult with a precision is compared with all its digits too. ADoubleorFloatresult is still compared in binary, so its difference can be a little larger than it looks: with(1),0.4does not match0.3. For such a result,(5)allows theDoublenearest to0.00001now, where it allowed only9.999999999999999E-6, so0.00001did not match0. -
min,small,bigandmedianreturn NaN when one of the values is NaN, asmaxdoes. This holds wherever NaN stands among the values or in an array ofDouble,double,Floatorfloatvalues. Empty values are still skipped. Before:minskipped NaN:min(Double.NaN, 1.5)was1.5, andmin(new Double[] {3, Double.NaN, 1})was1.0.small,bigandmediancounted NaN as the largest number. Forvalues = new Double[] {3, Double.NaN, 1},small(values, 1)was1.0,big(values, 2)was3.0andmedian(values)was3.0, whilemedianof one or two values already returned NaN.
To leave NaN out, filter it out first, as in
min(values[(v) @ !isNaN(v)]). -
A
DateRangeaccepts ISO dates. A date range in a cell or innew DateRange(...)reads2024-12-31, with an optional time2024-12-31 23:59:59or2024-12-31T23:59:59, in every range form, such as[2024-01-01; 2024-07-01),2024-01-01 - 2024-12-31or>= 2024-01-01. The US form12/31/2024keeps working, also next to an ISO date in the same range. Before, only the US form worked: aDateRangecell with an ISO date, and a condition of a smart rule or a simple rule over aDateparameter with an ISO range or an ISO date and time, failed to compile withCannot parse cell value, andnew DateRange("2024-12-31")stopped the call with an error. A date in a range is still the local date and time of the server, so a range written with US dates matches the same dates as before. -
The literal
nulladded to or subtracted from a number counts as0. It takes the type of the other operand, as an empty value of that type does:null + 3is3andnull - 3is-3. Before, both were an emptyDate, so"" + (null + 3)gavenullandnull + 3 == 3gavefalse; abyteorshortoperand andnull - 'c'did the same. A character counts as a number here, as in'c' + 1, sonull + 'c'and'c' + nullare99instead of the textsnullcandcnull. Multiplying, dividing and comparing withnullgive the same results as before. -
A math function of an empty value is empty.
abs,acos,asin,atan,atan2,cbrt,ceil,copySign,cos,cosh,exp,expm1,floor,getExponent,IEEEremainder,log,log10,log1p,nextAfter,pow,rint,scalb,signum,sin,sinh,sqrt,tan,tanh,toDegrees,toRadiansandulpreturn an empty value when an argument is empty, asround(v),quotient(v, 2)andmod(v, 2)already did. Before, they computed with0in place of the empty value:abs(v)andsqrt(v)were0,cos(v)was1,log(v)was-Infinity,pow(v, 2)was0andpow(2, v)was2, whilepow(v, v)stopped the call with an error. A rule that needs a number checks the value first, for examplev == null ? 0 : sqrt(v). A value of a primitive type, such as adoubleparameter, is never empty, so its results do not change. The functions return wrapper types, so a Spreadsheet step that holds such a result is aDoubleinstead of adouble. -
A percent value equals the fraction it stands for.
0.07%is0.0007and99.99%is0.9999, as the fractions written out are, both as a percent literal in a formula and as a text in aDoublecell or in a Spreadsheet cell without a type. Before, they were0.0007000000000000001and0.9998999999999999, so a result computed from such a value can change in its last digit. ABigDecimalcell already read the exact fraction, and aFloatcell reads the same value as before. A percent literal also takes any number of decimals and an exponent:0.5%,12.345%and1.5e2%compile, while before it had no decimals or exactly two. -
The
%and**operators are short forms ofremainderandpow. They are no longer deprecated, andx % yandx ** ygive the same results asremainder(x, y)andpow(x, y)for positive, negative, zero and empty operands.%keeps the sign of the dividend and the type of its operands, as before. A rule gets different results where the old operators differed from the functions:**returns aDouble:2 ** 3is8.0and2 ** -1is0.5, while before they were the whole numbers8and0. ABigIntegeror aBigDecimalraised to anIntegerpower stays exact, aspow(x, n)now is for them, while**between twoBigIntegeror twoBigDecimalvalues no longer compiles: writex ** y.intValue()there.- An empty operand gives an empty result. Before,
%read an empty operand as0, sox % 3was0and7 % xstopped with/ by zero, andx ** ywith an emptyywas1.
-
The deprecated
->operator is removed. It was never backed by an implementation, so no working rule uses it. -
The deprecated
++and--operators show a warning. They still work, and OpenL Studio marks every use, for example withDEPRECATED '++' operator will be removed in the next version. Use 'x += 1' instead.Rewrite the expression:x++and++xbecomex += 1,x--and--xbecomex -= 1, and a loop such asfor (int i = 0; i < n; i++)becomesfor (int i = 0; i < n; i += 1). Where a rule uses the value ofx++itself, as iny = x++, read it first:y = x; x += 1;. -
The functions
dateToString,stringToDate,parseFormattedDouble,addIgnoreNullandaddArrayElementIgnoreNullare removed. A rule that still calls one of them no longer compiles, for example withMethod 'dateToString(java.util.Date)' is not found.Theopenl:migrategoal of the OpenL Maven plugin rewrites such calls in the workbooks of a project, choosing the replacement by the types of the arguments. Otherwise, rewrite the call:dateToString(date)—toString(date, "M/d/yy")dateToString(date, pattern)—toString(date, pattern)stringToDate(text)—toDate(text)parseFormattedDouble(text)—(Double) toNumber(text)addIgnoreNull(array, element)—element == null ? array : add(array, element)addIgnoreNull(array, index, element)—element == null ? array : addElement(array, index, element)
addArrayElementIgnoreNulltakes the same arguments asaddIgnoreNulland is rewritten the same way. The rewrite writes the array and the element twice, soopenl:migrateleaves a call where one of them is computed by another call, such asaddIgnoreNull(names, lookup(id)): that call would run twice. TheDEFAULT_DOUBLE_FORMATconstant is removed with them, so write its pattern"#,##0.00"instead. Check the rewritten rules for these differences:- The removed functions wrote and read numbers and dates in the language of the server. The replacements always use
US English: a comma groups the digits, a point starts the fraction and month names are English. On a German server,
dateToString(date, "MMMM")gaveMai, whiletoString(date, "MMMM")givesMay. toString(date)without a pattern gives04/30/2015, wheredateToString(date)gave4/30/15. The patternM/d/yykeeps the short form.- A replacement returns an empty value where the removed function stopped the call with an error. This is the case
for
toDateandtoNumberwith a text they cannot read.toDateandtoNumberalso need the whole text to be a date or a number:toNumber("12abc")is empty, whileparseFormattedDouble("12abc")read12. toNumberreturns aNumber, which a rule cannot return as aDoubleor use in arithmetic. The(Double)cast turns it into aDouble, asparseFormattedDoublereturned, and keeps an empty value empty.parseFormattedDouble(text, pattern)has no direct replacement, soopenl:migrateleaves it.toNumberreads the comma that groups the digits. Remove other symbols of the pattern first, such as a currency sign:(Double) toNumber(replace(text, "$", "")).
-
format(value)andformat(value, pattern)write a number or a date astoStringdoes.format(value, pattern)gives the text oftoString(value, pattern),format(amount)the text oftoString(amount, "#,##0.00"), such as1,234.50, andformat(date)the text oftoString(date). A rule that callsformatcompiles as before andopenl:migrateleaves it, but its result changes:format(date)gives04/30/2015instead of4/30/15. Writeformat(date, "M/d/yy")to keep the old text.formatuses US English instead of the language of the server, astoStringdoes. On a German server,format(1234.5)gave1.234,50and now gives1,234.50.format(amount)of an empty value returns an empty value, where the oldformatwrote0.00. Writeformat(amount == null ? 0 : amount)to keep the old text.format(amount, pattern)with an invalid pattern returns an empty value instead of stopping the call with an error.
format(pattern, values), which fills a text such asformat("{0} days", n), works as before. -
A number has no
$sign. The$sign is removed from formulas and ranges, because it reads differently across countries and also starts a reference to a spreadsheet step. A formula or a range that still uses it usually no longer compiles. Do not rely on that:$600also names a step called600or a variable called$600, and a formula next to such a step compiles with its value. Therules.currency-signstep ofopenl:migrateremoves the sign where the compiler rejects it: in a formula and in a cell of anIntRangeor aDoubleRange. A formula that compiles with$600, and a condition of a smart rule or a simple rule, are left for you. Search the formulas for a$before a digit and remove the sign:Before After = $600 * 2= 600 * 2= $2,500 + x= 2,500 + x>= $2,500>= 2500[$1K .. $10K)[1K .. 10K)The
K,MandBmultipliers stay, and their value is exact now.1.5Mis theInteger1500000as before, while a value with a fraction, such as1.0005K, is theDouble1000.5instead of being rounded to anInteger. A value beyond theIntegerlimits, such as3B, is aLonginstead of a compilation error.A comma groups the thousands only between groups of exactly three digits, as in
1,000.00or12,345,678. In a formula, it does so in a number that starts with1to9, as before, and any other comma separates values:max(0,500)andmax(12,34)compare two numbers.[!Note] A comma between digits stays ambiguous in a formula that lists values, such as an array or the arguments of a function:
{10,500,600}is an array of one number,10500600, and{1,000}an array of1000. Write a space after a comma that separates values:{10, 500, 600}holds three numbers, and{1, 000}holds1and0.A range used to drop every comma: in a condition column of ranges of a smart rule or a simple rule,
77,99was the number7799. Now it is the list of77and99, which makes the column a column of lists, where1,500is the list of1and500too. Write such a number without the comma.A text cell of a number type in a Data, Test or Spreadsheet table reads the commas that group thousands too, such as
1,000.50, while before it did not compile. An array cell keeps separating its values by every comma. -
A whole number in a formula is decimal, even when it starts with zeros. Octal numbers are removed, so
010is10instead of8, and0777is777instead of511.08,09,008and009compile, and the numbers from00to07keep their value. A hexadecimal number such as0xFFand an octal escape in a character or a string, such as'\101', are not affected. -
A cell holding an Excel error reads as the error Excel shows. A formula that computes an error, such as
=D5/0, and an error typed into a cell read as#DIV/0!,#N/A,#REF!and so on. An.xlsxmodule read such a cell as empty, and an.xlsmodule read a typed error as empty and a formula error as the textunknown type: FORMULAonce OpenL Studio had the workbook open. A cell of a number type that holds an error is now a compilation error that names the cell. A text cell takes the error as its text: a condition of a decision table that held#N/Amatched any value as an empty one, and now matches only the text#N/A, without a message. Fix the formula in Excel, or clear the cell if it is meant to be empty. -
A percent value in a whole-number cell has to be a whole number. A text such as
5%or250%in anInteger,Long,ShortorBytecell no longer compiles, just as the number2.5there does not:Cannot parse cell value '250%'. Expected value of type 'Long'.Before, the fraction was dropped without a warning, so250%was2and5%was0. A percent value without a fraction loads as before,300%as3. Use aDoubleorBigDecimaltype to keep the fraction. -
A named constructor argument takes its value from the rule. In
new Customer(name = name)andCustomer(name = name), the valuenameis the parameter or variable of the rule. Before, a value that had the name of a field of the type read that field of the new, still empty object, soname = nameleft the field empty, and so didname = citywith a parametercity. A value can no longer read another field of the new object:Customer(name = "Ann", city = name)fails to compile withIdentifier 'name' is not found.when the rule has nonameof its own. -
Named arguments after
newalways set the named fields.new Customer(city = city, name = name)sets the fields as named, asCustomer(city = city, name = name)does, and leaves the rule variablesnameandcityunchanged. Before, when the rule had variables with the names of the fields and the type had a constructor for their types, the values went to that constructor in the written order: the fields could be swapped,name = cityoverwrote the variablename, andnew Box(city = city)compiled for aBoxwithout acityfield. Arguments that are allfield = valuepairs are no longer assignments passed by position, sonew BigDecimal(x = 5)with a variablexfails to compile; assignxbefore the call. -
A text cell reads an exponent with a small
e. The letter case no longer matters for any number type, as in a formula:1.5e3is1500like1.5E3, and1e3is1000like1E3. Before, the small letter failed to compile withCannot parse cell value '1.5e3'. Only a Spreadsheet cell without a type calculates differently: its text1e3is now theDouble1000.0instead of the text1e3. Give such a step the typeString, as inCode : String, to keep the text. -
toNumberreads an exponent with a smalle.toNumber("1.5e3")is1500, liketoNumber("1.5E3"). Before, it wasnull, althoughisNumeric("1.5e3")was alreadytrue, so a rule that checks the result oftoNumberfornullnow gets the number for such a text. -
likechecks an empty text against the pattern, and@is a letter of any alphabet. An empty ornulltext matches a pattern that needs no characters:like("", "*")andlike(null, "*")aretrue, while before an empty text matched only an empty pattern.@matches a letter such asØ,ßorД, solike("Øre", "@@@")andlike("Мова", "@+")aretrue. Before,@matched only the letters A to Z; a rule that has to keep that limit writes the set[A-Za-z]instead of@. -
textSplitcuts the text at every whole separator. A separator that starts inside a partial match of it is no longer missed:textSplit(", ", "a,, b")is["a,", "b"]andtextSplit("ab", "aab")is["a"], where before the text came back whole. The start of a separator at the end of the text stays in the last part:textSplit(", ", "a, b,")is["a", "b,"]instead of["a", "b"]. An empty text has no parts, sotextSplit(",", "")is an empty array instead of an array with one empty text. With a separator of one character, or none, only an empty text gives a different result. -
toDateneeds the whole text to be the date. More text after the date gives an empty value instead of the date read from the start:toDate("04/30/2015abc"),toDate("15.03.2024x", "dd.MM.yyyy")andtoDate("2024-03-15T10:20")are empty. Blanks around the date are still ignored. For a text with a time, read the time with the pattern, as intoDate(text, "yyyy-MM-dd'T'HH:mm"), or cut the date out, as intoDate(substring(text, 0, 10)). An empty pattern reads the formstoDate(text)reads:toDate("2024-03-15", "")is the date instead of empty, and the two-digit year oftoDate("01/11/12", "")is 2012 instead of the year 12. -
round(x, mode)stops at the limit of theIntegerrange, asround(x)does. Both return anInteger:round(5000000000.4)andround(5000000000.4, DOWN)are2147483647, andround(-5000000000.4, DOWN)is-2147483648. Before,round(x, mode)wrapped around and gave705032704and-705032704. To round a number beyond theIntegerrange, keep the type of the number withround(x, 0)orround(x, 0, mode):round(5000000000.6, 0, DOWN)is5.0E9. Check also these differences:- A whole number, such as an
Integeror aLong, is rounded exactly.round(16777217)is16777217, andround(16777217, 0)is1.6777217E7, aDoubleas for a fraction. Before, a whole number was rounded as aFloat, so they were16777216and theFloat1.6777216E7. round(-5.0E9f)is-2147483648instead of-2147483647, as the limit of theIntegerrange.round(x, n)rounds a large wholeDoubleexactly. Before, it could change in its last digit:round(1.0E15, 1)was1.0000000000000001E15.
- A whole number, such as an
-
transform unique toskips an empty element of an array, as the other array index operators excepttransform todo. It does not evaluate the expression for an element that isnull. Before, it evaluated the expression for the empty element:(x) transform unique to isEmpty(x) ? -1 : xgave-1for it, andtransform unique to length(), which calls a method of the element without naming it, stopped with aNullPointerException.transform tokeeps evaluating the expression for every element, an empty one too, so its result has as many values as the array; a method of an empty element called without naming it, as intransform to length(), gives an empty value, or0for a primitive type, instead of theNullPointerException. -
transform unique toreturns an empty value for a missing array, as the other array index operators do. Applied to an array or a collection that isnull, such as the values of a missingMap, it givesnull. Before, it gave an empty array for a missing array and stopped with aNullPointerExceptionfor a missing collection. -
ORDER BYreturns the original elements of an array even when they are converted for comparison. For anObject[]orNumber[]holdingIntegervalues,[(Long x) order by x]comparesLongvalues but returns the originalIntegervalues in order. Before, it returned convertedLongvalues.SELECT ALLandSPLIT BYalready returned original elements. Usetransform towhen the result must contain converted values. -
removegives an empty value for a missing array.remove((Integer[]) null, 0)isnull, asremoveElement,sliceandremoveNullsalready give for a missing array. Before, it stopped the call withIndex: 0, Length: 0. A position outside an existing array still stops the call. -
An array function keeps the type of the array.
removeElement,slice,removeNullsandsortapplied to a primitive array, such asint[], return anint[]instead of anInteger[], asremovealready did, andsort(3, 1, 2)sorts anint[].addElementkeeps the type when the added element fits it:addElement(new int[] {1, 2}, 1, 5)is anint[], while an element of another type gives the closest common type, so2.5in anint[]gives adouble[]instead of aDouble[]. A rule, a field or a parameter declared asInteger[]still gets anInteger[], while a Spreadsheet step without a type takes the type of the result. -
addandaddAlltake the added elements into the type of the result. An element that does not fit the array widens it, as foraddElement:add(new int[] {1}, 2.5)is thedouble[][1.0, 2.5], andadd(new int[] {1, 2}, (Integer) null)is anInteger[]that ends with an empty element. Before, the result kept the array type, so2.5was cut to2and the empty element became0. A boxed array stays boxed:add(new Integer[] {1, null}, 2.5)is aDouble[]that keeps its empty element. -
flattengives an empty value when every array it gets is missing.flatten((Integer[]) null)isnullinstead of an empty array, asslice,sortand the other array functions give for a missing array. A missing array next to another one still adds no elements, soflatten((Integer[]) null, new Integer[] {1})is[1]. -
A Spreadsheet row whose name is merged over every titled column is a caption, not a step. Its name cell spans all the columns that have a title, so it marks a section of the steps below it. A name merged over only some of them stays a step with its values, as before. A caption is no longer a field of the result: the response of a service and its OpenAPI schema lose the field that held the caption text, such as
Final_Calculation, and a test cannot read it. When a Spreadsheet of several columns is left with one step, its fields are named by the columns alone, as for any Spreadsheet of one step:Baseinstead ofBase_Calc. A formula that refers to a caption, such as$Final Calculationor$Formula$Summary, stops compiling withIdentifier '...' is not found. Search the formulas for the name of each caption before the upgrade, and a client of the service for the fields. -
A source-compatibility check is needed only for a project with a
groovy/folder. Rules in Excel are not compiled by Groovy, so they need no re-save and no re-compile for the language changes below. -
A static member can no longer be called through a parameterized type. Groovy 6 rejects what Groovy 4 accepted, applying the rule Java has always had:
Literal<Node> x = Literal<Node>.of(true) // no longer compiles Literal<Node> x = Literal.of(true) // write this insteadGroovy reports
Cannot refer to a static member of a generic type through a parameterization. Removing the type argument from the call is the whole fix — the variable keeps its declared type and behavior does not change. Thegroovy.generic-staticstep ofopenl:migrateremoves it in the code of every.groovyfile of a project, not in its texts and comments. -
Recognize the symptom. A Groovy class that fails to compile surfaces as a missing type rather than as a compilation error. The module reports
Cannot load type: <fully qualified class name>, and a service built from that project fails to deploy. Compiling the project’s Groovy sources directly against Groovy 6 shows the real message.
[!Note] The rule above is the change OpenL’s own projects had to adapt to. Groovy 6 carries further changes over the 4.x line, and the 5.x line is skipped entirely, so consult the Groovy release notes before upgrading a project that leans on less common language features.
Developers
- Replace
/web/with/rest/in every client. The path after the prefix is unchanged, so/web/projects/{id}/filesbecomes/rest/projects/{id}/files. There is no redirect and no compatibility period. - A check for a
2xxis not enough while you migrate. AGET /web/...no longer fails — the address falls through to the page the application is drawn on, so the response is200with an HTML body. A client that only tests the status code will parse that page as JSON. A non-GET answers405. Search your clients for the literal/webrather than relying on error handling to surface the change. - The user profile carries no settings.
GET /rest/users/profileno longer returnsshowHeader,showFormulas,testsPerPage,testsFailuresOnly,testsFailuresPerTest,showComplexResultandshowRealNumbers, andPUT /rest/users/profilerefuses a request that sends one of them with400andUnknown field '<name>'. OpenL Studio keeps these settings in the browser. Remove them from the requests of your clients. - A local change is answered with its moment in ISO 8601.
modifiedOnofGET /rest/projects/{id}/local-historyused to be text formatted with the Date Format and Time Format of the system settings, in the time zone of the server, and the revision a module was opened at carried its id there. It is now a moment in UTC, such as2026-10-29T18:20:19.123Z, and that revision carries nomodifiedOn. A client formats the moment itself. - A version of a table is answered by the values of its dimensions, not by a name.
GET /rest/projects/{id}/tablesno longer answersdisplayName, such ascarPrice [effectiveDate=07/01/2020 10:30:00 AM], and the nodes ofGET /rest/projects/{id}/tables/graphno longer answerdimensionProperties, keyed by the names a business user reads. Both answerdimensionsinstead: the value of every dimension property of the version by its technical name, a date in ISO 8601, an enum by its name, several values as an array, such as{"effectiveDate": "2020-07-01T10:30:00.000", "state": ["AR"]}. A version node of the graph is named as its table is. Build the label of a version fromnameanddimensions. - No client needs new credentials.
/restaccepts everything/webdid and more: the session cookie in every mode, a Personal Access Token in all multi-user modes, HTTP Basic inadandmulti, and a Bearer token inoauth2. - The WebSocket endpoint is
{context}/ws, and it is authenticated./web/wsand/rest/wsare gone. The handshake is a protocol of its own, so it has an address of its own, apart from the REST API./web/wsused to admit an anonymous handshake, which is what made the public notification topic readable without signing in; that is no longer the case. Connect with the session cookie the browser already holds, or send anAuthorizationheader on the handshake, as the REST API has always accepted. - A run whose
runtimeContextpicks a table version that does not compile now answers409.POST /rest/projects/{id}/runused to answer202and then a result with no value and no errors. It now answers409withopenl.error.409.run.dispatched.compile.errors.message, naming the first error of that version. The check covers only the version the requested table is dispatched to: a table it calls is not checked, and a table with a parameter filled in from the runtime context is skipped. - In
oauth2mode an unauthenticated API call now answers401withWWW-Authenticate: Bearerinstead of a bare401. ABearerchallenge raises no browser credential dialog, so a browser client is unaffected; a scripted client that inspects the header should expect it. POST /rest/admin/tag-config/fillanswers what the fill did to each project. It used to answer{"updated": N, "skipped": M}. It now answers a list with one entry for every project it was asked for that a project name template derives a missing tag value for: the project name, the outcome, the tag values the project got and the ones it could not get, and why a project was left alone. A script that reads the two counters has to count the entries by theiroutcomeinstead.- A files-API write into a project that cannot be changed now names the reason. A write under
/rest/projects/{id}/filesinto a project locked by a user, or on a protected branch, used to answer409with the codeopenl.error.409.project.status.update.failed.message. It now answers409withopenl.error.409.file.project.locked.message, naming the project and the user, or withopenl.error.409.file.project.branch.protected.message, naming the project and the branch. - A single file posted to the files API follows
conflictPolicy.POST /rest/projects/{id}/files/{path}andPOST /rest/repos/{repo}/files/{path}used to ignore it for a file and answer409withopenl.error.409.file.create.failed.messagewhenever a file was already there.OVERWRITEandREPLACEnow replace the file andSKIPleaves it as it is, both answering204instead of201.FAIL, the default, answers409withopenl.error.409.file.archive.entry.exists.message, naming the file. The rawapplication/octet-streamform takesconflictPolicytoo. POST /rest/projects/{id}/runrefuses a table that does not compile. It used to start the run, andGET /rest/projects/{id}/run/resultanswered200with noerrorsand a result worked out as if the cells that could not be read were empty, or with no result at all. It now answers409with the codeopenl.error.409.run.table.compile.errors.messageand the first compilation error of the table. A table that compiles within its own module but not with the rest of the project runs withfromModule, as the Run button of the editor does.POST /rest/projects/{id}/tracerefuses a table that does not compile. It used to start the session for a table with a compilation error, taking an unparsable cell as empty, so the trace completed with a result computed from the rest of the table, and it answered404for a table whose header did not parse. It now answers409withopenl.error.409.trace.table.compile.errors.message, naming the first error. The errors are read from the whole project, or from the module named byfromModule, and a test table is refused for errors in the tables it tests as well. A table that compiles within its own module but not with the rest of the project traces withfromModule, as the Trace button of the editor does. A table with an expression that does not compile used to halt on the failing step underbreakOnErrors; it is refused with the same409now, so a client that traced it to find the error reads it from the answer. A table that only calls a table that does not compile is still traced and halts on the failing step.- A row appended to a raw table needs a cell for every column.
POST /rest/projects/{id}/tables/{tableId}/lineswith theRawSourcetable type used to fill the missing trailing cells of a short row with blanks. It now answers400withopenl.error.400.table.action.row.width.messageand appends nothing, as the raw table actions do. A row wider than the table answers this code too, instead ofopenl.error.400.table.append.column.count.message. Send{"value": null}for a blank cell. - A request parameter that breaks a constraint is coded by the constraint, as a request body field is. Its
codeused to hold the message key in braces, such asopenl.error.{jakarta.validation.constraints.Min.message}. It is nowopenl.error.Min,openl.error.Sizefor a comment that is too long, andopenl.error.SidExistsConstraintfor an ACL request naming a user or a group that does not exist. Themessageis unchanged. treeViewandprofilesare gone from/rest/users/profile.GETno longer returns them, and aPUTthat still sendstreeViewanswers400withUnknown field 'treeView'. Drop the field from the body.- A
PUT /rest/users/profilethat leaves a field out keeps the stored value, for a name, the e-mail and the display name. It used to clear a missing name, refuse a missing e-mail or display name, and answer500on a missingtreeViewafter the names and the e-mail were already saved. An e-mail or a display name that is sent still cannot be empty, and a request that fails now changes nothing. PUT /rest/users/{username}is for administrators only. A non-administrator now receives403even when{username}is their own. UsePUT /rest/users/infoto edit your own information orPUT /rest/users/profileto change your own password with the current password.- A project id is an opaque 13-character value. Every project id of the REST API and of the WebSocket
destinations used to be the Base64 of
repository:name, and a project name was accepted in its place: the{projectId}of every/rest/projects/{projectId}/...path,{project-id}of/rest/acls/projects/{project-id},projectIdofPOST /rest/deploymentsandPOST /rest/deployments/{id},sourceProjectof a project copy anddependsOnofGET /rest/projects. An old id and a project name answer404now, anddependsOnanswers400for a text that is not an id. Read the id fromidofGET /rest/projects— filter it withrepositoryandname— or from the answer of the request that created or copied the project, and do not build or decode it. The id is computed from the repository and the folder of the project, so it survives a rename inrules.xml, a branch switch, an open, a close and a restart. While the server runs, the id of a project whose folder moved outside OpenL Studio still serves the project, naming the new id in the body and inContent-Location, and the id of a deleted project answers410. A deployment keeps its id. - A name shared by several projects no longer answers
409with candidates. The answer, with the codeopenl.error.409.project.identifier.ambiguous.messageand acandidateslist, is gone: an id names one project. sourceRepositoryIdof a project copy is gone.POST /rest/repos/{repo}/projects/{name}/from-projecttakes the source by its id, which names its repository too. A request that still sends the field answers400.- Deprecated REST endpoints are removed. Call their replacements:
GET /rest/users/options—GET /rest/settings, whereemailVerificationissupportedFeatures.emailVerification.userModethere isINTERNALformulti,EXTERNALforad,oauth2andsaml, and empty forsingle;canCreateInternalUserswastrueforINTERNALonly.GET /rest/mail/settings,PUT /rest/mail/settings—GET /rest/admin/settings/mailandPOST /rest/admin/settings/mail.POSTtakes the sameurl,usernameandpasswordfields.GETdoes not return a saved password: it answers an object with"secret": truein its place, and a field fixed by the application properties as an object with itsvalueand"readOnly": true.GET /rest/projects/{id}/status—GET /rest/projects/{id}?include=status, which answers the same status ascompileStatus. Itsbranchparameter only checked the branch the project was on; the project response names that branch inbranch.GET /rest/repos/{repo}/projects/{name}/historyand its/branches/{branch}/form —GET /rest/projects/{id}/history, with?branch={branch}for the second. The project is named by its id, whichGET /rest/projectsreturns, so a rename inrules.xmlthat is not saved yet does not hide its history.
- Java and Groovy code loses the same functions.
RulesUtils.format,dateToString,stringToDate,parseFormattedDouble,addIgnoreNull,addArrayElementIgnoreNullandDEFAULT_DOUBLE_FORMATare removed, and so isDateTool.dateToString. The rules functions oforg.openl.rules.utilare not meant for Java code, so call what the removed functions called. These calls keep the old results, including the language of the server, except that the removed date functions returnednullfor anulldate:format(number, pattern)—new DecimalFormat(pattern).format(number), with"#,##0.00"when there was no patternformat(date, pattern),dateToString(date, pattern)—new SimpleDateFormat(pattern).format(date)format(date),dateToString(date)—DateFormat.getDateInstance(DateFormat.SHORT).format(date)stringToDate(text)—DateFormat.getDateInstance(DateFormat.SHORT).parse(text)parseFormattedDouble(text, pattern)—new DecimalFormat(pattern).parse(text).doubleValue(), with"#,##0.00"when there was no patternaddIgnoreNull(array, element),addArrayElementIgnoreNull(array, element)—element == null ? array : ArrayUtils.add(array, element)withArrayUtilsof Apache Commons Lang; the form with an index passes it as the second argument ofArrayUtils.add
org.openl.rules.util.Roundhas no public methods with primitive arguments. The overloads that took adoubleor afloat, such asround(double), are private, so a Java call such asRound.round(2.5)compiles against the boxed overload and returns anIntegerinstead of anint. Code compiled against an earlier version fails withNoSuchMethodErroruntil it is compiled again. The rules functions oforg.openl.rules.utilare not meant for Java code.org.openl.source.impl.ModuleFileSourceCodeModuleandorg.openl.syntax.exception.Runnableare removed. The source module was deprecated since 5.23.10; build aURLSourceCodeModulefrom the module URL instead. Nothing in OpenL Tablets used theRunnableinterface; usejava.util.concurrent.Callableor an interface of your own.RulesUtils.removehas one generic form. Its overloads forint[],long[],double[],float[],short[],byte[],char[]andboolean[]and for the arrays of their boxed types are removed; rules still get an array of the type they pass. The genericremove(T[] array, int index)returnsnullfor anullarray instead of throwing anIndexOutOfBoundsException. Java code that passes an array of a boxed type compiles unchanged, but code compiled against an earlier version fails withNoSuchMethodErroruntil it is compiled again. Code that removes an element of a primitive array callsArrayUtils.removeof Apache Commons Lang, which the removed overloads called.RulesUtils.flattenreturnsObject. It returns a primitive array, such asint[], when the elements are primitive, so its Java return type isObjectinstead ofObject[]. A Java caller casts the result to the array type it expects.- The math functions moved from
RulesUtilstoorg.openl.rules.util.Maths.abs,sqrt,pow, the other math functions and thePIandEconstants are gone fromorg.openl.rules.helpers.RulesUtils. The rules functions oforg.openl.rules.utilare not meant for Java code, so Java and Groovy code callsjava.lang.Math, which the removed functions called:RulesUtils.sqrt(x)becomesMath.sqrt(x). Two names differ:getExponent(x, y)with two arguments isMath.hypot(x, y), andnextAfter(x)with one argument isMath.nextUp(x). Thegroovy.removed-mathstep ofopenl:migratemakes this change in the code of every.groovyfile of a project, also in a static import, except a static import ofgetExponent, ofnextAfteror of all the members ofRulesUtils. -
org.openl.rules.serialization.JsonUtilsis removed. Create anObjectMapperwithJacksonObjectMapperFactoryBeanonce and keep it: a configured mapper is thread-safe, so it also replacesgetCachedObjectMapper. The mapper oftoJSON(value)andfromJSON(json, type)wrote dates in this format:var factory = new JacksonObjectMapperFactoryBean(); factory.setDefaultDateFormat(new ExtendedStdDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS")); ObjectMapper mapper = factory.createJacksonObjectMapper();toJSON(value),fromJSON(json, type)—mapper.writeValueAsString(value),mapper.readValue(json, type)createJacksonObjectMapper(types, mode)and the forms that taketypes— a factory withsetOverrideClasses(Set.of(types))andsetDefaultTypingMode(mode).toJSONusedJAVA_LANG_OBJECT, andfromJSONusedDISABLEDsplitJSON(json)—mapper.readTree(json).properties(), writing each value withmapper.writeValueAsString
A rule that imports
JsonUtilsin an Environment table fails to compile withIdentifier 'JsonUtils' is not found.Importorg.openl.rules.serialization.JacksonObjectMapperFactoryBeaninstead and call the mapper, as innew JacksonObjectMapperFactoryBean().createJacksonObjectMapper().writeValueAsString(value). - More deprecated Java API is removed. Rewrite the calls:
new RulesDeployerService(Properties)—new RulesDeployerService(properties::getProperty)RulesDeployerService.deploy(File, boolean)—deploy(file.toPath(), ignoreIfExists)DeployStrategy.fromString(text)—DeployStrategy.valueOf(text), which reads notrue,falseor blank textDefaultTypingMode.EVERYTHING—NON_FINAL_AND_ENUMS, as described for administrators belowJacksonObjectMapperFactoryBean.setSimpleClassNameAsTypingPropertyValue(true)—setJsonTypeInfoId(JsonTypeInfo.Id.NAME)new OpenLServiceFactoryBean()withsetProxyInterfaceandsetServiceName—new OpenLServiceFactoryBean(proxyInterface, serviceName); a Spring XML file passes both as<constructor-arg>PublisherType.WEBSERVICEin@QualifyPublisherType— remove it from the list. No publisher of that type exists, so a field, a method or an entity qualified for it alone was never filled or storedBranchRepository.createBranch(projectPath, branch)—createRepositoryBranch(branch, getBranch())BranchRepository.createBranch(projectPath, branch, startPoint)—createRepositoryBranch(branch, startPoint)BranchRepository.deleteBranch(null, branch)—deleteRepositoryBranch(branch); any other project path was rejected alreadyBranchRepository.getBranches(projectPath)—listBranches(), which it returned already
A repository plugin that overrides one of the removed
BranchRepositorymethods with@Overrideno longer compiles; delete the override. - A Maven build can no longer extend the WAR of OpenL Rule Services. Maven Central has no
waroforg.openl.rules.ruleservice.wsand noorg.openl.rules.ruleservice.ws.allororg.openl.rules.webstudioat all, so awardependency on them no longer resolves. Build the extension as a JAR file with theorg.openl.rules.ruleservice.wsdependency in theprovidedscope, and put it intoWEB-INF/libof the web application, as the Advanced Configuration guide describes. The jar oforg.openl.rules.ruleservice.wsand the other libraries stay in Maven Central. A build of OpenL Tablets from source installs the OpenL Studio war asorg.openl.rules.studio:studio-backend. - The OpenL Maven Plugin names the deployment archive after
finalName. ThedeploymentNameparameter is deprecated for removal, has no effect and logs a warning. The archive of a project that depends on other OpenL projects is always<finalName>-deployment.zip, and OpenL Rule Services deploy it under the name<finalName>, whichopenl:deploylooks for as well. Remove<deploymentName>from the plugin configuration — thepom.unused-parametersstep ofopenl:migrateremoves it, together with<deploymentPackage>and the parameters the plugin no longer declares — and updateruleservice.datasource.deploymentsfilters, clients and links that used the old name.
Administrators
-
Groovy 6 requires Java 17 or later, which OpenL Tablets already exceeds — it requires Java 21. No JDK change is needed.
-
Groovy 6 occupies more heap at rest than Groovy 4. A deployment whose maximum heap is tuned close to its previous usage should re-measure before upgrading. For scale: the memory-constrained suite in OpenL’s own build runs under a 61 MB cap and needed 2 MB more to pass on Groovy 6.
-
groovy.use.classvalueis now a mode, not a flag. Groovy 6 readstrue(the default) andsoftas keeping the class-metadata cache backed byjava.lang.ClassValue; any other value selects the map-based cache. Setting it tofalsekeepsClassValueout of the cache, which is what avoids the classloader pinning behind the metaspace leak of GROOVY-12142; thesoftmode added by GROOVY-12281 keepsClassValuebut lets its entries be reclaimed. Groovy 5 ignored the property altogether, so a deployment that set it while passing through 5.x on its own should confirm the value again. -
rules.tree.view.defaultandrules.tree.vieware no longer read. A default order set for all users in the application properties has no effect; remove it. -
The restore comment template names the pattern of its date:
{datetime:MM/dd/yyyy hh:mm:ss a}. A bare{datetime}is now written in ISO 8601, such as2026-10-29T18:20:19Z, and a pattern ofDateTimeFormatterafter a colon writes it another way. Either is written in UTC, whereas the comments were written in the time zone of the server before: on a server outside UTC, a new comment names the same moment at another hour. The default template keeps the pattern the comments were written in before. On the first start, OpenL Studio moves the pattern of the removed date and time settings into the restore comment templates it keeps: a saved template with a bare{datetime}takes that pattern, orMM/dd/yyyy hh:mm:ss awhere none was set, and where the installation set a pattern of its own, the design repositories that kept the default template take it too. A pattern with letters a comment does not write — a time zone, oru, whichSimpleDateFormatread as the day of the week — is not carried over: the log names it, and the template takesMM/dd/yyyy hh:mm:ss a. A template set in the environment or inapplication.propertiesis not changed; give it a pattern yourself. -
data.format.date,data.format.timeanddata.format.datetimeare removed, and with them Date Format and Time Format of the System section. A value left in the application properties has no effect; remove it.GETandPUT /rest/admin/settings/systemno longer carrydatePatternandtimeFormat. Every screen shows a date as the regional settings of the web browser of the user do, and each user picks a format of their own in My Settings, under Date & Time. -
ruleservice.datasource.deploy.classpath.jarstakesNEVER,IF_ABSENTorALWAYSonly. ReplacetruewithIF_ABSENTandfalsewithNEVER, the values they stood for. Withtrueorfalse, OpenL Rule Services publishes no service, and its log reportsFailed to convert value of type 'java.lang.String' to required type 'org.openl.rules.ruleservice.loader.DeployStrategy'. -
The
EVERYTHINGdefault typing mode is removed, as Jackson deprecated it. A service fails to deploy whenruleservice.jackson.defaultTypingModeorjackson.defaultTypingModein itsrules-deploy.xmlisEVERYTHING.NON_FINAL_AND_ENUMSis the closest mode: it writes the type of every value except a value of a final class, such asLongorLocalDate. Theconfig.deploy.jackson-typingstep ofopenl:migrateand the Migrate button of the Deploy Configuration tab in OpenL Studio put it in place ofEVERYTHINGinrules-deploy.xml. -
ruleservice.jackson.simpleClassNameAsTypingPropertyValueis no longer read, norjackson.simpleClassNameAsTypingPropertyValueinrules-deploy.xml. It turned theCLASStype id intoNAME, which is the default ofruleservice.jackson.jsonTypeInfoId. A service that setsjackson.jsonTypeInfoIdtoCLASStogether with it now writes and expects full class names; setjackson.jsonTypeInfoIdtoNAMEinstead. Theconfig.deploy.jackson-typingstep ofopenl:migrateand the Migrate button of the Deploy Configuration tab remove the setting fromrules-deploy.xmland, where it wastrue, setjackson.jsonTypeInfoIdtoNAMEunless it names a type id other thanCLASS. Whererules-deploy.xmlsets no type id, they setNAMEtoo, so a service whoseruleservice.jackson.jsonTypeInfoIdis another id, such asMINIMAL_CLASS, needs that id injackson.jsonTypeInfoIdinstead. -
Repoint anything that routes or allows
/web. Check reverse-proxy location blocks, ingress rules, API gateway routes, WAF path rules and thecors.allowed.originsconsumers for/web, and change them to/rest. A proxy that forwards/web/wsor/rest/wsfor the WebSocket must forward/wsinstead, with the upgrade headers and an idle timeout long enough for a connection that stays open. It no longer shares a location with/rest. -
The
sse-algorithmof an AWS S3 repository now encrypts the objects, and the newsse-kms-key-idchooses the KMS key. Before, OpenL only saved the value in the metadata of each object, so the default encryption of the bucket applied whatever the value was. Now every object that OpenL writes is sent with the algorithm. Objects written before the upgrade keep their encryption.- With
aws:kmsoraws:kms:dsse, grant the identity that OpenL uses thekms:GenerateDataKeyandkms:Decryptpermissions on the key. - Clear the setting for a storage that is compatible with S3 but does not support the algorithm, because it refuses the writes.
- A value that the S3 API does not define, such as
AWS_KMS, or a key set for another algorithm is refused. OpenL Rule Services does not start, OpenL Studio does not save the repository settings, and a repository that is configured in the properties file is shown as failed, with the reason in the log. - OpenL Studio saved the text
nullwhen None was chosen. It is read as no algorithm, and the next save of the repository settings removes it.
- With
-
An e-mail verification link deployed under a context path containing
webis fixed. With the default/webstudiocontext path the link previously lost that path and did not resolve. No action is required beyond upgrading; a link sent by an earlier version stays broken. -
Download the WAR files from the GitHub release, under new names. The release
7.0.0on GitHub holdsopenl-studio.war,ruleservices.warandruleservices-all.war, the formerorg.openl.rules.webstudio,org.openl.rules.ruleservice.wsandorg.openl.rules.ruleservice.ws.allWARs. Each is signed in the.ascfile of the same name with the key that signs the Maven Central artifacts. Repoint every script and pipeline that downloads a WAR from Maven Central, such ashttps://github.com/openl-tablets/openl-tablets/releases/download/7.0.0/openl-studio.warin place oforg/openl/rules/org.openl.rules.webstudio/7.0.0/org.openl.rules.webstudio-7.0.0.war. A servlet container takes the context path from the file name, so deployopenl-studio.waraswebstudio.warto keep the/webstudiopath. The Docker images and the DEMO package need nothing. -
OpenL Studio neither shows nor changes the build files and the files of version control systems. The new setting
repository.ignored-paths, Ignored Paths in the System section of the administration, lists them: by default the files of Git, such as.gitignoreand the.githubfolder, the Maven filespom.xml,mvnwand.mvn,.dockerignore, and the files of Subversion and CVS. The.gitfolder is always ignored.- The
pom.xmlof a project is no longer listed, exported in a ZIP archive or deployed, and a save of the project keeps it as the repository holds it. A tool that read it from a deployment or an export reads it from the repository. - A project uploaded as a ZIP archive leaves these files out, as it left out
.svn,CVSand.cvsignore, now whatever their letter case. - In a Git repository, a revision that changes only these files, such as a version bump in
pom.xmlmade by a CI pipeline, is a technical revision: the history of the project hides it unless technical revisions are shown. - Clear the setting to show these files again. To add the build output folder, such as
target, keep the defaults by referring to them:repository.ignored-paths = ${repository.default-ignored-paths}, **/target/**.
- The
-
A folder without
rules.xmlis no longer a project by default. OpenL Studio used to list a folder of a design repository with folders, such as Git, as a project when its root held an Excel file. Now only a folder withrules.xmlis a project, unlessproject.detect-by-excel-filesistrue, Detect projects by Excel files in the System section of the administration. Turn the setting on, or addrules.xmlto such projects, to keep them listed. A repository that keeps projects as archives, such as a database or AWS S3 repository, is not affected. -
OpenL Studio starts its MCP server on a free port of the loopback interface. OpenL Studio serves the server at
/mcpof its own address; the Docker image carries Node.js, and a WAR deployment starts the server when Node.js is on thePATH. Setmcp.enabled=falseto keep the server off. A reverse proxy in front of OpenL Studio that forwards only the paths of the application needs/mcptoo, so that AI agents reach the server.
Testing Recommendations
After upgrading, verify in a non-production environment:
- Every project that carries a
groovy/folder compiles and deploys. - A service published from such a project answers as it did before.
- Heap headroom, if the maximum heap is set close to the previous usage.
- A client that calls the OpenL Studio API answers on
/rest, and its WebSocket connects to/ws.