Showing posts with label WorkFlow. Show all posts
Showing posts with label WorkFlow. Show all posts

May 7, 2010

Set Task Fields in custom task edit form and access using ExtendedProperties in customWorkflow

I found issue in accessing my custom content type properties set from a custom task edit form back in the workflow. It was so that I was unable to access one of my field in the afterproperties method. It may happen to some of your properties but not all.

Resolution: The trick here is to set the task properties suffixed with some value to ensure that you get it back as it is in the workflow.

Follow this blog post for details:

http://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/f0c66406-7bcb-4f08-b572-5a0bfeac016b/

http://russellmccloy.blogspot.com/2008/04/my-sharepoint-workflow-is-not-seeing-my.html

May 6, 2010

Value cannot be null. Parameter name: s

If you get this error in the workflow activation event while creating sequential or state machine workflow for MOSS 2007, follow the below mentioned steps:

Resolution: You need to bind the workflowProperties object properly. I have mentioned steps below:

In the workflow designer go to your initial state anc clidk on the event driven activity to reach the on workflow activated event

Now in its properties window, notice workflowproperties , it will be empty, from there select the workflowProperties from dropdown. This way it will get binded the next time you try to run the workflow.

Once you do that, it will no longer be null and will give you any serialized data that you require while initiating the workflow.

Feb 9, 2010

Unexpected error on server associating the workflow

You get this error when you try to add a custom created activity into a WorkFlow via SharePoint Designer 2007. The error reads like:

Unexpected error on server associating the workflow
Resolution: This is likely because you forgot to add the concerned DLL as safecontrol in the web.config for the concerned web application. Also see that it is added to section as well.