Chox’s Blog

Chox juga mau belajar nge-blog

Update Task via Console Application

The case is to update task that created from an instance of workflow, using console application.

The common mistake is used method of Update from SPListItem.

And the result is the task actually already updated, but the workflow has been ‘hung’ in this situation. The OnTaskChanged is not triggered. And the workflow has been stop with ‘due to heavy load‘ issue.

To solve this problem, we should use SPWorkflowTask.AlterTask instead. Make sure to give true value to the third parameter. And the workflow will be run normally again.

 

*Happy Independence Day

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: