將兩個AEM Forms工作區執行個體托管在一部伺服器上 hosting-two-aem-forms-workspace-instances-on-one-server

CAUTION
AEM 6.4已結束延伸支援,本檔案不再更新。 如需詳細資訊,請參閱 技術支援期. 尋找支援的版本 此處.

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,然後貼到/content。 將節點更名為ws2。 按一下 全部儲存. 在此節點的屬性中,更改 sling:resourceType 到ws2。 按一下 全部儲存.

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

  5. GET.jsp at /apps/ws2,請變更下列程式碼。 取代下列項目

    code language-none
    <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-none
    <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 at /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 at /apps/ws2/js/runtime/models/apps/ws2/js/runtime/views,變更字串 /lc/content/ws to lc/content/ws2.

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

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

  10. 若要參閱 pdf.html ,變更 pdf.htmlWsNextAdapter.swf in startprocess.html, taskdetails.html,和 processinstancehistory.html at /apps/ws2/js/runtime/templates.

  11. 複製 /etc/map/ws 資料夾和貼上位置 /etc/map. 將新資料夾更名為ws2。 按一下「全部儲存」 。

  12. 在的屬性中 ws2,變更值 sling:redirect to content/ws2.

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

recommendation-more-help
a6ebf046-2b8b-4543-bd46-42a0d77792da