Hello,
I'm trying to figure out how to take a decision (using Process Flow), based on the content of a Queue.
Situation:
In the attached model the operator has a specified task sequence to:
- check if Queue2, connected to the processor, is empty, if this is the case an item is generated in Queue1 and this has to be transported to Queue2 by the operator. Same for Queue3 and 4: if Queue3 contains an item, this has to be transported to Queue4. In case there is no item in Queue3 the operator can continue his task by going directly to the next cell.
- similar to the first cell, the operator has to check if Queue6 is empty, if this is the case an item will be generated in Queue5 and has to be transported to Queue6 by the operator. If not, the operator must check if there is an item in Queue7. If this is the case he has to transport it to Queue8, if not he can continue to travel to processor3.
- after doing this task sequence he will travel back to the first cell and check the status of Queue2 again and the sequence restarts.
Unfortunately I don't know the correct syntax to check if a Queue is empty. (I hope this can be solved easily by using default Process Flow logic rather than making a complete script or custom code, since I'm a newbie)
For example for the first decision, I tried to use: getvarnum(Queue2, "Queue2.subnodes.length")>0 as condition but this doesn't seem to work. Can someone help me out?
Thanks.