You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

"An unknown error occured" in groovy while accessing substitution variables

Received Response

Content (required):

Hi guys!

There is a small issue. I am trying to access substitution variable which contains empty,Freeze,Freeze,Freeze as highlighted in the below image.

For this, I have used operation.application.getSubstitutionVariable('Sub_freeze_unfreeze').getValue() 

and then used split(",") to store it as an array in a variable current_freeze_unfreeze.

So, I am getting the expected output which is [empty,Freeze,Freeze,Freeze]

Now, I need to change the array to [empty,Freeze,Unfreeze,Freeze] .

But, when I am using = , An error is being encountered as below.

Line 60 is highlighted in the full code below.

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!