Hello everyone,
I'm pretty new at this but I have started creating a model that has three types of items. The first queue send items 1 and 2 and the second one the item 3. Basically, the operator picks the items from the queues and put them in the processor. What I would like to do is to change the preempt value of task No.1 (move items from queue 1 to processor 1) based on the item value.
The operator is sent to the queues through the dispatcher using a pass to "first available unless preempting" and a "sort by task sequence priority" strategy. Additionally, the task sequence logic is in the queues.
I guess the logic would be something like:
int value = getitemtype(item); switch(value) { case 1: setpreempt(ts,100); break; case 2: setpreempt(ts,100); break; default: return(0); }
But, in case is correct, where does this logic goes? On the queue's Flow ? On a trigger? on the same code as the task sequence creation? or in the same dispatcher?
I would appreciate your help.
Thanks in advance.