We have a fairly basic workflow which determines where a document should be filed away. Part of the workflow is an SDK script, which is used to help determine the folder path where the document will be filed away, assigning a token value using a set of if/then statements.
Every now and then, perhaps one or two per thousand instances, the script activity stays in a Running status, and the instance in a Waiting status, until a user catches it and manually terminates the workflow. At this point, either the user has manually filed away the document, or updated the document which started a second instance which works just fine.
I had read on another post something similar about an SDK script, where it might be an issue with a shared resource. I've attempted to reproduce the issue several ways, but have yet to be able to reproduce it in testing.
Is there another possible issue that might be causing this type of problem, or a way of getting more information about why it is stuck in a running status?
I've attached the script for a reference.
Thank you.