When items enter a processor I need to check if its a different product than the previous one. And if it is different I need to label the previous one to say that it was the last of that batch. I need that info down the line. I do that check in the Input Pull Requirement.
My problem is that when I check the product coming in, the other one has already left so I can't reference it anymore and label it. And I can't either check in the next objects because the item isn't there anymore and I can't predict where it is now.
I put a pointer label (lastitem) on the processor that records that last node that went through and that works. But then when I try to add a label to that node it doesn't work:
current.lastitem.labels.assert("yourelast").value=1;
Can this work?
Otherwise how could I reference something like "last item that was here" or "previous item" ?
Thanks a lot,