question

Chiheb BM avatar image
0 Likes"
Chiheb BM asked Ben Wilson commented

How can i create new labels that depend on the value of the input labels

for example I have two types of labels "A" and "B" and I want on process finish the "A" becomes "AA" and the "B" becomes "BB". how to fix this problem

FlexSim 20.2.3
triggersset labels on process finishset labels that depend on labels value on entry
· 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.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

here I duplicate name character and value of label on process finish. Label is first in labels view.

  1. item.attrs.labels.subnodes[1].name+=item.attrs.labels.subnodes[1].name; //enhance name
  2. item.attrs.labels.subnodes[1].value+=item.attrs.labels.subnodes[1].value;// duplicate value

duplicate_name_label_value.fsm


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