Volodymyr Babak
6f75542315
fix(cf): prevent integer overflow in calculated field SUM output
SimpleCalculatedFieldState.formatResult cast the double result down to
int via TbUtils.toInt when "Decimals by default" was 0 (the UI default).
BigDecimal.intValue() returns only the low-order 32 bits, so a sum
above ~2.1B wrapped to a negative number (e.g. 3,980,173,734 ->
-314,793,562).
Add TbUtils.toLong(double) alongside toInt (toInt is left untouched to
preserve TBEL script behavior), switch the CF precision=0 path to it,
and add a Long branch in createResultJson so the JSON node is emitted
as a numeric long
2 months ago
dashevchenko
1b8a25d568
fixed MAX aggregation for negative double values
3 months ago
Sergey Matvienko
77502b6c6c
tests: ensure parseBytesTo methods do not alter input data
5 months ago
Viacheslav Klimov
8f9c4b70d7
Migrate to Java 25
Co-Authored-By: Claude <noreply@anthropic.com>
6 months ago
IrynaMatveieva
0e9756f8ce
moved number utility method to a new utility class
6 months ago
IrynaMatveieva
bf656d2926
created new number utils class
6 months ago
Viacheslav Klimov
295e7d68c9
Update license headers
7 months ago
Viacheslav Klimov
5b5b4dff6b
Update license header
7 months ago
IrynaMatveieva
4e2b4fc921
added getLatestTs method and added tests
8 months ago
IrynaMatveieva
958e44f7d6
set ts -1 when default value used
8 months ago
IrynaMatveieva
a39f24ae6e
remove unnecessary maps and methods
9 months ago
IrynaMatveieva
7c886840ce
refactoring
9 months ago
IrynaMatveieva
c46d2f0415
added related entities argument entry implementation
9 months ago
IrynaMatveieva
d97d932cfb
refactoring
9 months ago
IrynaMatveieva
899dd9002b
removed single agg argument and updated old single value argument
9 months ago
IrynaMatveieva
a585a3b9e6
minor refactoring
9 months ago
IrynaMatveieva
f667f0f23f
(wip) aggregation cf
9 months ago
dshvaika
ce3b89046b
propagation cf init commit
10 months ago
dshvaika
faf842f998
Updated toTbelCfArg implementation for GeofencingArgumentEntry
11 months ago
dshvaika
c8490080a1
added basic logic to update state periodically
12 months ago
nickAS21
5f6cc76d11
tbel: reName createSetTb to newSet and to toSet
1 year ago
nick
baf68bbbfc
tbel: refactoring
1 year ago
nick
edba3517da
tbel: add ExecutionArrayList with methods: add, addAll, remove, clear, sort, toSorted, toList
1 year ago
Dmytro Skarzhynets
a0e8b01429
Add tests for compilation errors when evaluating scripts
1 year ago
Dmytro Skarzhynets
69964a2413
Make script compilation errors unrecoverable during rule node initialization
1 year ago
IrynaMatveieva
da90d8f727
changed msgTs to latestTs
1 year ago
nickAS21
758ed0f189
tbel: Add utility methods to check for Map, List, and Array types in TbUtils
1 year ago
IrynaMatveieva
dd493d1f52
added tests
1 year ago
Sergey Matvienko
2a50e2eaa5
AbstractScriptInvokeService: validate script refactored
1 year ago
IrynaMatveieva
1869296ff2
added ability to preserve last update ts for calculated value
1 year ago
Sergey Matvienko
26d949d22f
invalidate async js scripts
1 year ago
IrynaMatveieva
56598a5247
added tests and moved to common util
1 year ago
IrynaMatveieva
f0bfea12c0
moved geoutils to script api
1 year ago
IrynaMatveieva
e2fdc5a4ba
added methods for check if point in polygon to tbel
1 year ago
IrynaMatveieva
9b870126f1
added util method
1 year ago
Andrii Shvaika
ee3d405ed8
Adding ctx as first argument in CF
1 year ago
IrynaMatveieva
3365d7f34e
added option to round result for simple type
1 year ago
Andrii Shvaika
933d77427c
Merge function
1 year ago
Andrii Shvaika
6265ff45a8
merge function draft
1 year ago
Andrii Shvaika
ac52098207
CF: merge function draft
1 year ago
Andrii Shvaika
62da129d6b
Review comments fixed
1 year ago
mpetrov
0b44abe121
JS func update
1 year ago
IrynaMatveieva
8c86f7fc12
added tests for rolling methods
1 year ago
IrynaMatveieva
72f26d9fe2
fixed functions
1 year ago
IrynaMatveieva
6f1dd5a2d6
added new methods for working with rolling
1 year ago
Igor Kulikov
5cf26d4851
Update license header
1 year ago
Volodymyr Babak
3c137dec77
TbDate - added functions to add years, months, days, etc.
1 year ago
IrynaMatveieva
e018282d04
minor fixes
1 year ago
IrynaMatveieva
6cf314eaa0
added NaN value when is not number in rolling
1 year ago
IrynaMatveieva
a0331655d1
fixed test script
1 year ago