Release Token Activity Issue: when target activity not found

Release Token Activity Issue: when target activity not found

chanykE2WUT
Collaborator Collaborator
522 Views
4 Replies
Message 1 of 5

Release Token Activity Issue: when target activity not found

chanykE2WUT
Collaborator
Collaborator

[ FlexSim 22.1.4 ]

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

0 Likes
Accepted solutions (1)
523 Views
4 Replies
Replies (4)
Message 2 of 5

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

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.

0 Likes
Message 3 of 5

chanykE2WUT
Collaborator
Collaborator
@Jason Lightfoot thanks

David

0 Likes
Message 4 of 5

Matthew_Gillespie
Autodesk
Autodesk

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



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 5 of 5

chanykE2WUT
Collaborator
Collaborator
0 Likes