Hello,
I created a decide activity which will push items to a queue called "PickingStation" only when "PickingStation" is empty. I attempted to do this by creating a label called "StationCapacity" which would count how many flowitems was in "PickingStation" with the code
model.find("PickingStation").as(Object).subnodes.length
but it is always returning a value of 0. Is there a better way to determine if there is items in "PickingStation"? I've attempted to set the max limit on the queue named "PickingStation" to 1, but items are still able to be placed into the queue via my process flow. Model attached below