diff --git a/demo-shell/src/app/app.routes.ts b/demo-shell/src/app/app.routes.ts index 8e78646b7f..95f89b1ffa 100644 --- a/demo-shell/src/app/app.routes.ts +++ b/demo-shell/src/app/app.routes.ts @@ -153,7 +153,7 @@ export const appRoutes: Routes = [ component: PeopleGroupCloudDemoComponent }, { - path: ':applicationName', + path: ':appName', children: [ { path: '', diff --git a/demo-shell/src/app/components/app-layout/cloud/cloud-breadcrumb-component.html b/demo-shell/src/app/components/app-layout/cloud/cloud-breadcrumb-component.html index a062b24a13..47ee00b867 100644 --- a/demo-shell/src/app/components/app-layout/cloud/cloud-breadcrumb-component.html +++ b/demo-shell/src/app/components/app-layout/cloud/cloud-breadcrumb-component.html @@ -1,7 +1,7 @@
-
{{applicationName + ' >'}}
+
{{appName + ' >'}}
{{filterName | translate}}
diff --git a/demo-shell/src/app/components/app-layout/cloud/cloud-breadcrumb-component.ts b/demo-shell/src/app/components/app-layout/cloud/cloud-breadcrumb-component.ts index b069a2c44c..d3edf12944 100644 --- a/demo-shell/src/app/components/app-layout/cloud/cloud-breadcrumb-component.ts +++ b/demo-shell/src/app/components/app-layout/cloud/cloud-breadcrumb-component.ts @@ -25,7 +25,7 @@ import { ActivatedRoute } from '@angular/router'; }) export class CloudBreadcrumbsComponent implements OnInit { - applicationName: string; + appName: string; filterName: string; constructor(private route: ActivatedRoute) { } @@ -33,7 +33,7 @@ export class CloudBreadcrumbsComponent implements OnInit { ngOnInit() { this.route.parent.params.subscribe(( params) => { - this.applicationName = params.applicationName; + this.appName = params.appName; }); this.route.queryParams.subscribe((params) => { if (params.filterName) { diff --git a/demo-shell/src/app/components/app-layout/cloud/cloud-layout.component.html b/demo-shell/src/app/components/app-layout/cloud/cloud-layout.component.html index 71deae9ede..806e7a617a 100644 --- a/demo-shell/src/app/components/app-layout/cloud/cloud-layout.component.html +++ b/demo-shell/src/app/components/app-layout/cloud/cloud-layout.component.html @@ -24,7 +24,7 @@ - + diff --git a/demo-shell/src/app/components/app-layout/cloud/cloud-layout.component.ts b/demo-shell/src/app/components/app-layout/cloud/cloud-layout.component.ts index 35b16f6894..f3513c1629 100644 --- a/demo-shell/src/app/components/app-layout/cloud/cloud-layout.component.ts +++ b/demo-shell/src/app/components/app-layout/cloud/cloud-layout.component.ts @@ -26,7 +26,7 @@ import { CloudLayoutService } from './services/cloud-layout.service'; }) export class CloudLayoutComponent implements OnInit { displayMenu = true; - applicationName: string; + appName: string; constructor( private router: Router, @@ -37,7 +37,7 @@ export class CloudLayoutComponent implements OnInit { ngOnInit() { let root: string = ''; this.route.params.subscribe((params) => { - this.applicationName = params.applicationName; + this.appName = params.appName; }); if (this.route.snapshot && this.route.snapshot.firstChild) { @@ -56,10 +56,10 @@ export class CloudLayoutComponent implements OnInit { } onStartTask() { - this.router.navigate([`/cloud/${this.applicationName}/start-task/`]); + this.router.navigate([`/cloud/${this.appName}/start-task/`]); } onStartProcess() { - this.router.navigate([`/cloud/${this.applicationName}/start-process/`]); + this.router.navigate([`/cloud/${this.appName}/start-process/`]); } } diff --git a/demo-shell/src/app/components/app-layout/cloud/processes-cloud-demo.component.html b/demo-shell/src/app/components/app-layout/cloud/processes-cloud-demo.component.html index 55a46b99b2..02aa4fca19 100644 --- a/demo-shell/src/app/components/app-layout/cloud/processes-cloud-demo.component.html +++ b/demo-shell/src/app/components/app-layout/cloud/processes-cloud-demo.component.html @@ -1,31 +1,29 @@
- + - diff --git a/demo-shell/src/app/components/app-layout/cloud/processes-cloud-demo.component.ts b/demo-shell/src/app/components/app-layout/cloud/processes-cloud-demo.component.ts index ef0ddf682e..dd7e78f06a 100644 --- a/demo-shell/src/app/components/app-layout/cloud/processes-cloud-demo.component.ts +++ b/demo-shell/src/app/components/app-layout/cloud/processes-cloud-demo.component.ts @@ -42,7 +42,7 @@ export class ProcessesCloudDemoComponent implements OnInit { @ViewChild('processFiltersCloud') processFiltersCloud: ProcessFiltersCloudComponent; - applicationName: string = ''; + appName: string = ''; isFilterLoaded: boolean; filterId: string = ''; @@ -71,7 +71,7 @@ export class ProcessesCloudDemoComponent implements OnInit { ngOnInit() { this.isFilterLoaded = false; this.route.parent.params.subscribe((params) => { - this.applicationName = params.applicationName; + this.appName = params.appName; }); this.route.queryParams.subscribe((params) => { @@ -116,7 +116,7 @@ export class ProcessesCloudDemoComponent implements OnInit { onProcessFilterAction(filterAction: any) { this.cloudLayoutService.setCurrentProcessFilterParam({ id: filterAction.filter.id }); if (filterAction.actionType === ProcessesCloudDemoComponent.ACTION_SAVE_AS) { - this.router.navigate([`/cloud/${this.applicationName}/processes/`], { queryParams: filterAction.filter }); + this.router.navigate([`/cloud/${this.appName}/processes/`], { queryParams: filterAction.filter }); } } diff --git a/demo-shell/src/app/components/app-layout/cloud/start-process-cloud-demo.component.html b/demo-shell/src/app/components/app-layout/cloud/start-process-cloud-demo.component.html index 8b8c2e805c..981810289d 100644 --- a/demo-shell/src/app/components/app-layout/cloud/start-process-cloud-demo.component.html +++ b/demo-shell/src/app/components/app-layout/cloud/start-process-cloud-demo.component.html @@ -1,7 +1,7 @@ - diff --git a/demo-shell/src/app/components/app-layout/cloud/start-process-cloud-demo.component.ts b/demo-shell/src/app/components/app-layout/cloud/start-process-cloud-demo.component.ts index 9a7891fd9f..ed1e24bb0a 100644 --- a/demo-shell/src/app/components/app-layout/cloud/start-process-cloud-demo.component.ts +++ b/demo-shell/src/app/components/app-layout/cloud/start-process-cloud-demo.component.ts @@ -25,7 +25,7 @@ import { CloudLayoutService } from './services/cloud-layout.service'; }) export class StartProcessCloudDemoComponent implements OnInit { - applicationName; + appName; processName: string; constructor(private appConfig: AppConfigService, @@ -37,7 +37,7 @@ export class StartProcessCloudDemoComponent implements OnInit { ngOnInit() { this.route.parent.params.subscribe((params) => { - this.applicationName = params.applicationName; + this.appName = params.appName; }); this.processName = this.appConfig.get('adf-start-process.name'); @@ -45,12 +45,12 @@ export class StartProcessCloudDemoComponent implements OnInit { onStartProcessSuccess() { this.cloudLayoutService.setCurrentProcessFilterParam({ key: 'running-processes' }); - this.router.navigate([`/cloud/${this.applicationName}/processes`]); + this.router.navigate([`/cloud/${this.appName}/processes`]); } onCancelStartProcess() { this.cloudLayoutService.setCurrentProcessFilterParam({ key: 'all-processes' }); - this.router.navigate([`/cloud/${this.applicationName}/processes`]); + this.router.navigate([`/cloud/${this.appName}/processes`]); } openSnackMessage(event: any) { diff --git a/demo-shell/src/app/components/app-layout/cloud/start-task-cloud-demo.component.html b/demo-shell/src/app/components/app-layout/cloud/start-task-cloud-demo.component.html index f77a9e6619..adf11967eb 100644 --- a/demo-shell/src/app/components/app-layout/cloud/start-task-cloud-demo.component.html +++ b/demo-shell/src/app/components/app-layout/cloud/start-task-cloud-demo.component.html @@ -1,5 +1,5 @@ diff --git a/demo-shell/src/app/components/app-layout/cloud/start-task-cloud-demo.component.ts b/demo-shell/src/app/components/app-layout/cloud/start-task-cloud-demo.component.ts index 391460bc0f..516bd9bda2 100644 --- a/demo-shell/src/app/components/app-layout/cloud/start-task-cloud-demo.component.ts +++ b/demo-shell/src/app/components/app-layout/cloud/start-task-cloud-demo.component.ts @@ -25,7 +25,7 @@ import { CloudLayoutService } from './services/cloud-layout.service'; }) export class StartTaskCloudDemoComponent implements OnInit { - applicationName; + appName; constructor( private cloudLayoutService: CloudLayoutService, @@ -36,18 +36,18 @@ export class StartTaskCloudDemoComponent implements OnInit { ngOnInit() { this.route.parent.params.subscribe((params) => { - this.applicationName = params.applicationName; + this.appName = params.appName; }); } onStartTaskSuccess() { this.cloudLayoutService.setCurrentTaskFilterParam({key: 'my-tasks'}); - this.router.navigate([`/cloud/${this.applicationName}/tasks`]); + this.router.navigate([`/cloud/${this.appName}/tasks`]); } onCancelStartTask() { this.cloudLayoutService.setCurrentTaskFilterParam({key: 'my-tasks'}); - this.router.navigate([`/cloud/${this.applicationName}/tasks`]); + this.router.navigate([`/cloud/${this.appName}/tasks`]); } openSnackMessage(event: any) { diff --git a/demo-shell/src/app/components/app-layout/cloud/task-details-cloud-demo.component.html b/demo-shell/src/app/components/app-layout/cloud/task-details-cloud-demo.component.html index 3ed80ff5f4..fbf0675087 100644 --- a/demo-shell/src/app/components/app-layout/cloud/task-details-cloud-demo.component.html +++ b/demo-shell/src/app/components/app-layout/cloud/task-details-cloud-demo.component.html @@ -3,10 +3,10 @@ arrow_back Go Back -

Simple page to show the taskId: {{ taskId }} of the app: {{ applicationName }}

+

Simple page to show the taskId: {{ taskId }} of the app: {{ appName }}

diff --git a/demo-shell/src/app/components/app-layout/cloud/task-details-cloud-demo.component.ts b/demo-shell/src/app/components/app-layout/cloud/task-details-cloud-demo.component.ts index 6746612b47..c5ade39624 100644 --- a/demo-shell/src/app/components/app-layout/cloud/task-details-cloud-demo.component.ts +++ b/demo-shell/src/app/components/app-layout/cloud/task-details-cloud-demo.component.ts @@ -25,7 +25,7 @@ import { ActivatedRoute, Router } from '@angular/router'; export class TaskDetailsCloudDemoComponent { taskId: string; - applicationName: string; + appName: string; readOnly = false; constructor(private route: ActivatedRoute, private router: Router) { @@ -33,12 +33,12 @@ export class TaskDetailsCloudDemoComponent { this.taskId = params.taskId; }); this.route.parent.params.subscribe((params) => { - this.applicationName = params.applicationName; + this.appName = params.appName; }); } onGoBack() { - this.router.navigate([`/cloud/${this.applicationName}/`]); + this.router.navigate([`/cloud/${this.appName}/`]); } } diff --git a/demo-shell/src/app/components/app-layout/cloud/tasks-cloud-demo.component.html b/demo-shell/src/app/components/app-layout/cloud/tasks-cloud-demo.component.html index bbc849baef..6cc82275b1 100644 --- a/demo-shell/src/app/components/app-layout/cloud/tasks-cloud-demo.component.html +++ b/demo-shell/src/app/components/app-layout/cloud/tasks-cloud-demo.component.html @@ -1,16 +1,14 @@
- - { - this.applicationName = params.applicationName; + this.appName = params.appName; }); this.route.queryParams.subscribe((params) => { @@ -100,7 +100,7 @@ export class TasksCloudDemoComponent implements OnInit { onRowClick(taskId) { if (!this.multiselect && this.selectionMode !== 'multiple') { - this.router.navigate([`/cloud/${this.applicationName}/task-details/${taskId}`]); + this.router.navigate([`/cloud/${this.appName}/task-details/${taskId}`]); } } @@ -117,7 +117,7 @@ export class TasksCloudDemoComponent implements OnInit { onTaskFilterAction(filterAction: any) { this.cloudLayoutService.setCurrentTaskFilterParam({ id: filterAction.filter.id }); if (filterAction.actionType === TasksCloudDemoComponent.ACTION_SAVE_AS) { - this.router.navigate([`/cloud/${this.applicationName}/tasks/`], { queryParams: filterAction.filter }); + this.router.navigate([`/cloud/${this.appName}/tasks/`], { queryParams: filterAction.filter }); } } } diff --git a/docs/process-services-cloud/edit-process-filter-cloud.component.md b/docs/process-services-cloud/edit-process-filter-cloud.component.md index 5caee8dccb..b584f6c63f 100644 --- a/docs/process-services-cloud/edit-process-filter-cloud.component.md +++ b/docs/process-services-cloud/edit-process-filter-cloud.component.md @@ -27,8 +27,8 @@ Shows Process Filter Details. ```html @@ -62,13 +62,13 @@ Use the `appName` and `id` properties to choose which process filter to edit: ```html + [appName]="appName"> ``` ### Filter properties -You can supply various _filter properties_ to edit that will determine +You can supply various _filter properties_ to edit that will determine which processes are found by a filter. The full set of properties is given below: diff --git a/docs/process-services-cloud/edit-task-filter-cloud.component.md b/docs/process-services-cloud/edit-task-filter-cloud.component.md index 41ac7e39d0..225e58a10c 100644 --- a/docs/process-services-cloud/edit-task-filter-cloud.component.md +++ b/docs/process-services-cloud/edit-task-filter-cloud.component.md @@ -16,7 +16,7 @@ Edits Task Filter Details. ```html @@ -51,13 +51,13 @@ Use the `appName` and `id` properties to choose which task filter to edit: ```html + [appName]="appName"> ``` ### Filter properties -You can supply various *filter properties* to edit that will determine +You can supply various *filter properties* to edit that will determine which tasks are found by a filter. The full set of properties is given below: diff --git a/docs/process-services-cloud/process-list-cloud.component.md b/docs/process-services-cloud/process-list-cloud.component.md index 1b1daeb7e8..05114b5db0 100644 --- a/docs/process-services-cloud/process-list-cloud.component.md +++ b/docs/process-services-cloud/process-list-cloud.component.md @@ -27,7 +27,7 @@ Renders a list containing all the process instances matched by the parameters sp ```html + [appName]="'app-name'"> ``` @@ -51,7 +51,7 @@ when the process list is empty: | Name | Type | Default value | Description | | ---- | ---- | ------------- | ----------- | | appVersion | `string` | "" | The related application version. | -| applicationName | `string` | "" | The name of the application. | +| appName | `string` | "" | The name of the application. | | businessKey | `string` | "" | Filter the tasks to display only the ones with this businessKey value. | | id | `string` | "" | Filter the processes to display only the ones with this ID. | | initiator | `string` | "" | Name of the initiator of the process. | @@ -100,7 +100,7 @@ You can define a custom schema for the list in the `app.config.json` file and ac ```html + [appName]="'appName'"> ``` @@ -133,7 +133,7 @@ information defined in `app.config.json` as in the example below: ```html + [appName]="'appName'" > @@ -157,7 +157,7 @@ let sorting = [{ orderBy: 'status', direction: 'desc' }]; ```html ``` diff --git a/docs/process-services-cloud/task-header-cloud.component.md b/docs/process-services-cloud/task-header-cloud.component.md index cc1a16fa5a..822ff317e4 100644 --- a/docs/process-services-cloud/task-header-cloud.component.md +++ b/docs/process-services-cloud/task-header-cloud.component.md @@ -15,7 +15,7 @@ Shows all the information related to a task. ```html ``` @@ -39,12 +39,12 @@ Shows all the information related to a task. ## Details -The component populates an internal array of +The component populates an internal array of [CardViewModel](../core/card-view.component.md) with the information that we want to display. By default all properties are displayed: -**_assignee_**, **_status_**, **_priority_**, **_dueDate_**, **_category_**, **_parentName_**, **_created_**, **_id_**, **_description_**, **_formName_**. +**_assignee_**, **_status_**, **_priority_**, **_dueDate_**, **_category_**, **_parentName_**, **_created_**, **_id_**, **_description_**, **_formName_**. However, you can also choose which properties to show using a configuration in `app.config.json`: diff --git a/docs/process-services-cloud/task-list-cloud.component.md b/docs/process-services-cloud/task-list-cloud.component.md index f15c77c634..5f976268c2 100644 --- a/docs/process-services-cloud/task-list-cloud.component.md +++ b/docs/process-services-cloud/task-list-cloud.component.md @@ -28,7 +28,7 @@ Renders a list containing all the tasks matched by the parameters specified. ```html + [appName]="'APPLICATION-NAME'" > ``` @@ -51,7 +51,7 @@ when the task list is empty: | Name | Type | Default value | Description | | ---- | ---- | ------------- | ----------- | -| applicationName | `string` | "" | The name of the application. | +| appName | `string` | "" | The name of the application. | | assignee | `string` | "" | The assignee of the process. Possible values are: "assignee" (the current user is the assignee), "candidate" (the current user is a task candidate", "group_x" (the task is assigned to a group where the current user is a member, no value (the current user is involved). | | createdDate | `string` | "" | Filter the tasks. Display only tasks created on the supplied date. | | dueDate | `string` | "" | Filter the tasks. Display only tasks with dueDate equal to the supplied date. | @@ -153,7 +153,7 @@ You can use an HTML-based schema and an `app.config.json` custom schema declarat ```html + [appName]="'appName'"> @@ -187,7 +187,7 @@ The Tasklist also supports pagination as shown in the example below: ```html + [appName]="'APPLICATION-NAME'"> diff --git a/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.spec.ts index 9e3f42207c..de7fc7f58b 100644 --- a/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.spec.ts @@ -146,13 +146,13 @@ describe('ProcessListCloudComponent', () => { done(); }); - component.applicationName = appName.currentValue; + component.appName = appName.currentValue; component.ngOnChanges({ 'appName': appName }); fixture.detectChanges(); }); it('should reload tasks when reload() is called', (done) => { - component.applicationName = 'fake'; + component.appName = 'fake'; spyOn(processListCloudService, 'getProcessByRequest').and.returnValue(of(fakeProcessCloudList)); component.success.subscribe((res) => { expect(res).toBeDefined(); diff --git a/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.ts b/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.ts index d59ab56d4c..196b233cd2 100644 --- a/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.ts +++ b/lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.ts @@ -43,7 +43,7 @@ export class ProcessListCloudComponent extends DataTableSchema implements OnChan /** The name of the application. */ @Input() - applicationName: string = ''; + appName: string = ''; /** The related application version. */ @Input() @@ -221,7 +221,7 @@ export class ProcessListCloudComponent extends DataTableSchema implements OnChan private createRequestNode(): ProcessQueryCloudRequestModel { let requestNode = { - appName: this.applicationName, + appName: this.appName, appVersion: this.appVersion, maxItems: this.size, skipCount: this.skipCount, diff --git a/lib/process-services-cloud/src/lib/task/task-list/components/task-list-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/task/task-list/components/task-list-cloud.component.spec.ts index 3c04e1d660..c173209509 100644 --- a/lib/process-services-cloud/src/lib/task/task-list/components/task-list-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/task/task-list/components/task-list-cloud.component.spec.ts @@ -155,13 +155,13 @@ describe('TaskListCloudComponent', () => { expect(component.rows[0].entry['standAlone']).toBeTruthy(); done(); }); - component.applicationName = appName.currentValue; + component.appName = appName.currentValue; component.ngOnChanges({ 'appName': appName }); fixture.detectChanges(); }); it('should reload tasks when reload() is called', (done) => { - component.applicationName = 'fake'; + component.appName = 'fake'; spyOn(taskListCloudService, 'getTaskByRequest').and.returnValue(of(fakeGlobalTask)); component.success.subscribe((res) => { expect(res).toBeDefined(); @@ -204,7 +204,7 @@ describe('TaskListCloudComponent', () => { it('should reload the task list when input parameters changed', () => { const getTaskByRequestSpy = spyOn(taskListCloudService, 'getTaskByRequest').and.returnValue(of(fakeGlobalTask)); - component.applicationName = 'mock-app-name'; + component.appName = 'mock-app-name'; component.priority = 1; component.status = 'mock-status'; component.lastModifiedFrom = 'mock-lastmodified-date'; diff --git a/lib/process-services-cloud/src/lib/task/task-list/components/task-list-cloud.component.ts b/lib/process-services-cloud/src/lib/task/task-list/components/task-list-cloud.component.ts index 76eb11c0fe..e8fd279100 100644 --- a/lib/process-services-cloud/src/lib/task/task-list/components/task-list-cloud.component.ts +++ b/lib/process-services-cloud/src/lib/task/task-list/components/task-list-cloud.component.ts @@ -42,7 +42,7 @@ export class TaskListCloudComponent extends DataTableSchema implements OnChanges /** The name of the application. */ @Input() - applicationName: string = ''; + appName: string = ''; /** * The assignee of the process. Possible values are: "assignee" (the current user is the assignee), @@ -251,7 +251,7 @@ export class TaskListCloudComponent extends DataTableSchema implements OnChanges private createRequestNode() { let requestNode = { - appName: this.applicationName, + appName: this.appName, assignee: this.assignee, id: this.id, name: this.name,