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.

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