question

bcolmery avatar image
0 Likes"
bcolmery asked bcolmery answered

Pull Quantities by Case

I'm trying to pull from a list, and determine the quantity to pull based on a "CartType" label value.

Entries on the list:

1724166629130.png

My Pull from List activity is setup as follows:

1724166747667.png


I'd like to set this up with such logic that if the first item in the queue is CartType "L_RACK", I can only pull qty 1. If the first item in the queue is CartType "IGU_CART", then I can pull up to 4 tokens with the same label value regardless of their position in the queue.


This setup is giving me an error saying the CartType label does not exist on the token at the pull activity.

FlexSim 24.0.2
pull from listtoken labelsquantity by case
1724166629130.png (7.8 KiB)
1724166747667.png (125.6 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.

Jacob W2 avatar image Jacob W2 ♦ commented ·

Hi @bcolmery,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

If your model contains sensitive information, you could first toggle your post as private using the "make private" option under your question's "gear" menu. Private questions are visible only to site moderators. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

bcolmery avatar image
0 Likes"
bcolmery answered

Hey @Jacob W2,


Thanks for commenting - I actually spoke to technical support offline about this issue. We resolved it by using the process flow logic in the images and description below:


Essentially we pulled 1 token from the list, ran it through a "Decide" activity to inspect the "CartType" label, then split the activity from there. If CartType == "IGU_CART" was true, I could pull up to 3 more items (inserted in front of array). If CartType condition was not true, I would take that originally pulled token and move to the next step.


1724353169804.png

1724353273558.png


1724353169804.png (16.8 KiB)
1724353273558.png (96.7 KiB)
5 |100000

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