MOSS 2007 CMS Project Technical Issues: Permission / Workflow deployment
2007-12-24 16:49
337 查看
In my project, there are several workflow developed by ourselves. MOSS 2007 workflow is based on the WF (.net framework 3.0).Because of the point mentiond, developing workflow on MOSS 2007 mostly originates from WF. You'd better know more details about it, it's very helpful later. Moreover, you can find the samples from MOSS workflow start kits, that will take you into the door.
Now let me disucss the issues I have met, also they make me lost much of time and are overwhelming disaster to me. Now I can spread the world.
1) Even everybody know using "SPSecurity.RunWithElevatedPrivileges(secureCode)" can run the code with the access of "system account". But some of them don't know this, for instance me, you should using all the variables declared in the big bracket. Another thing you may need to use the below lins in some situation, at least in my case it works:
_web.AllowUnsafeUpdates = true;
SPWebApplication webApp = _web.Site.WebApplication;
webApp.FormDigestSettings.Enabled = false;
...
2) Workflow: onTaskCreated. In workflow, there is an activity named "onTaskCreated", it will not be activated randomly without sp1. I'm not sure if it's solved with sp1 of MOSS. Because of this point, we should avoid to use this within the loop of "Replicator". In my case, it cost me much time to figure out it.
3) Workflow: Deployment. So far about the deployment of MOSS workflow, I can not find effective related documents. Even the official document can not cover all the situations.The complexity lies in the following aspects:
a) In MOSS 2007, the workflow can be attached with Content type, List, and policy.
b) In a CMS application, there are many lists, content types that increase the complexity of deployment.
c) Becase MOSS 2007 is base b/s architecture, frequently the action of deployment is always time out.
In my case, the workflow is deployed like below:
a) Remove all the workflows attached in the lists or content types.
b) Run uninstall.bat to uninstall the feature totally.
c) Check if it's clearly clean, without any old ones. Here you may need to develop a tool.
d) Run install. bat to reinstall it.
e) Attach the workflow to your lists or content types accordingly.
The latest information is that the deployment will be convenient in VS2008.
4) Workflow: "BreakInheritance..". In my case, if you call this function to remove the permissions, there always is some exceptions occured in the logs of MOSS. Finally, I find there is hotfix in SP1 which have solved this issue. So far in my case, it's not upgraed, so I can make sure of this.
Now let me disucss the issues I have met, also they make me lost much of time and are overwhelming disaster to me. Now I can spread the world.
1) Even everybody know using "SPSecurity.RunWithElevatedPrivileges(secureCode)" can run the code with the access of "system account". But some of them don't know this, for instance me, you should using all the variables declared in the big bracket. Another thing you may need to use the below lins in some situation, at least in my case it works:
_web.AllowUnsafeUpdates = true;
SPWebApplication webApp = _web.Site.WebApplication;
webApp.FormDigestSettings.Enabled = false;
...
2) Workflow: onTaskCreated. In workflow, there is an activity named "onTaskCreated", it will not be activated randomly without sp1. I'm not sure if it's solved with sp1 of MOSS. Because of this point, we should avoid to use this within the loop of "Replicator". In my case, it cost me much time to figure out it.
3) Workflow: Deployment. So far about the deployment of MOSS workflow, I can not find effective related documents. Even the official document can not cover all the situations.The complexity lies in the following aspects:
a) In MOSS 2007, the workflow can be attached with Content type, List, and policy.
b) In a CMS application, there are many lists, content types that increase the complexity of deployment.
c) Becase MOSS 2007 is base b/s architecture, frequently the action of deployment is always time out.
In my case, the workflow is deployed like below:
a) Remove all the workflows attached in the lists or content types.
b) Run uninstall.bat to uninstall the feature totally.
c) Check if it's clearly clean, without any old ones. Here you may need to develop a tool.
d) Run install. bat to reinstall it.
e) Attach the workflow to your lists or content types accordingly.
The latest information is that the deployment will be convenient in VS2008.
4) Workflow: "BreakInheritance..". In my case, if you call this function to remove the permissions, there always is some exceptions occured in the logs of MOSS. Finally, I find there is hotfix in SP1 which have solved this issue. So far in my case, it's not upgraed, so I can make sure of this.
相关文章推荐
- MOSS 2007 CMS Project Technical Issues: Custom Field Type
- 【转】Performance issues with a list in MOSS 2007 列表慢的问题
- [转]MOSS 2007 Content Deployment Options Comparison(MOSS2007内容部署方案比较)
- How to upgrade workflow assembly in MOSS 2007
- MOSS & Project Server 2007
- How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically
- The Myeclipse copy a project and deployment issues
- MOSS&Project 2007语言包安装和部署
- MOSS 2007 Workflow 开发步骤
- Deploy Project Server 2007 to an existing deployment of Office SharePoint Server 2007
- open source workflow & CMS & issue tracking projects
- Post-Build script to fix MSI issues in Vista for VS 2005 Setup and Deployment Projects
- 一步一步SharePoint 2007之四十二:实现自定义Workflow(1)——在VS中创建一个Workflow
- 一步一步SharePoint 2007之四十三:实现自定义Workflow(2)——设置配置文件
- Project2007操作手册(原创)
- Errors running builder 'DeploymentBuilder' on project 项目名. java.lang.NullPointerException
- 安装Moss 2007过程中设置asp.net的问题
- MOSS视频教程 - Office SharePoint Server 2007开发与应用
- MOSS 2007 / WSS 3.0 运行在Windows Server 2008上不能上传大于28M的文件【已解决】
- MOSS 2007/WSS 3.0运行在windows server 2008上不能上传大于28M的文件