question

Josué Islas avatar image
0 Likes"
Josué Islas asked Borja Lorenzo commented

Create tokens based on a global table per truck supplier

process-flow.pngImage CaptionCross-Docking-Case1-Processflow v2.3.fsmglobal-table.pngOnce the supplier truck reaches the unloading conveyor, how can I generate tokens from the global table "Mercancia" based on the Quantity (Cantidad) column and assign the Supplier (Proveedor) and Customer (Cliente) labels to the items tokens?

FlexSim 23.2.1
process flowglobal tablecreate tokens
5 |100000

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

Mauricio Aranda avatar image
0 Likes"
Mauricio Aranda answered Josué Islas commented

Hello, Josué.

I understand that you want to create tokens depending on data. In this case you can achieve this by creating a global table like "Mercancía", and add the information, for example:
5 tokens from supplier 5 that go to client 7, and 3 tokens from supplier 5 for client 8.

1716396139273.png

Then with a "create tokens" you create as many tokens as rows you may have. With a label "Order" that uses the command "creationRank". This assigns a number in the order they were created. For example:

1716396296253.png

Finally to create 5 tokens from supplier 5 that go to client 7, we can use a RunSubFlow that creates the quantity "tokens" on the global table: For example: Table("ExampleMERCANCIA")[token.Order][1]

1716396526452.png

Finally, you can assign the labels you require, for example:

1716396649408.png

¡Hope this helps!




1716396139273.png (3.3 KiB)
1716396296253.png (43.7 KiB)
1716396526452.png (33.6 KiB)
1716396649408.png (35.8 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.

Josué Islas avatar image Josué Islas commented ·
Thanks Mauricio!
0 Likes 0 ·
Julio R avatar image
0 Likes"
Julio R answered Borja Lorenzo commented

Hello Josué,

You could use the same token you used to travel the truck to create more tokens based on the table using the create token activity and a start as the destination for the new tokens.

In that same option you could use the Assign labels to created tokens options to copy any information you want in your new tokens.

1715969958721.png



1715969958721.png (74.1 KiB)
· 3
5 |100000

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

Josué Islas avatar image Josué Islas commented ·

Thanks Julio!, but how do I do in "Create token", for example, create 5 tokens from supplier number 5 with supplier with client number 7 and 3 tokens from the same supplier number 5 with client number 8 (table "Mercancia")? since when trying to give a value in Quantity using By Global Table Lookup it can only give me the value of one row per truck token.

0 Likes 0 ·
Borja Lorenzo avatar image Borja Lorenzo Josué Islas commented ·

Hello

This question and its solution propused are intesting.

Could you share the model finished?

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·
Hello @Julio R,

Can you provide support for the follow up question?

0 Likes 0 ·