Reputation: 573
'if' controller is skipped.
I need to check size of contents in a variable, and if size > 0 action should be taken
${__groovy(${WorkflowActivities}.size() > 0)}
This is the condition added in if controller
But if controller is not working
Upvotes: 0
Views: 546
Reputation: 58774
EDIT
Although below condition works for me, try a "Java" version
${__groovy(Integer.parseInt(vars.get("WorkflowActivities")) > 0)}
I think your value is a number saved as String when extract from JSON. So you just need to convert it:
${__groovy(vars.get("WorkflowActivities") as int > 0)}
Upvotes: 3