question

kkkk avatar image
0 Likes"
kkkk asked Natalie White commented

Record which Processor an item went when using random method

Hi there,

I’ve got a question with global list. I set the item of source be pushed in the list and the processors to pull from the list. As I set the backorder as random like the following picture.

1689223766421.png

Is there any method to record which processor did the items went from the source? The reason that I want to record the flow the item is that I want to do some adjustment to the way that task executers carry. I'm thinking of using the method in this website (https://answers.flexsim.com/questions/132476/how-to-set-the-travel-destination-depending-by-the.html) to label my processors so that every processor will have a unique label I can use to record.


Thank you for any of your assistance

FlexSim 21.2.4
global listrandomlabeling processorrecord processor
1689223766421.png (22.4 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Natalie White avatar image Natalie White commented ·

Hi @kkkk, was David Seo's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

David Seo avatar image
0 Likes"
David Seo answered Felix Möhlmann commented

@kkkk You can solve your issue to assign Sequence Number to flowitem and record the sequence number of the item in the global table or in the processor on entering into the processor.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

kkkk avatar image kkkk commented ·

Hi, thank you for your help! But what I need for the model is to record which random processor was chosen. I wonder if I can use the labeling method (https://answers.flexsim.com/questions/132476/how-to-set-the-travel-destination-depending-by-the.html) so that my processors will have a unique label I can use to record, if possible I wonder how can I record it.

Since I need to use the record data to adjust the job sequence that task executer carry, I'm wondering if I collect the data in the global table, can it be used in the process flow? That my concern is that if I push to list directly it'll be too late to adjust the job sequence.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann kkkk commented ·

How are the items pulled?

If in a process flow, after the pull the token should have a reference to both the item and the processor. Meaning you can add a label to the item that contains information about the processor.

If the items are pulled via the Pull option on the processor, the reference to the pulling object will be available in the Use Transport field of the 'sending' object.

In the attached model, the destination object is assigned to a label on the item and the item is colored either red or blue depending on the processor that pulled it.

(The destination being assigned to a label on the item is actually the default when pushing to an item list in the Use Tnrasport field)

destinationAssignment-fm.fsm

0 Likes 0 ·