How to configure the polling interval of workflows

From Sense/Net Wiki
Jump to: navigation, search
  •  
  •  
  •  
  •  
  • 100%
  • 6.0.2
  • Enterprise
  • Community
  • Planned

Overview

In Sense/Net you can define the Workflow Polling Interval which is a vital setting for workflows containing Delay activities.

Setting this interval to a small value may cause serious performance problems depending on the size of your system. We recommend you to consult with the architect of your system before changing this value.

Steps

1. Open the Web.config file

Open the Web.config file from your webfolder's root.

2. Find the workflow section under sensenet section in Web.config

Under the sensenet section you will find the workflow section (if it doesn't exist you should create that). We use this section for storing workflow specific settings of Sense/Net.

3. Edit the Workflow Polling Interval

You can edit the Workflow Polling Interval by setting the value of the TimerInterval key.

Example

In the following example we've set the value of Workflow Polling Interval to 20 minutes, which means the system will execute delays on workflows in every 20 minutes.

In this case, if you have a workflow with a 5 minute long delay, it could happen, that the delay will expire after 20 minutes (worst case scenario).

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
...
<sensenet>
    ...		
    <workflow>
      ...
      <!-- Polling time in minutes. Default: 10 -->
      <add key="TimerInterval" value="20"/>
      ...
    </workflow>
    ...
</sensenet>
...
</configuration>

Video

Related links

References