I have this variable called ListItems
in Camunda 7.16 on Java 14. The variable Type based on the Variables tab is an Object
and its value says java.util.ArrayList
. I’m stumped as I tried to get the item count in ListItems
as a parameter in http-connector
payload with Assignment type of String or expression.
{
"ProcessNo": "${execution.processBusinessKey}",
"TotalItem": "${S(ListItems).length}"
}
I have tried the following: ${S(ListItems).length}
, ${S(ListItems).length()}
, ${S(ListItems).size()}
, ${(ListItems).size()}
, and a the following Script Task (in Inline Javascript)
execution.getVariable("ListItem").size();
I’m running out of idea what to try next.