From 9792f83c9bb43cf3c75651d71550821935d89a6e Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Thu, 5 Apr 2018 14:13:28 +0100 Subject: [PATCH] Provide a way to change the contextBpmRoot from the app.config file (#3144) --- demo-shell/src/app.config.json | 1 + lib/core/services/alfresco-api.service.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/demo-shell/src/app.config.json b/demo-shell/src/app.config.json index 8536010b14..e55d910b5f 100644 --- a/demo-shell/src/app.config.json +++ b/demo-shell/src/app.config.json @@ -2,6 +2,7 @@ "$schema": "../../lib/core/app-config/schema.json", "ecmHost": "http://{hostname}:{port}", "bpmHost": "http://{hostname}:{port}", + "contextRootBpm": "activiti-app", "application": { "name": "Alfresco ADF Application" }, diff --git a/lib/core/services/alfresco-api.service.ts b/lib/core/services/alfresco-api.service.ts index e18475f30a..c113a1f6e8 100644 --- a/lib/core/services/alfresco-api.service.ts +++ b/lib/core/services/alfresco-api.service.ts @@ -95,7 +95,8 @@ export class AlfrescoApiService { ticketBpm: this.storage.getItem('ticket-BPM'), hostEcm: this.appConfig.get('ecmHost'), hostBpm: this.appConfig.get('bpmHost'), - contextRoot: 'alfresco', + contextRootBpm: this.appConfig.get('contextRootBpm'), + contextRoot: this.appConfig.get('contextRootEcm'), disableCsrf: this.storage.getItem('DISABLE_CSRF') === 'true', oauth2: this.appConfig.get('oauth2') });