Use a local variable in a Java step

Hi,

I have an activity where I used a local variable to process some data. Can I capture the value of that local variable in an activity step using tools.getParamValue()

Thanks

Russel | Junior Pega Engineer

Hi, @RusselK1

If you have declared a local variable in the Parameters tab, then you can use the variable directly in your java step like java variables with the variable names. tools.getParamValue() is not needed for local variables.

Let us know if you have any more queries.