question

Maíra A avatar image
0 Likes"
Maíra A asked Joerg Vogel commented

How do i create 3 labels at the same time from 1 to 3, in this order?

My problem is: I want to start my process with 3 diferents types of the same label at the same time. What kind of statistical distribution or configuration can i use for that? I know that i can use the decide to receive this answer, but i need to optimize that in case that i need to input more than 3 types.

FlexSim 19.0.0
assign labelscreate labels
· 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.

Maíra A avatar image Maíra A commented ·

This is the example.

0 Likes 0 ·
duvida1.png (12.0 KiB)
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

The data is a variable value declared at the scheduled source activity at Assign Labels in the source code editor. You will find often necessary values in the source code editor under the parchment roll icon at the picklist option of a field.You need not write the right source code just copy the variable name to the Value field.

You need the value of "tokenIndex".

scheduled-source-activity-indexed-token-at-arrival.fsm


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

Joerg Vogel avatar image Joerg Vogel commented ·

@Maíra A, it looks so clever, but experienced users just know to look into the source code editor. And they look often into the manual, mostly at the FlexScript Class Reference. They combine the variables and methods and properties of the classes to get answers. Naturally they do the tutorials to understand what new features are in FlexSim. And they hope that a new article shows at answers.flexsim.com how to use a new module

0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Maíra A commented

A sub flow activity can act as a loop structure, where you can assign labels simultaneously in Process Flow. The quantity of labels is a parameter of the sub flow activity. A local variable "creationRank" holds the index of created sub flow tokens. The attached model uses this index to set different names in a source code.create-labels-simultaneously.fsm


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

Maíra A avatar image Maíra A commented ·

Thank you, Jörg! And sorry for the misunderstanding, I don't think i was very clear, i want to create just one label with 3 diferents values, from 1 to 3, at the same time. Do i make myself more clear now?

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.