天天看點

Install and configure Workflow Manager step by step

  本篇文章主要講述基于 SharePoint 2013 Server 下 Workflow Manager 1.0 的安裝步驟詳解(有圖有真相)。

  樓主很久沒更新過和 SharePoint 的部落格了,樓主一直在學習,現在在調研 SharePoint 2013, 被搞得焦頭爛額,五體投地,這貨不是人學的。(進正題,甭扯淡)

  首先還是說下為什麼要安裝 Workflow Manager 1.0。 

  在你首次安裝完 SharePoint Server 2013 後,當你試圖在 SharePoint Designer 2013 中建立一個 SharePoint 2013 Workflow,你會發現給你的選擇隻有 SharePoint 2010 Workflow。

Install and configure Workflow Manager step by step

  你也許會納悶了,說好的 Workflow 2013 呢?這裡就要說清了,Workflow Manager 1.0是一項基于雲的服務,用于管理、認證 Workflows,它是獨立的服務,且有自己的 Farm。它可以跑在另一台機子上,或者另一個Farm中,需要獨立安裝。下面這張圖就很好的說明了, SharePoint 2013 Workflow 是基于 Windows Foundation 和 Workflow Manager 1.0 的。

Install and configure Workflow Manager step by step

  以下安裝是以單機環境下的安裝步驟,就是說 SharePoint 2013 Server 和 Workflow Manager 1.0 在同一主機上,因為主要用于學習,自然就單機了。

  首先保證你已經安裝了 SharePoint Server 2013。

  1. 點選安裝連結 installationlink ,安裝就直接安裝了,沒什麼好說的。

Install and configure Workflow Manager step by step

  2. 安裝完成之後會自動進入配置向導。當然你也可以自己打開向導,打開開始菜單,在 AllPrograms, 點選進入WorkflowManager 1.0, 點選 Workflow Configuration 進入配置向導。

  3. 第一次安裝選擇建議選擇 Configure Workflow Manager with Default Settings 這裡有一個概念要強調,WorkflowManager 1.0 和 SharePoint Server 是建立在互相獨立的Farm 中的。

Install and configure Workflow Manager step by step

   在建立一個 Farm 的過程在有些要注意點,這是本人自己總結的,隻做參考。用Test-Connection測試你的SQL SERVER INSTANCE 最好要确實存在。而且這個SQL Server執行個體在後面的開發當中記得開啟服務。在單機環境下,最好通過Http連接配接Workflow Manager服務。

Install and configure Workflow Manager step by step
Install and configure Workflow Manager step by step

  Certificate Generation Key證書的Key 最好用一個容易記住的,以免以後證書丢失,可以還原。然後點選 Next。再點選Apply,就坐等着配置成功

Install and configure Workflow Manager step by step

  恭喜你,現在你已經成功建立了一個Workflow Manager Farm,當然工作還沒完,還得注冊進 SharePoint Server 2013。這裡還要補充一點,如果你已經建立過一個Farm了,你也可以選擇 Joining an Existing Workflow Manager Farm,這個就适用于跨 Farm 的開發了。

Install and configure Workflow Manager step by step

  點選Next,進入下一個界面, 填好賬戶和密碼和Generation Key(可以了解為密鑰),當然單機環境下,還是允許Http 連接配接Workflow Manager 服務.

Install and configure Workflow Manager step by step

  然後對于Server Bus Farm 可以用和之前的Workflow Manager Farm 同樣的賬号和密鑰。

Install and configure Workflow Manager step by step

  同樣也能配置成功。

  接下來,你需要做的就是将Workflow Manager 配置成能和 SharePoint 2013 Server Farm一起工作。這裡之前已經講過了,針對的是單機情況,Workflow Manager 和SharePoint Server 在同一台主機上,而且選擇了Http 連結服務,是以隻需直接通過 PowerShell 指令注冊就可以了。其他情況請參閱MSDN官方文檔:http://technet.microsoft.com/en-us/library/jj658588(v=office.15)

   1.   以管理者身份運作 SharePoint 2013 Management Shell

   2.  運作下面指令:

        Register-SPWorkflowService –SPSite "http://myserver/mysitecollection" –WorkflowHostUri "http://workflow.example.com:12291" –AllowOAuthHttp

  然後你就需要安裝 Workflow Manager Client ,附上下載下傳位址:http://go.microsoft.com/fwlink/p/?LinkID=268376

Install and configure Workflow Manager step by step

    現在你的 IIS 上已經多了一個 Workflow Manager Server 了。然後你需要将安全證書安裝在 SharePoint Server 2013 上,首先進 Internet Options (IE setting 裡)将證書導出來。

Install and configure Workflow Manager step by step

  選中之前安裝 Workflow Manager 的證書,将其導出到指定目錄,步驟如下:

Install and configure Workflow Manager step by step
Install and configure Workflow Manager step by step
Install and configure Workflow Manager step by step
Install and configure Workflow Manager step by step
Install and configure Workflow Manager step by step

  點選 Finsh 就完成了導出的工作。然後将其安裝在 SharePoint Server 2013 和 受信任證書。

  輕按兩下導出的 .cer 檔案,點選 Install Certificate 。

Install and configure Workflow Manager step by step

  選擇 Place all certificate in the following store -> Browese..->Trusted Root Certification Authorities->Ok

Install and configure Workflow Manager step by step

  然後點選 next -> Finish

Install and configure Workflow Manager step by step

  最後你要安裝進 SharePoint Server 2013 可以通過PowerShell 指令 New-SPTrustedRootAuthority ,也可以在 Center Adimin 裡添加 。

Install and configure Workflow Manager step by step

  然後 New 一個信任證書,選擇剛剛導出的證書。

  對于後面安裝證書的過程,我覺得可以不需要,不過沒嘗試過,然後重新開機下電腦(建議)。

  可以去 Center Admin 中 Application Manager Service 中檢驗下,如果出現下面的情況,說明你已經安裝成功了,還有提醒下,站點和 Workflow 相關的Feature 記得 Active 。

Install and configure Workflow Manager step by step

  打開網站,在網站中打開SharePoint Designer ,就可以開始你的 SharePoint 2013 Workflow 之旅了。

Install and configure Workflow Manager step by step
Install and configure Workflow Manager step by step

    好了,大功告成了。綜上都是本人自己概況,才疏學淺,還望海涵,有錯必改,歡迎指正!

繼續閱讀