Download presentation
Presentation is loading. Please wait.
Published byMadison Bernadette Joseph Modified over 7 years ago
1
SharePoint 2013 Workflow: Troubleshoot Sergii Bielskyi
2
О чем будем говорить? БД Workflows Manager Custom activity Подвисшие процессы Ошибки 429, 423, 500 …
3
Архитектура Workflow Manager
SPC Developer 10/9/2017 Архитектура Workflow Manager Workflow Manager Backend WFInstance ManagementDB WFManagementDB Node info Certificate info Port info Connection info Workflow Manager Gateway Service Bus Backend WFResource ManagementDB All communications with the workflow farm uses either the HTTP or HTTPS protocol. On servers within the workflow farm, within Internet Information Server (IIS) Manager, you will see one application pool, WorkflowMgmtPool, and one site, Workflow Management Site Service Bus Gateway SBMessage Container01 SBMessage Container02 SBManagementDB SbGatewayDB © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
4
SharePoint 2013 API SharePoint SharePoint Designer Visual Studio
OAuth Access Control Visual Studio SharePoint Designer SharePoint Events Content People Sharing 2010 WF _API (REST OM) Workflow Manager Workflow Services Manager Workflow Client Instances Interop Service Bus Deployment Messaging WF Service Application Proxy
5
Топология Workflow Manager
Farm Node SharePoint WF Manager Farm Node Database load balancer SharePoint WF Manager In multi-node environments, traffic between SharePoint and WF Manager go through NLB Farm Node SharePoint WF Manager
6
WF Manager установка и соединение
SPC Developer 10/9/2017 WF Manager установка и соединение Доступно через Web Platform Installer или Download Center Workflow Manager 1.0 Workflow Manager Client 1.0 Соединение PowerShell Command Farm Scoped Requires Workflow Manager Client on SharePoint machine Register-SPWorkflowService –SPSite “ –WorkflowHostUri “ OAuth requires SSL in production. Set Workflow Service Uri to DNS hostname of Virtual IP. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
7
Работа внутри SharePoint Workflow Frontend Workflow Backend
SPC Developer 10/9/2017 Работа внутри SharePoint Workflow Frontend Workflow Backend Assign Task (cont) _API Register Interest Wait For Notification Site Users Tasks … Service Bus Receive & Persist Messages Instances © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
8
Кастомные активности Развертывание Перезагрузка Библиотеки
SPC Developer 10/9/2017 Кастомные активности Развертывание Перезагрузка Библиотеки Развертывание файлов на всех Workflow nodes Перезагрузка Timer Job Библиотеки SharePoint ISAPI если используются компоненты SharePoint © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
9
Авторизация SharePoint 2010 workflow авторизация
Run as: initiator user Run as: publisher user (Impersonation Step) Specific for classic workflow SharePoint 2013 workflow авторизация Workflows have identity (app principal) Default access scope: read/write to site (Web.Write) Run as: app & user Run as: app only (App Step)
10
Подвисшие процессы Использование поддерживаемых методов
string mass var result = mass.Replace("\r\n", "").Split(','); Microsoft.SharePoint.Client.WorkflowServices.WorkflowServicesManager spWorkflowServicesManager = new Microsoft.SharePoint.Client.WorkflowServices.WorkflowServicesManager(clientContext, clientContext.Web); foreach (string str in result) { if (str != "") Microsoft.SharePoint.Client.WorkflowServices.WorkflowInstance spWorkflownInstance = spWorkflowServicesManager.GetWorkflowInstanceService().GetInstance(new Guid(str)); spWorkflowServicesManager.GetWorkflowInstanceService().TerminateWorkflow(spWorkflownInstance); clientContext.ExecuteQuery(); } Использование иных методов
11
Мониторинг Использование Windows Event Logs Использование SQL scripts
SPC Developer 10/9/2017 Мониторинг Использование Windows Event Logs Использование SQL scripts © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
12
Спасибо https://www. facebook. com/groups/spsua/ https://blogs. msdn
Спасибо
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.