I have two ParkingLot namely parkinglot1 and parkinglot2. Please refer to the image below
I have used a collection namely (parkingSpaces). And in the carSource block I am using the following to select the parkinglot with free space available. Please see image below,
But this is not working.
instead do this:
findFirst(parkingSpaces,p->p.nFree()>0)