1.custom activity:创建 createtask activity的spesialpermissons属性
2.workflow:OnReplicatorChildInitialized
2.workflow:OnReplicatorChildInitialized
HybridDictionary permsCollection = new HybridDictionary();
permsCollection.Add(contact.LoginName, SPRoleType.Contributor);
task.createWssTask_SpecialPermissions1 = permsCollection;
注:不用直接绑定属性。
permsCollection.Add(contact.LoginName, SPRoleType.Contributor);
task.createWssTask_SpecialPermissions1 = permsCollection;