Monday, April 28, 2014

AgilePoint: Suspect Infinite Loop in process

In AgilePoint we had a couple of processes that need to repeatedly check a certain condition and only continue once true.

Once our workflow was running in production environment, I noticed this error came about quite frequently.

Suspect infinite loop in process xxxx: 
Dear AgilePoint System Administrator, Process instance 'xxxxxx' has been suspended because maximum session was exceeded on Activity 'Wait for 1 hours'. Process Template = 'yyyyyyyy', Version = '1.31' You may check if it is infinite loop.

According to the support documentation, the maximum number of sessions is set to 50 by default,
You could either override this by modifying the netflow.cfg file and performing an IISReset, or just choose to override it in the process template.

To override the settings for a particular process, this is what you could do:


Click on the Ellipse button next to the process property called Maximum Session Allowed.


Check the Custom option and provide your own value.
Save and deploy the changes.

Now your process will have the maximum number of tries extended to 80. Remember to migrate any suspended workflows to the latest version.

No comments:

Related Posts Plugin for WordPress, Blogger...