question

SudheerReddy avatar image
0 Likes"
SudheerReddy asked SudheerReddy edited

Labels access on Parents Only

In the below image Label Access on Parent Only checkbox is checked and I clicked the child token id:2 which is at Wait for Event: Process Time it is showing as (P+)processTime as 2

In the below image Label Access on Parent Only checkbox is not checked and I clicked the child token id:2 which is at Wait for Event: Process Time it is showing as (P+)processTime as 2

Now I added activity Custom Code as shown in below image and print (token.processTime); statement is used for both scenarios(with and without label access on parent) as explained above. Both are printing 2 in output console.

My question here is, if both Label Access on Parent Only with or without checked are doing the same thing as shown in above images. What is the real difference or advantage of having the checkbox which I am missing to understand.

I am attaching the model for your reference

31.fsm

FlexSim 20.0.0
sub flow
laonp.jpg (78.9 KiB)
lap.jpg (77.4 KiB)
ptri.jpg (74.5 KiB)
31.fsm (33.6 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.

1 Answer

Brandon Peterson avatar image
0 Likes"
Brandon Peterson answered SudheerReddy edited

@Sudheer R The "Label Access on Parent Only" option is used when you want all the label commands (read, write, etc.) to be done on the parent token only. If this option is not set then the "Parent Label Access" option will be enforced. The default setting is "Read" and this means that any read label commands on the child will read the value of the label on the parent if the label does not exist on the child (as indicated by the "P+"). However write commands will create a new label on the child if the label does not already exist and will never affect the parent. The "Read / Write" option will read and write to the parent if the label does not exist on the child. If the label does not exist on the child or parent then a write command will create the label on the child. The "None" option will not attempt to read or write to the parent if a label does not exist on the child.

In some cases (like yours) there can be very little or no difference between some of the options because the situations that would highlight the differences do not exist. Once you get into situations where you are writing label values on children (especially when you have multiple children) the differences become very obvious and important.

I hope this clears things up for you, Brandon

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

SudheerReddy avatar image SudheerReddy commented ·

@Brandon Peterson Thanks for your answer. Could you please share small model if possible for the above answer.

0 Likes 0 ·