Some processes that use GEL are not completing in Clarity. If you create a process with just a start and finish step, and nothing else, the process completes successfully, but those using GEL are not completing.
This can happen if the util:sleep command is in the gel scripts.
You should avoid using util:sleep in GEL scripts. This tag puts the thread executing the GEL script to sleep. There are 15 GEL threads allocated per Process Engine instance. If all 15 are sleeping, other GEL steps will be unable to execute and processes will appear to hang. Having most or even some of your gel threads sleeping can cause slow performance on your process engines.
Any Clarity environment that uses processes with gel scripts
Short Term Solution:
The problem with restarting the bg process one or more times to resolve this problem is that the problem is likely to reoccur. The more gel script processes you run using this tab, the more likely this problem is to reoccur.
Long Term Solution:
We at Broadcom Support strongly discourage using this tag.
Instead of using util:sleep a better way is to move the check to a post condition. Assuming your GEL script is trying to monitor the step completion in some other process instance you could have that process set a flag/value on an object that can trigger an event that the post condition in your monitoring process can detect before it moves on.
That may mean breaking your existing process and GEL script into multiple pieces rather than one bigger process.
That may also mean your process logic needs to be rethought to use a custom object or custom attribute on some other object that can used in your process in a post condition.
STEPS TO TROUBLESHOOT: