question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked Matthew Gillespie commented

How does the assign released resource to work?

Hi,

How does the option assign released resource to work in the release resource activity from the people module:

With these settings I expected that a label would be created at the person with the reference to the resource. This is not the case, since I get an exception that the label does not exist. Which I understand, since it does not exist, but I thought that it would be created just like when acquiring a resource. Is that a wrong assumption?

When I noticed that exception I added a assign labels activity to make that label before the release location activity. Now no exceptions are gives, but the label value does not change.

What am I doing wrong here?

Thank you for your time.

ReleasePersonResource2.fsm

(The attached model is with the extra assign labels activity)

FlexSim 20.1.1
labelsflexsim 20.1.1resourcepeoplerelease resource
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Matthew Gillespie commented

This is a bug, specifically with the person keyword. You'll notice that if you switch to the Healthcare environment and try the same thing with the patient keyword it works fine. Thanks for pointing this out. We'll fix this for the next bug fix release.

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

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Jordan Johnson edited

This is a long-standing issue. The issue is that assign-to fields are a little strange. Normally, the code

token.LabelName

returns the value of a label name. However, in Assign To fields, that very same syntax means instead to assert a label on the token, and set the value being assigned to that label.

It turns out that Assign To fields only work this way with tokens. This is explained in the help manual.

https://docs.flexsim.com/en/20.2/Reference/ProcessFlowObjects/SharedProperties/#AssignTo

The correct way to provide a reference label is to use code like this instead:

person.labels.assert("SomeLabel")
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Regan Blackett avatar image
0 Likes"
Regan Blackett answered Patrick Zweekhorst commented

@Patrick Zweekhorst @Matthew Gillespie

I'm not sure why it doesn't work with the "person" reference but, it works with "token".

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

@regan.blackett,

Would you in that case classify this as a bug?

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.