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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Beatriz Spaggiari , was Matthew G's answer helpful? If so, please click the red "Accept" button at the bottom of one of their answers. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question

0 Likes 0 ·
Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

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

token.labels["equip"]

not

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.