private void NotifyWorkflowAboutChanges(int portalId, int tabId, int userId) { try { var tabInfo = _tabController.GetTab(tabId, portalId); if (tabInfo != null && !tabInfo.IsDeleted && _workflowEngine.IsWorkflowCompleted(tabInfo)) { var workflow = GetCurrentOrDefaultWorkflow(tabInfo, portalId); if (workflow == null) { Logger.Warn("Current Workflow and Default workflow are not found on NotifyWorkflowAboutChanges"); return; } _workflowEngine.StartWorkflow(workflow.WorkflowID, tabInfo.ContentItemId, userId); _tabController.RefreshCache(portalId, tabId); } } catch (Exception ex) { Exceptions.LogException(ex); } }