在單一伺服器上主控兩個AEM Forms工作區執行個體 hosting-two-aem-forms-workspace-instances-on-one-server

AEM Forms的預設安裝與設定只允許伺服器上有一個AEM Forms工作區。 不過,您可能需要在單一AEM Forms伺服器上託管兩個不同的AEM Forms工作區例項。 這兩個執行個體可透過不同的URL存取。

AEM Forms管理員可自訂工作區,以建立兩個不同的URL,並讓兩個工作區可在同一部伺服器上使用。 在本自訂文章中,您可以假設兩個工作區可在以下位置存取: https://'[server]:[port]'/lc/wshttps://'[server]:[port]':/lc/ws2.

請依照下列步驟設定AEM Forms工作區。

  1. 在伺服器上安裝AEM Forms工作區的開發套件。 另請參閱 開發套件,以取得建立它的指示。

  2. 以管理員身分登入CRXDE Lite,方法是存取 https://'[server]:[port]'/lc/crx/de/index.jsp.

  3. 在/content處複製節點ws,並在/content處貼上。 將節點重新命名為ws2。 按一下 全部儲存. 在此節點的屬性中,變更值 sling:resourceType 到ws2。 按一下 全部儲存.

  4. 從/libs複製資料夾ws並貼到/apps。 將資料夾重新命名為ws2。 按一下 全部儲存.

  5. GET.jsp/apps/ws2,進行下列程式碼變更。 取代下列專案

    code language-html
    <html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Workspace Next</title>
        <meta http-equiv="refresh" content="0;URL='/lc/libs/ws/index.html'" /><html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Workspace Next</title>
        <meta http-equiv="refresh" content="0;URL='/lc/libs/ws/index.html'" />
    

    ,程式碼如下

    code language-html
    <html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Workspace Next</title>
        <meta http-equiv="refresh" content="0;URL='/lc/apps/ws2/index.html'" />
    
  6. registry.js/apps/ws2/js,變更範本路徑以參照範本,位於 /apps/ws2/js/runtime/templates. 取代下列程式碼

    code language-css
    "tasklist" : {
    "name": "tasklist",
    "path": "tasklistview",
    "model": "tasklist",
    "template": "text!/lc/libs/ws/js/runtime/templates/tasklist.html",
    "utility": "utility",
    "view": "taskview",
    "errorModel": null
    }
    

    ,程式碼如下

    code language-css
    "tasklist" : {
    "name": "tasklist",
    "path": "tasklistview",
    "model": "tasklist",
    "template": "text!/lc/apps/ws2/js/runtime/templates/tasklist.html",
    "utility": "utility",
    "view": "taskview",
    "errorModel": null
    }
    
  7. userinfo.js/apps/ws2/js/runtime/models/apps/ws2/js/runtime/views,變更字串 /lc/content/wslc/content/ws2.

  8. /apps/ws2/js/runtime/services/service.js,變更中的路徑 getLocalizationData 指向的函式 /lc/apps/ws2/Locale.html.

  9. 若要參閱 pdf.html ,變更路徑 pdf.html/apps/ws2/js/runtime/views/forms/pdftaskform.js.

  10. 若要參閱 pdf.html 變更新工作區的路徑 pdf.htmlWsNextAdapter.swfstartprocess.htmltaskdetails.html、和 processinstancehistory.html/apps/ws2/js/runtime/templates.

  11. 複製 /etc/map/ws 資料夾並貼到 /etc/map. 將新資料夾重新命名為ws2。 按一下「儲存全部」。

  12. 在屬性中 ws2,變更值 sling:redirectcontent/ws2.

  13. 變更值 sling:match^[^/\||]/[^/\||]/ws2$.

recommendation-more-help
19ffd973-7af2-44d0-84b5-d547b0dffee2