question

Yu Y avatar image
0 Likes"
Yu Y asked Ben Wilson commented

Copy Current.labelname Before and After a process

Hi! How can I identify a current.labelname when an item arrives at a processor and copy it after the process is finished? As illustrated in the picture, current.labelname A is created at processor 1. When the item reaches processor 5, I want to keep the item's current.labelname so that it goes to process 4 after being processed by processor 5. (Likewise, I create current.labelname B at process 3, and want the item with current.labelname B go to processor2 after being processed by processor 5).

current labelname prac.fsm

FlexSim 18.1.2
flexsim 18.1.2labelname
· 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.

David Seo avatar image David Seo commented ·

@Yu Y

DO you understand 'current' meaning of current.labelname is to point the resource not item?

Yes. 'current' means 'Processor' resource not item.

Can you identify item.labelname with current.labelname?

What is your exactly question?

Do you want to send the flowitem to have 'current.A' value from Processor1 to Processor4?

And Do you want to send the items to have the value of 'current.B' from Processor3 to Processor2?


2 Likes 2 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Yu Y, was Jeanette F's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered Jeanette F edited

Hello @Yu Y,

The label "Type" that is set "On Creation" in Source1 can be the label that decides the path the flow item takes.

Delete the triggers on Processor1 and Processor3. Set the same expression for output on Processor5 that you did on the Source1.

If needed you can switch the order of connecting processors from Processor 5.


1618119623746.png (13.0 KiB)
1618119672990.png (9.4 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.