怎么使用createTaskWithContentType?多谢

如何使用createTaskWithContentType?在线等,谢谢!
用vs2010设计sharepoint 2010的工作流,想用aspx实现表单功能,用到createTaskWithContentType。

一直没有调试通。

主要是配置问题,比如xml文件的配置,GUID的设置,以及ContentType的使用等等。



请大家帮忙,指点。



------解决方案--------------------
1. 打开VS2010,新建一个SharePoint空项目
2. Map一下layouts文件夹,新建一个文件夹,并新建一个应用程序page
3. 右键选中项目添加一个内容类型,内容类型模板选择任务
4. 打开内容类型里边的Element.xml文件,修改ID 0x0108为 0x010801开头
5. 把Inherits=true删掉
6. 修改内容类型,把内容类型的新建,编辑,查看页面指定为你的应用程序page
7. 右键选中项目添加一个sharepoint顺序工作流
8. 拖拽createtaskwithcontenttype,ontaskchanged,completetask到设计页面
9. 选中createtaskwithcontenttype,设置correlationToken(自己起个名字,不要用默认的),owneractivatiyname用默认的,设置contenttypeID为你的contentype,新建taskid,taskproperties字段
10. 选中ontaskchanged,设置correlationToken,owneractivatiyname和createtaskwithcontenttype的一样,设置taskid为前一步创建的taskid,新建afterproperties和beforeproperties字段
11. 选中completetask,设置correlationToken,owneractivatiyname,taskid和前一步的一样