question

David Seo avatar image
0 Likes"
David Seo asked Ben Wilson commented

how to create the flowitem with itemtype when 'Create Flowitem' trigger option

A model has about five hundred types of flowitem in the global type.

I will use 'Create Flowitem' in OnMessage of Source or Queue object.

But the trigger script of 'Create Flowitem' has only the quantity and Flowitem Bin rank.

I am using only rank 1 of 'Box' and want to transfer or set one type of five hundreds.

How can I do it?

I need help.

FlexSim 17.0.3
how to create the flow item with item type
· 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.

Rodrigo Lamas avatar image Rodrigo Lamas commented ·

@david.seo maybe try to use another queue trigger, on entry / data / set itemtype and colour options, for example in order to define your itemtype when you receive the message, maybe you can use a percentage, a label or a globaltable information to create your rules. Regards.

0 Likes 0 ·
David Seo avatar image David Seo Rodrigo Lamas commented ·

I tried it from remote queue to the first queue to send message with direct center-link or script find command. But it is not applied, why?

I added the sample model.

0 Likes 0 ·

1 Answer

·
Jeff Nordgren avatar image
1 Like"
Jeff Nordgren answered Ben Wilson commented

@david.seo

Attached is a sample model of how you can assign an itemtype to flowitems that you create in a queue. The modified code for doing that is in the OnMessage trigger of the queue.

createflowitemsfromq-jn1.fsm


· 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.

David Seo avatar image David Seo commented ·

Dear @Jeff Nordgren

Creation item by Send Message Trigger is not possible in the case of the remote sending message. What's the reason?

event-pull-from-list-test-v201703-09-3.fsm

I attached the sample model.

This is related to the issue below.

https://answers.flexsim.com/questions/36462/when-many-queues-want-the-flow-items-to-move-from.html

0 Likes 0 ·
David Seo avatar image David Seo commented ·

Dear @Jeff Nordgren and @Rodrigo Lamas.

I got it.

I found a bug in my script. My model is OK.

I attach my model.

event-pull-from-list-test-v201703-091.fsm

0 Likes 0 ·
David Seo avatar image David Seo commented ·

event-pull-from-list-test-v201703-091-2.fsm

I fix the above model bug.

moveobject() call deleted OnMessage trigger.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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