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

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

SimFlex_support
Advisor Advisor
624 Views
6 Replies
Message 1 of 7

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

SimFlex_support
Advisor
Advisor

[ FlexSim 17.0.3 ]

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.

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

rodrigo_lamas
Not applicable

@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
Message 3 of 7

jeff_nordgren
Not applicable
Accepted solution

@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

Message 4 of 7

SimFlex_support
Advisor
Advisor

Dear @Jeff Nordgren

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

5847-sendmessage-itemcreation.png

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

SimFlex_support
Advisor
Advisor

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

SimFlex_support
Advisor
Advisor

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

SimFlex_support
Advisor
Advisor

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

I fix the above model bug.

moveobject() call deleted OnMessage trigger.

0 Likes