Create tokens based on a global table per truck supplier

Create tokens based on a global table per truck supplier

Islas85
Not applicable
26 Views
6 Replies
Message 1 of 7

Create tokens based on a global table per truck supplier

Islas85
Not applicable

[ FlexSim 23.2.1 ]

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?

0 Likes
Accepted solutions (1)
27 Views
6 Replies
Replies (6)
Message 2 of 7

julio_r
Not applicable

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


0 Likes
Message 3 of 7

Islas85
Not applicable

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
Message 4 of 7

Jeanette_Fullmer
Community Manager
Community Manager
Hello @Julio R,

Can you provide support for the follow up question?

0 Likes
Message 5 of 7

Mauricio_Aranda_Delgado
Not applicable
Accepted solution

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!



0 Likes
Message 6 of 7

Islas85
Not applicable
Thanks Mauricio!
0 Likes
Message 7 of 7

borja_lorenzo4278
Enthusiast
Enthusiast

Hello

This question and its solution propused are intesting.

Could you share the model finished?

0 Likes