Try OpenEdge Now
skip to main content
Migrating to OpenEdge 11.7
Migrating OpenEdge Business Process Management : Migrating from OpenEdge 11.6.x and earlier releases : Decision step migration : For the DECIMAL dataslot
 
For the DECIMAL dataslot
*For the DECIMAL dataslot
Table 4. Editing a condition expression for the DECIMAL dataslot
Operation
In earlier releases
In 11.7
equals1
jst.getDataSlotValue(“myDec1”)
.getValue().equals(newjava.math
.BigDecimal(jst.getDataSlotValue
(“myDec2”).getValue().toPlainString())
.setScale(jst.getDataSlotValue
(“myDec1”).getValue().scale(),
java.math.BigDecimal.ROUDND_DOWN))
mydec1.equals(mydec2)
does not equal2
!myDec1.equals(newjava.math
.BigDecimal(myDec2).setScale
(myDec1.scale(),java.math
.BigDecimal.ROUND_DOWN))
!mydec1.equals(mydec2)
less than3
myDec1.compareTo(newjava.math
.BigDecimal(myDec2).setScale
(myDec1.scale(),java.math
.BigDecimal.ROUND_DOWN))<0
com.progress.util.OpenEdgeData
TypeComparisonUtil.isLesserThan
(myDec1,myDec2)
less than or equal to4
myDec1.compareTo(newjava.math
.BigDecimal(myDec2).setScale
(myDec1.scale(),java.math
.BigDecimal.ROUND_DOWN))<=0
com.progress.util.OpenEdgeData
TypeComparisonUtil.isLessOrEq
(myDec1,myDec2)
greater than5
myDec1.compareTo(newjava.math
.BigDecimal(myDec2).setScale
(myDec1.scale(),java.math
.BigDecimal.ROUND_DOWN))>0
com.progress.util.OpenEdgeDataType
ComparisonUtil.isGreaterThan
(myDec1,myDec2)
greater than or equal to6
myDec1.compareTo(newjava.math
.BigDecimal(myDec2).setScale
(myDec1.scale(),java.math
.BigDecimal.ROUND_DOWN))>=0
com.progress.util.OpenEdgeDataType
ComparisonUtil.isGtOrEq(MyDec1,MyDec2)
is unknown7
myDec1==null
mydec1.isNull( )
is not unknown8
mydec1!=null
!mydec1.isNull( )

1 The Decimal literal must be wrapped in the DECIMAL object. For example, com.progress.lang.Decimal(new java.math.BigDecimal(“1234.34”)).
Note: You must use the constructor of the BigDecimal method, which takes a string of the numeric decimal as an argument, and/or initialize the object with a correct scale.

2 The Decimal literal must be wrapped in the DECIMAL object. For example, com.progress.lang.Decimal(new java.math.BigDecimal(“1234.34”)).
Note: You must use the constructor of the BigDecimal method, which takes a string of the numeric decimal as an argument, and/or initialize the object with a correct scale.

3 The Decimal literal must be wrapped in the DECIMAL object. For example, com.progress.lang.Decimal(new java.math.BigDecimal(“1234.34”)).
Note: You must use the constructor of the BigDecimal method, which takes a string of the numeric decimal as an argument, and/or initialize the object with a correct scale.

4 The Decimal literal must be wrapped in the DECIMAL object. For example, com.progress.lang.Decimal(new java.math.BigDecimal(“1234.34”)).
Note: You must use the constructor of the BigDecimal method, which takes a string of the numeric decimal as an argument, and/or initialize the object with a correct scale.

5 The Decimal literal must be wrapped in the DECIMAL object. For example, com.progress.lang.Decimal(new java.math.BigDecimal(“1234.34”)).
Note: You must use the constructor of the BigDecimal method, which takes a string of the numeric decimal as an argument, and/or initialize the object with a correct scale.

6 The Decimal literal must be wrapped in the DECIMAL object. For example, com.progress.lang.Decimal(new java.math.BigDecimal(“1234.34”)).
Note: You must use the constructor of the BigDecimal method, which takes a string of the numeric decimal as an argument, and/or initialize the object with a correct scale.

7 The Decimal literal must be wrapped in the DECIMAL object. For example, com.progress.lang.Decimal(new java.math.BigDecimal(“1234.34”)).
Note: You must use the constructor of the BigDecimal method, which takes a string of the numeric decimal as an argument, and/or initialize the object with a correct scale.

8 The Decimal literal must be wrapped in the DECIMAL object. For example, com.progress.lang.Decimal(new java.math.BigDecimal(“1234.34”)).
Note: You must use the constructor of the BigDecimal method, which takes a string of the numeric decimal as an argument, and/or initialize the object with a correct scale.