A fix is available
APAR status
Closed as program error.
Error description
Assigning an Integer value to a BigDecimal variable may cause a ClassCastException such as: Error while executing ruleset: java.lang.ClassCastException: java.lang.Integer incompatible with java.math.BigDecimal com.ibm.rules.engine.util.EngineExecutionException: java.lang. ClassCastException: java.lang.Integer incompatible with java. math.BigDecimal Caused by: java.lang.ClassCastException: java.lang.Integer incompatible with java.math.BigDecimal at com.ibm.rules.generated.ruleflow.mainflow$003emyrule. FASTEngine.rule_myrule0(Unknown Source) at com.ibm.rules.generated.ruleflow.mainflow$003emyrule. FASTEngine.executeRule(Unknown Source) at com.ibm.rules.generated.ruleflow.mainflow$003emyrule. FASTEngine.execute(Unknown Source) at com.ibm.rules.generated.fastpath.AbstractFastEngine. execute(Unknown Source) at com.ibm.rules.generated.ruleflow.mainflow$003emyrule. Task.run(Unknown Source) at com.ibm.rules.generated.ruleflow.mainflow.Task.body( Unknown Source) at com.ibm.rules.generated.ruleflow.mainflow.Task.run( Unknown Source) at com.ibm.rules.generated.ruleflow. AbstractGeneratedRuleflowEngine.execute(Unknown Source) at com.ibm.rules.generated.ruleflow. AbstractGeneratedRuleflowEngine.execute(Unknown Source) at com.ibm.rules.studio.rve.launch.main.RveRulesetMain.main( RveRulesetMain.java:67) This may happen with a BAL rule such as: then set myBigDecimal to my integer ; Where "my integer" is a static method returning an Integer value and myBigDecimal is a variable of type BigDecimal.
Local fix
Problem summary
when converting simple type to BigDecimal and BigInteger a cast cannot be used and an explicit operation is required. The generated code does not handle properly this use case.
Problem conclusion
The code is fixed
Temporary fix
Comments
APAR Information
APAR number
RS01731
Reported component name
WS DECISION SVR
Reported component ID
5725B6901
Reported release
851
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2014-09-03
Closed date
2014-09-12
Last modified date
2014-09-12
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
999
Fix information
Fixed component name
WS DECISION SVR
Fixed component ID
5725B6901
Applicable component levels
R851 PSY
UP
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5.1","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
09 February 2022