question

Carmen F avatar image
0 Likes"
Carmen F asked Carmen F commented

How to release resources in a pull production system?

I want to model a pull production system but I don get how release resources properly after pushing tokens to a list. I have attached a model with two example of how I need to release resources (machines):

- example 1: release a resource after "pull from list" activity

- example 2: reselase a resource after pull and after a "create token" activity

Thanks in advance for any help.

example_ReleaseResouce_Pulled.fsm

FlexSim 23.0.0
release resourceprocess flow listspulled token
· 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.

Felix Möhlmann avatar image Felix Möhlmann commented ·

Your model wasn't uploaded successfully. Could you please try again? After uploading the model you should see an attachment below the publish button.

1687943229379.png

0 Likes 0 ·
1687943229379.png (4.5 KiB)
Carmen F avatar image Carmen F Felix Möhlmann commented ·
Done! ;) Thank you.
0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Carmen F commented

Tahnks for uploading the model. Now I see what you mean. The Release activity is indeed a little weird when it comes to releasing resources assigned to a different token. You have to refer to the label node rather than the value.

1687945926450.png

// Returns the value
token.labelName;

// Returns the node
token.labels["labelName"];

// Returns the value (of the node) - must use when label name has spaces
token.labels["labelName"].value;

In the second case, after the Create Token activity, because the child token can access the labels of its parent, you can use the same expression. Even if the child can not normally access the parent's labels, you can still read by shifting the reference to the parent first.

token.parent.pulled.labels["resource"]

1687945926450.png (3.4 KiB)
· 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.

Carmen F avatar image Carmen F commented ·

Thank you so much for the clear answer.

0 Likes 0 ·