Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. // Microsoft.SharePoint.WorkflowServices.StoreSubscriptionService
  2. public override WorkflowSubscriptionCollection EnumerateSubscriptionsByEventSource(Guid eventSourceId)
  3. {
  4.     this.context.Web.CheckPermissions(SPBasePermissions.EditListItems);
  5.     WorkflowStore workflowStore = new WorkflowStore(this.context.Web);
  6.     eventSourceId = StoreSubscriptionService.ConvertToGuidToken(eventSourceId, this.context.Web);
  7.     WorkflowFile[] files = workflowStore.QueryWithGuid("0x0100AA27A923036E459D9EF0D18BBD0B9587", StoragePublishState.Unchanged, "WSEventSourceGUID", eventSourceId);
  8.     return this.ConvertToWorkflowSubscriptionCollection(files);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement