AEM Formsのデフォルトのインストールと設定では、1 つのAEM Forms Workspace のみをサーバー上で使用できます。 ただし、場合によっては、AEM Forms Workspace の 2 つの異なるインスタンスを 1 つのAEM Forms Server でホストする必要があります。 2 つのインスタンスには、異なる URL からアクセスできます。
AEM Formsの管理者は、ワークスペースをカスタマイズして 2 つの異なる URL を作成し、2 つのワークスペースを同じサーバーで使用できるようにします。 このカスタマイズ記事では、2 つのワークスペースが次の場所からアクセス可能であると仮定できます。 https://'[server]:[port]'/lc/ws
および https://'[server]:[port]':/lc/ws2
.
次の手順に従って、AEM Forms Workspace を設定します。
サーバーにAEM Forms Workspace の dev パッケージをインストールします。 詳しくは、 開発パッケージを参照してください。
にアクセスして、CRXDE Liteに管理者としてログインします。 https://'[server]:[port]'/lc/crx/de/index.jsp
.
ノード ws を/content にコピーし、/content に貼り付けます。 ノード名を ws2 に変更します。 「すべて保存」をクリックします。このノードのプロパティで、sling:resourceType
の値を ws2 に変更します。「すべて保存」をクリックします。
/libs からフォルダー ws をコピーし、/apps に貼り付けます。 フォルダーの名前を ws2 に変更します。 「すべて保存」をクリックします。
GET.jsp
にある /apps/ws2
で、次のコード変更を行います。次を
<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'" />
次のコードで置き換えます。
<html lang="en">
<head>
<meta charset="utf-8">
<title>Workspace Next</title>
<meta http-equiv="refresh" content="0;URL='/lc/apps/ws2/index.html'" />
registry.js
にある /apps/ws2/js
で、テンプレートのパスを、/apps/ws2/js/runtime/templates
にあるテンプレートを参照するように変更します。次のコードを
"tasklist" : {
"name": "tasklist",
"path": "tasklistview",
"model": "tasklist",
"template": "text!/lc/libs/ws/js/runtime/templates/tasklist.html",
"utility": "utility",
"view": "taskview",
"errorModel": null
}
次のコードで置き換えます。
"tasklist" : {
"name": "tasklist",
"path": "tasklistview",
"model": "tasklist",
"template": "text!/lc/apps/ws2/js/runtime/templates/tasklist.html",
"utility": "utility",
"view": "taskview",
"errorModel": null
}
userinfo.js
にある/apps/ws2/js/runtime/models
および/apps/ws2/js/runtime/views
で、文字列を/lc/content/ws
からlc/content/ws2
に変更します。
/apps/ws2/js/runtime/services/service.js
で、 getLocalizationData
関数のパスを/lc/apps/ws2/Locale.html
に指すように変更します。
新しいワークスペースのpdf.html
に参照するには、/apps/ws2/js/runtime/views/forms/pdftaskform.js
にあるpdf.html
のパスを変更します。
新しいワークスペースのpdf.html
に参照するには、 startprocess.html
にあるpdf.html
とWsNextAdapter.swf
、および/apps/ws2/js/runtime/templates
でtaskdetails.html
とprocessinstancehistory.html
のパスを変更します。
/etc/map/ws
フォルダーをコピーし、/etc/map
にペーストします。新しいフォルダーの名前を ws2 に変更します。 「すべて保存」をクリックします。
ws2
のプロパティで、sling:redirect
の値をcontent/ws2
に変更します。
値をsling:match
から^[^/\||]/[^/\||]/ws2$
に変更します。