question

David Chan avatar image
0 Likes"
David Chan asked David Chan commented

Release Token Activity Issue: when target activity not found

Hi I have encounter strange issues with Release Token.

If the target activity (In the pic below I set the release token to release from Delay2) is not found in the page, all tokens from their current holding activity such as Pull from List, Decide (Do not release) and Wait for Event are released. Not sure if this is a bug as I will expect an error warning.


The same happens to version 22 & 23 as well.


1696587777874.png


Release Token Issue.fsm

FlexSim 22.1.4
release token
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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered David Chan commented

The reason for this behavior is that gettokens returns all the process flow tokens when the activity is NULL.

getactivity doesn't complain when the activity name doesn't exist, it returns NULL.

If you want more checks then you can edit the trigger to check that the activity first exists.

I can send in a note to the developers to consider adding a check by default since there's clearly an intention to release from that activity name.

· 3
5 |100000

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

David Chan avatar image David Chan commented ·
@Jason Lightfoot thanks

David

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

@David Chan This issue is now fixed in 23.0.12 and 23.2.2

0 Likes 0 ·
David Chan avatar image David Chan Matthew Gillespie ♦♦ commented ·
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.