Creating Workflow Task - Visual Studio 2005 Workflow Designer

Hi,

I am new to sharepoint development and I am now writting a workflow with Visual Studio 2005 Workflow Designer. After doing thousands of searching I have fixed the problems on settings.

With a very bad debugging method (manually debugging...), I have found that the createtask activity has caused an error. I have already set the required fields in the invoked method. When I looked into other samples, all of them have task forms with the activity. Now my question is: Is it a must to create an Infopath form before nvoking the create task activity? Or, is it possible to use default task forms in Sharepoint? Actually I just want to create a task in the task list used for the workflow and I do not need a custom form.

By the way, could anyone tell me where can I debug the workflow in a better way? Is there any error log placed somewhere? I have searched for some topics in the forums and it seems that there is no way to do so...

Thank you very much.

Jensan

[1050 byte] By [Jensan_Ahsay] at [2007-12-31]
# 1

Hi Jensan

i) It's totally possible to use the default workflow task forms in Sharepoint. All of my workflow tasks work this way.

ii) Visual Studio debugging of workflows is supported. Check out the SDK doco.

iii) You'll find the ULS logs located at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Logs.

NickCox at 2007-9-7 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Development and Programming...
# 2

Thank you for the answer.

However after looking into the default forms I have found that I can't add custom columns to the form...

The SDK doco link is useful. Thank you.

Jensan_Ahsay at 2007-9-7 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Development and Programming...
# 3
In SharePoint, how to use default task form for my custom workflow which I created using Visual Studio workflow designer?
srik at 2007-9-7 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Development and Programming...
# 4

Just remove the form tags in feature.xml, and remove the InitializationUrl, xxxUrl, etc. except the StatusUrl.

However I do recommend you to use custom forms, or just use the C# code to perform the actions. The default forms are too tight and I can't be satisfied with that.

Jensan_Ahsay at 2007-9-7 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Development and Programming...

SharePoint Products and Technologies

Site Classified