question

Beatriz Spaggiari avatar image
1 Like"
Beatriz Spaggiari asked Beatriz Spaggiari answered

Problem in Conditional label in "Resource(s) Assigned To" at Release

I'm have some problems with the Release in Process Flow.

I need to set up a generic Release, which checks if the resource has been allocated, if so, deallocates, otherwise not. To do this, I'm trying to use a conditional label in "Resource(s) Assigned To" at Release, which evaluates whether the resource's label exists in the token, if so, the resource has been allocated and must be deallocated, if the label does not exist, the resource has not been allocated and the token must bypass the Release, but it is not working.

If the Release activity was designed to not thrown any exceptions or make any complaints if you pass it a label that doesn't have an associated Resource. What could be happending?

Thanks in advance.

FX_ConditionalRelease.fsm

FlexSim 21.1.2
process flowflexsim 21.1.2
· 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.

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

You need to return the label node and not the value on the label node:

  1. token.labels["equip"]

not

  1. token.equip

fx-conditionalrelease_fixed.fsm


5 |100000

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

Beatriz Spaggiari avatar image
0 Likes"
Beatriz Spaggiari answered

Thank you very much for your help. It allowed me to solve the problem.

5 |100000

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