NotifyContentChanged() public static method

public static NotifyContentChanged ( WorkflowNotificationEventArgs eventArgs ) : void
eventArgs SenseNet.ContentRepository.WorkflowNotificationEventArgs
return void
 protected override void OnNodeModified(object sender, NodeEventArgs e)
 {
     base.OnNodeModified(sender, e);
     InstanceManager.NotifyContentChanged(new WorkflowNotificationEventArgs(e.SourceNode.Id, CONTENTCHANGEDNOTIFICATIONTYPE, null));
     AbortRelatedWorkflows(e.SourceNode, WorkflowApplicationAbortReason.RelatedContentChanged);
     StartWorkflowAutomatically(e.SourceNode, TriggerEvent.Changed, e.ChangedData);
 }
Exemplo n.º 2
0
        protected override void OnNodeModified(object sender, NodeEventArgs e)
        {
            base.OnNodeModified(sender, e);

            // notify workflows about content change
            InstanceManager.NotifyContentChanged(new WorkflowNotificationEventArgs(e.SourceNode.Id, NotificationType.ContentChanged, null));

            // notify workflows about parent change
            InstanceManager.NotifyMultipleContentChanged(CollectParentIds(e.SourceNode), NotificationType.ChildEdited, e.SourceNode.Path);

            AbortRelatedWorkflows(e.SourceNode, WorkflowApplicationAbortReason.RelatedContentChanged);
            StartWorkflowAutomatically(e.SourceNode, TriggerEvent.Changed, e.ChangedData);
        }
Exemplo n.º 3
0
        protected override void OnNodeModified(object sender, NodeEventArgs e)
        {
            InstanceManager.NotifyContentChanged(new WorkflowNotificationEventArgs(e.SourceNode.Id, CONTENTCHANGEDNOTIFICATIONTYPE, null));

            AbortRelatedWorkflows(e.SourceNode, WorkflowApplicationAbortReason.RelatedContentChanged);
        }