increment a Big Dec context variable in tMap

0 Kudos

increment a Big Dec context variable in tMap

Hi

I am trying to conditionally increment a Big Dec context variable based on certain field values 

currently I can do this via tJavaRow component, but want to bring this into a tMap - so the logic is centralized

 

this code currently works in tJavaRow 

 

 

AccumulationExampletJavaRow.png

but when I try to code something similar in the Var Expression builder, I receive "Type mismatch: cannot convert from Number&Comparable<?> to BigDecimal"

AccumulationExampleTmap.png

 

I have tried to search online in several places to address this issue but have had zero luck

do you have any advice

 

thank you in advance