您的位置:首页 > 产品设计 > UI/UE

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: