('');
+ node: NodeEntry;
+
+ private sub: Subscription;
+
+ constructor(private element: ElementRef, private alfrescoApiService: AlfrescoApiService) {}
+
+ ngOnInit() {
+ this.updateValue();
+
+ this.sub = this.alfrescoApiService.nodeUpdated.subscribe((node: Node) => {
+ const row = this.context.row;
+ if (row) {
+ const { entry } = row.node;
+
+ if (entry === node) {
+ row.node = { entry };
+ this.updateValue();
+ }
+ }
+ });
+ }
+
+ protected updateValue() {
+ this.node = this.context.row.node;
+
+ if (this.node && this.node.entry) {
+ this.displayText$.next(this.node.entry.name || this.node.entry.id);
+ }
+ }
+
+ onClick() {
+ this.element.nativeElement.dispatchEvent(
+ new CustomEvent('name-click', {
+ bubbles: true,
+ detail: {
+ node: this.node
+ }
+ })
+ );
+ }
+
+ ngOnDestroy() {
+ if (this.sub) {
+ this.sub.unsubscribe();
+ this.sub = null;
+ }
+ }
+}
diff --git a/demo-shell/src/app/components/file-view/file-view.component.html b/demo-shell/src/app/components/file-view/file-view.component.html
index 0fa9cb5a31..d14163bbaf 100644
--- a/demo-shell/src/app/components/file-view/file-view.component.html
+++ b/demo-shell/src/app/components/file-view/file-view.component.html
@@ -12,12 +12,14 @@
[multi]="multi"
[preset]="customPreset"
[readOnly]="isReadOnly"
+ [displayAspect]="showAspect"
[displayDefaultProperties]="displayDefaultProperties"
[displayEmpty]="displayEmptyMetadata">
@@ -71,6 +73,19 @@
+
+
+
+
+
+
+
+
+
@@ -105,7 +120,7 @@
-
+
-
+
+
+
+ Show tab with icon
+
+
+
+
+
+ Show tab with icon and label
+
+
+
+
+
+
+
+
diff --git a/demo-shell/src/app/components/file-view/file-view.component.ts b/demo-shell/src/app/components/file-view/file-view.component.ts
index 2fcb5aa68c..e5b4187f87 100644
--- a/demo-shell/src/app/components/file-view/file-view.component.ts
+++ b/demo-shell/src/app/components/file-view/file-view.component.ts
@@ -53,6 +53,10 @@ export class FileViewComponent implements OnInit {
showRightSidebar = false;
customToolbar = false;
isCommentEnabled = false;
+ showTabWithIcon = false;
+ showTabWithIconAndLabel = false;
+ desiredAspect: string = null;
+ showAspect: string = null;
constructor(private router: Router,
private route: ActivatedRoute,
@@ -145,6 +149,14 @@ export class FileViewComponent implements OnInit {
this.allowLeftSidebar = !this.allowLeftSidebar;
}
+ toggleShowTabWithIcon() {
+ this.showTabWithIcon = !this.showTabWithIcon;
+ }
+
+ toggleShowTabWithIconAndLabel() {
+ this.showTabWithIconAndLabel = !this.showTabWithIconAndLabel;
+ }
+
toggleCustomName() {
this.customName = !this.customName;
@@ -178,4 +190,8 @@ export class FileViewComponent implements OnInit {
this.isPreset = true;
}, 100);
}
+
+ applyAspect() {
+ this.showAspect = this.desiredAspect;
+ }
}
diff --git a/demo-shell/src/app/components/files/files.component.html b/demo-shell/src/app/components/files/files.component.html
index 06eec65dd6..0be21ed52d 100644
--- a/demo-shell/src/app/components/files/files.component.html
+++ b/demo-shell/src/app/components/files/files.component.html
@@ -288,7 +288,7 @@
*ngIf="searchTerm"
key="search"
title="Search"
- class="adf-desktop-only">
+ class="adf-desktop-only adf-expand-cell-3">
diff --git a/demo-shell/src/app/components/files/files.component.scss b/demo-shell/src/app/components/files/files.component.scss
index 1d7ab7a8a0..ef0dcd4223 100644
--- a/demo-shell/src/app/components/files/files.component.scss
+++ b/demo-shell/src/app/components/files/files.component.scss
@@ -76,28 +76,10 @@
.adf-manage-versions-sidebar {
width: 360px !important;
- color: rgba(0, 0, 0, 0.87);
-
- .adf-manage-versions-empty,
- .adf-manage-versions-no-permission {
- margin: 44px;
- color: mat-color($foreground, text, 0.54);
- text-align: center;
-
- &-icon {
- display: block;
- font-size: 48px;
- margin: 0 auto 32px;
- }
- }
& .adf-info-drawer-layout-header {
display: none !important;
}
-
- & .adf-info-drawer-layout-content {
- padding: 10px !important;
- }
}
.adf-no-result__empty_doc_lib {
diff --git a/demo-shell/src/app/components/files/files.component.ts b/demo-shell/src/app/components/files/files.component.ts
index b7ea355d10..ef9fcc77d4 100644
--- a/demo-shell/src/app/components/files/files.component.ts
+++ b/demo-shell/src/app/components/files/files.component.ts
@@ -214,10 +214,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
@Optional() private route: ActivatedRoute,
public authenticationService: AuthenticationService,
public alfrescoApiService: AlfrescoApiService) {
-
- this.alfrescoApiService.nodeUpdated.subscribe(() => {
- this.documentList.reload();
- });
}
showFile(event) {
@@ -353,10 +349,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
}
openSnackMessage(event: any) {
- this.notificationService.openSnackMessage(
- event,
- 4000
- );
+ this.notificationService.openSnackMessage(event);
}
emitReadyEvent(event: NodePaging) {
@@ -583,10 +576,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
});
dialogInstance.componentInstance.error.subscribe((message) => {
- this.notificationService.openSnackMessage(
- message,
- 6000
- );
+ this.notificationService.openSnackMessage(message);
});
}
diff --git a/demo-shell/src/app/components/form/form-list.component.ts b/demo-shell/src/app/components/form/form-list.component.ts
index 5bc660b9e8..4ad54895e7 100644
--- a/demo-shell/src/app/components/form/form-list.component.ts
+++ b/demo-shell/src/app/components/form/form-list.component.ts
@@ -16,7 +16,8 @@
*/
import { Component, ViewChild } from '@angular/core';
-import { FormComponent, FormModel, FormService, LogService, FormOutcomeEvent } from '@alfresco/adf-core';
+import { FormModel, FormService, LogService, FormOutcomeEvent } from '@alfresco/adf-core';
+import { FormComponent } from '@alfresco/adf-process-services';
@Component({
selector: 'app-form-list',
diff --git a/demo-shell/src/app/components/form/form.component.ts b/demo-shell/src/app/components/form/form.component.ts
index 2ad4c117c5..91335db20b 100644
--- a/demo-shell/src/app/components/form/form.component.ts
+++ b/demo-shell/src/app/components/form/form.component.ts
@@ -26,7 +26,7 @@ import { Subscription } from 'rxjs';
templateUrl: 'form.component.html',
styleUrls: ['form.component.scss'],
providers: [
- {provide: FormService, useClass: InMemoryFormService}
+ { provide: FormService, useClass: InMemoryFormService }
],
encapsulation: ViewEncapsulation.None
})
@@ -87,10 +87,7 @@ export class FormComponent implements OnInit, OnDestroy {
try {
this.parseForm();
} catch (error) {
- this.notificationService.openSnackMessage(
- 'Wrong form configuration',
- 4000
- );
+ this.notificationService.openSnackMessage('Wrong form configuration');
}
}
@@ -99,9 +96,9 @@ export class FormComponent implements OnInit, OnDestroy {
}
onConfigAdded($event: any): void {
- let file = $event.currentTarget.files[0];
+ const file = $event.currentTarget.files[0];
- let fileReader = new FileReader();
+ const fileReader = new FileReader();
fileReader.onload = () => {
this.formConfig = fileReader.result;
};
diff --git a/demo-shell/src/app/components/home/home.component.scss b/demo-shell/src/app/components/home/home.component.scss
index b89e03522e..762e540786 100644
--- a/demo-shell/src/app/components/home/home.component.scss
+++ b/demo-shell/src/app/components/home/home.component.scss
@@ -2,6 +2,7 @@
display: flex;
justify-content: center;
align-items: center;
+ height: 100%;
}
.adf-home-header-background {
diff --git a/demo-shell/src/app/components/permissions/demo-permissions.component.ts b/demo-shell/src/app/components/permissions/demo-permissions.component.ts
index c0bf66d7e2..d40bc426e0 100644
--- a/demo-shell/src/app/components/permissions/demo-permissions.component.ts
+++ b/demo-shell/src/app/components/permissions/demo-permissions.component.ts
@@ -70,10 +70,7 @@ export class DemoPermissionComponent implements OnInit {
showErrorMessage(error) {
const message = error.message ? error.message : error;
- this.notificationService.openSnackMessage(
- message,
- 4000
- );
+ this.notificationService.openSnackMessage(message);
}
}
diff --git a/demo-shell/src/app/components/process-list-demo/process-list-demo.component.ts b/demo-shell/src/app/components/process-list-demo/process-list-demo.component.ts
index 3d1fd144e8..76d46f6892 100644
--- a/demo-shell/src/app/components/process-list-demo/process-list-demo.component.ts
+++ b/demo-shell/src/app/components/process-list-demo/process-list-demo.component.ts
@@ -112,7 +112,7 @@ export class ProcessListDemoComponent implements OnInit {
this.size = parseInt(processFilter.processSize, 10);
}
if (processFilter.processPage) {
- let pageValue = parseInt(processFilter.processPage, 10);
+ const pageValue = parseInt(processFilter.processPage, 10);
this.page = pageValue > 0 ? pageValue - 1 : pageValue;
} else {
this.page = 0;
diff --git a/demo-shell/src/app/components/task-list-demo/task-list-demo.component.ts b/demo-shell/src/app/components/task-list-demo/task-list-demo.component.ts
index d3a44ca4c3..4bc4c16907 100644
--- a/demo-shell/src/app/components/task-list-demo/task-list-demo.component.ts
+++ b/demo-shell/src/app/components/task-list-demo/task-list-demo.component.ts
@@ -140,7 +140,7 @@ export class TaskListDemoComponent implements OnInit {
}
if (taskFilter.taskPage) {
- let pageValue = parseInt(taskFilter.taskPage, 10);
+ const pageValue = parseInt(taskFilter.taskPage, 10);
this.page = pageValue > 0 ? pageValue - 1 : pageValue;
} else {
this.page = 0;
@@ -150,7 +150,7 @@ export class TaskListDemoComponent implements OnInit {
}
setDueAfterFilter(date): string {
- let dueDateFilter = moment(date);
+ const dueDateFilter = moment(date);
dueDateFilter.set({
hour: 23,
minute: 59,
diff --git a/demo-shell/src/app/components/template-list/template-demo.component.html b/demo-shell/src/app/components/template-list/template-demo.component.html
index 83f8050c41..901123610f 100644
--- a/demo-shell/src/app/components/template-list/template-demo.component.html
+++ b/demo-shell/src/app/components/template-list/template-demo.component.html
@@ -31,6 +31,5 @@
This is a custom no content template
- cancel_presentation
diff --git a/demo-shell/src/app/components/trashcan/trashcan.component.html b/demo-shell/src/app/components/trashcan/trashcan.component.html
index 505778b790..0b3317a182 100644
--- a/demo-shell/src/app/components/trashcan/trashcan.component.html
+++ b/demo-shell/src/app/components/trashcan/trashcan.component.html
@@ -3,7 +3,7 @@
-
+
+
+
+```
+
+## Class members
+
+### Properties
+
+| Name | Type | Default value | Description |
+| ---- | ---- | ------------- | ----------- |
+| appName | `string` | | App id to fetch corresponding form and values. |
+| data | [`TaskVariableCloud`](../../../lib/process-services-cloud/src/lib/form/models/task-variable-cloud.model.ts)`[]` | | Custom form values map to be used with the rendered form. |
+| disableCompleteButton | `boolean` | false | If true then the `Complete` outcome button is shown but it will be disabled. |
+| disableStartProcessButton | `boolean` | false | If true then the `Start Process` outcome button is shown but it will be disabled. |
+| fieldValidators | [`FormFieldValidator`](../../../lib/core/form/components/widgets/core/form-field-validator.ts)`[]` | \[] | Contains a list of form field validator instances. |
+| form | [`FormCloud`](../../../lib/process-services-cloud/src/lib/form/models/form-cloud.model.ts) | | Underlying [form model](../../../lib/core/form/components/widgets/core/form.model.ts) instance. |
+| formId | `string` | | Task id to fetch corresponding form and values. |
+| nameNode | `string` | | Name to assign to the new node where the metadata are stored. |
+| path | `string` | | Path of the folder where the metadata will be stored. |
+| readOnly | `boolean` | false | Toggle readonly state of the form. Forces all form widgets to render as readonly if enabled. |
+| showCompleteButton | `boolean` | true | Toggle rendering of the `Complete` outcome button. |
+| showRefreshButton | `boolean` | true | Toggle rendering of the `Refresh` button. |
+| showSaveButton | `boolean` | true | Toggle rendering of the `Save` outcome button. |
+| showTitle | `boolean` | true | Toggle rendering of the form title. |
+| showValidationIcon | `boolean` | true | Toggle rendering of the validation icon next to the form title. |
+| taskId | `string` | | Task id to fetch corresponding form and values. |
+
+### Events
+
+| Name | Type | Description |
+| ---- | ---- | ----------- |
+| error | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`` | Emitted when any error occurs. |
+| executeOutcome | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`FormOutcomeEvent`](../../../lib/core/form/components/widgets/core/form-outcome-event.model.ts)`>` | Emitted when any outcome is executed. Default behaviour can be prevented via `event.preventDefault()`. |
+| formCompleted | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`FormCloud`](../../../lib/process-services-cloud/src/lib/form/models/form-cloud.model.ts)`>` | Emitted when the form is submitted with the `Complete` outcome. |
+| formContentClicked | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`` | |
+| formDataRefreshed | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`FormCloud`](../../../lib/process-services-cloud/src/lib/form/models/form-cloud.model.ts)`>` | Emitted when form values are refreshed due to a data property change. |
+| formError | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`FormFieldModel`](../../core/models/form-field.model.md)`[]>` | Emitted when the supplied form values have a validation error. |
+| formLoaded | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`FormCloud`](../../../lib/process-services-cloud/src/lib/form/models/form-cloud.model.ts)`>` | Emitted when the form is loaded or reloaded. |
+| formSaved | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`FormCloud`](../../../lib/process-services-cloud/src/lib/form/models/form-cloud.model.ts)`>` | Emitted when the form is submitted with the `Save` or custom outcomes. |
+
+## Details
+
+All `formXXX` events receive a [`FormCloudModel`](../../../lib/process-services-cloud/src/lib/form/models/form-cloud.model.ts) instance as their argument:
+
+**MyView.component.html**
+
+```html
+
+
+```
+
+**MyView.component.ts**
+
+```ts
+onFormSaved(form: FormCloudModel) {
+ console.log(form);
+}
+```
+
+### Displaying a form
+
+There are various ways to display a form. The common scenarios are detailed below.
+
+#### Displaying a form instance by task id
+
+```html
+
+
+```
+
+For an existing Task both the form and its values will be fetched and displayed.
+
+#### Displaying a form definition by form id
+
+```html
+
+
+```
+
+In this case, only the form definition will be fetched.
+
+### Controlling outcome execution behaviour
+
+In unusual circumstances, you may need to take complete control of form outcome execution.
+You can do this by implementing the `executeOutcome` event, which is emitted for both system
+outcomes and custom ones.
+
+Note that by default, the code in your `executeOutcome` handler is executed _before_ the default
+behavior but you can switch the default behavior off using `event.preventDefault()`.
+You might want to do this, for example, to provide custom form validation or to show a summary
+of the form validation before it is submitted.
+
+**MyView.component.html**
+
+```html
+
+
+```
+
+**MyView.component.ts**
+
+```ts
+import { FormOutcomeEvent } from '@alfresco/adf-core';
+
+export class MyView {
+
+ validateForm(event: FormOutcomeEvent) {
+ let outcome = event.outcome;
+
+ // you can also get additional properties of outcomes
+ // if you defined them within outcome definition
+
+ if (outcome) {
+ let form = outcome.form;
+ if (form) {
+ // check/update the form here
+ event.preventDefault();
+ }
+ }
+ }
+
+}
+```
+
+There are two other functions that can be very useful when you need to control form outcomes:
+
+- `saveTaskForm()` - Saves the current form
+- `completeTaskForm(outcome?: string)` Saves and completes the form with a given outcome name
+
+### Field Validators
+
+You can supply a set of validator objects to the form using the `fieldValidators`
+property. Each validator implements a check for a particular type of data (eg, a
+date validator might check that the date in the field falls between 1980 and 2017).
+ADF supplies a standard set of validators that handle most common cases but you can
+also implement your own custom validators to replace or extend the set. See the
+[Form Field Validator](../../core/interfaces/form-field-validator.interface.md) interface for full details and examples.
+
+### Common scenarios
+
+#### Rendering a form using form definition JSON
+
+See the [demo-form](../../docassets/demo-cloud.form.json) file for an example of form definition JSON.
+
+The component below (with the JSON assigned to the `formDefinitionJSON` property), shows how a
+form definition is rendered:
+
+```ts
+@Component({
+ selector: 'sample-form',
+ template: ``
+})
+export class SampleFormComponent implements OnInit {
+
+ form: FormCloudModel;
+ formDefinitionJSON: any;
+
+ constructor(private formService: FormService) {
+ }
+
+ ngOnInit() {
+ this.form = this.formService.parseForm(this.formDefinitionJSON);
+ }
+}
+```
+
+#### Customizing the styles of form outcome buttons
+
+You can use normal CSS selectors to style the outcome buttons of your form.
+Every outcome has an CSS id value following a simple pattern:
+
+ adf-cloud-form-OUTCOME_NAME
+
+In the CSS, you can target any outcome ID and change the style as in this example:
+
+```css
+#adf-cloud-form-complete {
+ background-color: blue !important;
+ color: white;
+}
+
+
+#adf-cloud-form-save {
+ background-color: green !important;
+ color: white;
+}
+
+#adf-cloud-form-customoutcome {
+ background-color: yellow !important;
+ color: white;
+}
+```
+
+
+
+## See also
+
+- [Form Field Validator interface](../../core/interfaces/form-field-validator.interface.md)
+- [Extensibility](../../user-guide/extensibility.md)
+- [Form rendering service](../../core/services/form-rendering.service.md)
+- [Form field model](../../core/models/form-field.model.md)
+- [Form cloud service](../services/form-cloud.service.md)
diff --git a/docs/process-services-cloud/components/form-definition-selector-cloud.component.md b/docs/process-services-cloud/components/form-definition-selector-cloud.component.md
new file mode 100644
index 0000000000..2da112cdc3
--- /dev/null
+++ b/docs/process-services-cloud/components/form-definition-selector-cloud.component.md
@@ -0,0 +1,26 @@
+# [Form Definition Selector Cloud](../../../lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.ts "Defined in form-definition-selector-cloud.component.ts")
+
+Allows one form to be selected.
+
+## Basic Usage
+
+```html
+
+
+```
+
+## Class members
+
+### Properties
+
+| Name | Type | Default value | Description |
+| ---- | ---- | ------------- | ----------- |
+| appName | `string` | | Name of the application. If specified, this shows the users who have access to the app. |
+
+### Events
+
+| Name | Type | Description |
+| ---- | ---- | ----------- |
+| selectForm | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`` | Emitted when a form is selected. |
diff --git a/docs/process-services-cloud/components/people-cloud.component.md b/docs/process-services-cloud/components/people-cloud.component.md
index 9dff8da2e0..da3cc9df6b 100644
--- a/docs/process-services-cloud/components/people-cloud.component.md
+++ b/docs/process-services-cloud/components/people-cloud.component.md
@@ -28,7 +28,8 @@ Allows one or more users to be selected (with auto-suggestion) based on the inpu
| mode | `string` | | User selection mode (single/multiple). |
| preSelectUsers | [`IdentityUserModel`](../../../lib/core/userinfo/models/identity-user.model.ts)`[]` | | Array of users to be pre-selected. All users in the array are pre-selected in multi selection mode, but only the first user is pre-selected in single selection mode. Mandatory properties are: id, email, username |
| roles | `string[]` | | Role names of the users to be listed. |
-| validate | `Boolean` | false | This flag enables the validation on the preSelectUsers passed as input. In case the flag is true the components call the identity service to verify the validity of the information passed as input. Otherwise, no check will be done. |
+| title | `string` | | Placeholder translation key |
+| validate | `Boolean` | false | This flag enables the validation on the preSelectUsers passed as input. In case the flag is true the components call the [identity service](../../../lib/testing/src/lib/core/actions/identity/identity.service.ts) to verify the validity of the information passed as input. Otherwise, no check will be done. |
### Events
diff --git a/docs/process-services-cloud/components/process-header-cloud.component.md b/docs/process-services-cloud/components/process-header-cloud.component.md
index 5914593f4c..a32700ddfc 100644
--- a/docs/process-services-cloud/components/process-header-cloud.component.md
+++ b/docs/process-services-cloud/components/process-header-cloud.component.md
@@ -36,7 +36,7 @@ The component populates an internal array of
By default all properties are displayed:
-**_id_**, **_name_**, **_description_**, **_status_**, **_initiator_**, **_startDate_**, **_lastModified_**, **_parentId_**, **_businessKey_**.
+**_id_**, **_name_**, **_status_**, **_initiator_**, **_startDate_**, **_lastModified_**, **_parentId_**, **_businessKey_**.
However, you can also choose which properties to show using a configuration in `app.config.json`:
diff --git a/docs/process-services-cloud/components/process-list-cloud.component.md b/docs/process-services-cloud/components/process-list-cloud.component.md
index 478daa2f00..5b12220bed 100644
--- a/docs/process-services-cloud/components/process-list-cloud.component.md
+++ b/docs/process-services-cloud/components/process-list-cloud.component.md
@@ -50,7 +50,7 @@ when the process list is empty:
| Name | Type | Default value | Description |
| ---- | ---- | ------------- | ----------- |
-| appName | `string` | "" | The name of the application. |
+| appName | `string` | | The name of the application. |
| businessKey | `string` | "" | Filter the processes 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. |
@@ -172,9 +172,7 @@ The Process Instance List also supports pagination:
```html
```
+The configuration related to the pagination can be changed from the `app.config.json`, as described in the example below:
+
+```json
+"pagination": {
+ "size": 20,
+ "supportedPageSizes": [ 5, 10, 15, 20 ]
+},
+```
+
## See also
- [Data column component](../../core/components/data-column.component.md)
diff --git a/docs/process-services-cloud/components/task-form-cloud.component.md b/docs/process-services-cloud/components/task-form-cloud.component.md
new file mode 100644
index 0000000000..748b0837d1
--- /dev/null
+++ b/docs/process-services-cloud/components/task-form-cloud.component.md
@@ -0,0 +1,59 @@
+---
+Title: Form cloud component
+Added: v3.2.0
+Status: Active
+Last reviewed: 2019-04-17
+---
+
+# [Task form cloud component](../../../lib/process-services-cloud/src/lib/form/components/task-form-cloud.component.ts "Defined in task-form-cloud.component.ts")
+
+Shows a [`form`](../../../lib/process-services-cloud/src/lib/form/models/form-cloud.model.ts) for a task.
+
+## Contents
+
+- [Basic Usage](#basic-usage)
+- [Class members](#class-members)
+ - [Properties](#properties)
+ - [Events](#events)
+- [See also](#see-also)
+
+## Basic Usage
+
+```html
+
+
+```
+
+## Class members
+
+### Properties
+
+| Name | Type | Default value | Description |
+| ---- | ---- | ------------- | ----------- |
+| appName | `string` | | App id to fetch corresponding form and values. |
+| taskId | `string` | | Task id to fetch corresponding form and values. |
+| showRefreshButton | `boolean` | false | Toggle rendering of the `Refresh` button. |
+| showValidationIcon | `boolean` | true | Toggle rendering of the `Validation` icon. |
+| showCancelButton | `boolean` | true | Toggle rendering of the `Cancel` outcome button. |
+| showCompleteButton | `boolean` | true | Toggle rendering of the `Complete` outcome button. |
+| readOnly | `boolean` | false | Toggle readOnly state of the task. |
+
+### Events
+
+| Name | Type | Description |
+| ---- | ---- | ----------- |
+| formSaved | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`FormCloud`](../../../lib/process-services-cloud/src/lib/form/models/form-cloud.model.ts)`>` | Emitted when the form is saved. |
+| formCompleted | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`FormCloud`](../../../lib/process-services-cloud/src/lib/form/models/form-cloud.model.ts)`>` | Emitted when the form is submitted with the `Complete` outcome. |
+| taskCompleted | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`string`>` | Emitted when the task is completed. |
+| taskClaimed | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`string`>` | Emitted when the task is claimed. |
+| taskUnclaimed | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`string`>` | Emitted when the task is unclaimed. |
+| cancelClick | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`string`>` | Emitted when the cancel button is clicked. |
+| error | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`` | Emitted when any error occurs. |
+
+## See also
+
+- [Form component](./form-cloud.component.md)
+- [Form field model](../../core/models/form-field.model.md)
+- [Form cloud service](../services/form-cloud.service.md)
diff --git a/docs/process-services-cloud/components/task-header-cloud.component.md b/docs/process-services-cloud/components/task-header-cloud.component.md
index fa3ae215c9..22566c42b3 100644
--- a/docs/process-services-cloud/components/task-header-cloud.component.md
+++ b/docs/process-services-cloud/components/task-header-cloud.component.md
@@ -27,7 +27,6 @@ Shows all the information related to a task.
| Name | Type | Default value | Description |
| ---- | ---- | ------------- | ----------- |
| appName | `string` | | (Required) The name of the application. |
-| readOnly | `boolean` | false | Toggles Read Only Mode. This disables click selection and editing for all cells. |
| taskId | `string` | | (Required) The id of the task. |
### Events
diff --git a/docs/process-services-cloud/services/form-cloud.service.md b/docs/process-services-cloud/services/form-cloud.service.md
new file mode 100644
index 0000000000..0c06cef312
--- /dev/null
+++ b/docs/process-services-cloud/services/form-cloud.service.md
@@ -0,0 +1,90 @@
+---
+Title: Form cloud service
+Added: v3.2.0
+Status: Active
+Last reviewed: 2019-04-12
+---
+
+# [Form cloud service](../../../lib/process-services-cloud/src/lib/form/services/form-cloud.service.ts "Defined in form-cloud.service.ts")
+
+Implements Process Services form methods
+
+## Basic Usage
+
+```ts
+import { FormCloudService } from '@alfresco/adf-process-services-cloud';
+
+@Component(...)
+class MyComponent {
+
+ constructor(formCloudService: FormCloudService) {}
+
+}
+```
+
+## Class members
+
+### Methods
+
+- **completeTaskForm**(appName: `string`, taskId: `string`, formId: `string`, formValues: [`FormValues`](../../../lib/core/form/components/widgets/core/form-values.ts), outcome: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsCloudModel`](../../../lib/process-services-cloud/src/lib/task/start-task/models/task-details-cloud.model.ts)`>`
+ Completes a task form.
+ - _appName:_ `string` - Name of the app
+ - _taskId:_ `string` - ID of the target task
+ - _formId:_ `string` - ID of the form to complete
+ - _formValues:_ [`FormValues`](../../../lib/core/form/components/widgets/core/form-values.ts) - [Form](../../../lib/process-services/task-list/models/form.model.ts) values object
+ - _outcome:_ `string` - (Optional) [Form](../../../lib/process-services/task-list/models/form.model.ts) outcome
+ - **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsCloudModel`](../../../lib/process-services-cloud/src/lib/task/start-task/models/task-details-cloud.model.ts)`>` - Updated task details
+- **createTemporaryRawRelatedContent**(file: `any`, nodeId: `any`): [`Observable`](http://reactivex.io/documentation/observable.html)``
+
+ - _file:_ `any` -
+ - _nodeId:_ `any` -
+ - **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`` -
+
+- **getBasePath**(appName: `string`): `string`
+
+ - _appName:_ `string` -
+ - **Returns** `string` -
+
+- **getForm**(appName: `string`, taskId: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)``
+ Gets a form definition.
+ - _appName:_ `string` - Name of the app
+ - _taskId:_ `string` - ID of the target task
+ - **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`` - Form definition
+- **getProcessStorageFolderTask**(appName: `string`, taskId: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)``
+
+ - _appName:_ `string` -
+ - _taskId:_ `string` -
+ - **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`` -
+
+- **getTask**(appName: `string`, taskId: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsCloudModel`](../../../lib/process-services-cloud/src/lib/task/start-task/models/task-details-cloud.model.ts)`>`
+ Gets details of a task
+ - _appName:_ `string` - Name of the app
+ - _taskId:_ `string` - ID of the target task
+ - **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsCloudModel`](../../../lib/process-services-cloud/src/lib/task/start-task/models/task-details-cloud.model.ts)`>` - Details of the task
+- **getTaskForm**(appName: `string`, taskId: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)``
+ Gets the form definition of a task.
+ - _appName:_ `string` - Name of the app
+ - _taskId:_ `string` - ID of the target task
+ - **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`` - Form definition
+- **getTaskVariables**(appName: `string`, taskId: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskVariableCloud`](../../../lib/process-services-cloud/src/lib/form/models/task-variable-cloud.model.ts)`[]>`
+ Gets the variables of a task.
+ - _appName:_ `string` - Name of the app
+ - _taskId:_ `string` - ID of the target task
+ - **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskVariableCloud`](../../../lib/process-services-cloud/src/lib/form/models/task-variable-cloud.model.ts)`[]>` - Task variables
+- **parseForm**(json: `any`, data?: [`TaskVariableCloud`](../../../lib/process-services-cloud/src/lib/form/models/task-variable-cloud.model.ts)`[]`, readOnly: `boolean` = `false`): [`FormCloud`](../../../lib/process-services-cloud/src/lib/form/models/form-cloud.model.ts)
+ Parses JSON data to create a corresponding form.
+ - _json:_ `any` - JSON data to create the form
+ - _data:_ [`TaskVariableCloud`](../../../lib/process-services-cloud/src/lib/form/models/task-variable-cloud.model.ts)`[]` - (Optional) (Optional) Values for the form's fields
+ - _readOnly:_ `boolean` - Toggles whether or not the form should be read-only
+ - **Returns** [`FormCloud`](../../../lib/process-services-cloud/src/lib/form/models/form-cloud.model.ts) - [Form](../../../lib/process-services/task-list/models/form.model.ts) created from the JSON specification
+- **saveTaskForm**(appName: `string`, taskId: `string`, formId: `string`, formValues: [`FormValues`](../../../lib/core/form/components/widgets/core/form-values.ts)): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsCloudModel`](../../../lib/process-services-cloud/src/lib/task/start-task/models/task-details-cloud.model.ts)`>`
+ Saves a task form.
+ - _appName:_ `string` - Name of the app
+ - _taskId:_ `string` - ID of the target task
+ - _formId:_ `string` - ID of the form to save
+ - _formValues:_ [`FormValues`](../../../lib/core/form/components/widgets/core/form-values.ts) - [Form](../../../lib/process-services/task-list/models/form.model.ts) values object
+ - **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsCloudModel`](../../../lib/process-services-cloud/src/lib/task/start-task/models/task-details-cloud.model.ts)`>` - Updated task details
+
+## See also
+
+- [Form cloud component](../components/form-cloud.component.md)
diff --git a/docs/process-services-cloud/services/process-header-cloud.service.md b/docs/process-services-cloud/services/process-header-cloud.service.md
index 381fc9a2ae..bdabe7fdeb 100644
--- a/docs/process-services-cloud/services/process-header-cloud.service.md
+++ b/docs/process-services-cloud/services/process-header-cloud.service.md
@@ -13,6 +13,11 @@ Manages cloud process instances.
### Methods
+- **getBasePath**(appName: `string`): `string`
+
+ - _appName:_ `string` -
+ - **Returns** `string` -
+
- **getProcessInstanceById**(appName: `string`, processInstanceId: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`ProcessInstanceCloud`](../../../lib/process-services-cloud/src/lib/process/start-process/models/process-instance-cloud.model.ts)`>`
Gets details of a process instance.
- _appName:_ `string` - Name of the app
diff --git a/docs/process-services-cloud/services/process-list-cloud.service.md b/docs/process-services-cloud/services/process-list-cloud.service.md
index dc0261825d..30d836300b 100644
--- a/docs/process-services-cloud/services/process-list-cloud.service.md
+++ b/docs/process-services-cloud/services/process-list-cloud.service.md
@@ -13,6 +13,11 @@ Searches processes.
### Methods
+- **getBasePath**(appName: `string`): `string`
+
+ - _appName:_ `string` -
+ - **Returns** `string` -
+
- **getProcessByRequest**(requestNode: [`ProcessQueryCloudRequestModel`](../../../lib/process-services-cloud/src/lib/process/process-list/models/process-cloud-query-request.model.ts)): [`Observable`](http://reactivex.io/documentation/observable.html)``
Finds a process using an object with optional query properties.
- _requestNode:_ [`ProcessQueryCloudRequestModel`](../../../lib/process-services-cloud/src/lib/process/process-list/models/process-cloud-query-request.model.ts) - Query object
@@ -36,4 +41,4 @@ For example :
## See also
-- [App list cloud component](../components/app-list-cloud.component.md)
+- [App list cloud component](../components/app-list-cloud.component.md)
diff --git a/docs/process-services-cloud/services/start-process-cloud.service.md b/docs/process-services-cloud/services/start-process-cloud.service.md
index fa3c19b55e..466a9017b8 100644
--- a/docs/process-services-cloud/services/start-process-cloud.service.md
+++ b/docs/process-services-cloud/services/start-process-cloud.service.md
@@ -13,6 +13,11 @@ Gets process definitions and starts processes.
### Methods
+- **getBasePath**(appName: `string`): `string`
+
+ - _appName:_ `string` -
+ - **Returns** `string` -
+
- **getProcessDefinitions**(appName: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`ProcessDefinitionCloud`](../../../lib/process-services-cloud/src/lib/process/start-process/models/process-definition-cloud.model.ts)`[]>`
Gets the process definitions associated with an app.
- _appName:_ `string` - Name of the target app
diff --git a/docs/process-services-cloud/services/start-task-cloud.service.md b/docs/process-services-cloud/services/start-task-cloud.service.md
index d9aa6f3a35..05632e5dab 100644
--- a/docs/process-services-cloud/services/start-task-cloud.service.md
+++ b/docs/process-services-cloud/services/start-task-cloud.service.md
@@ -17,6 +17,10 @@ Starts standalone tasks.
Creates a new standalone task.
- _taskDetails:_ [`TaskDetailsCloudModel`](../../../lib/process-services-cloud/src/lib/task/start-task/models/task-details-cloud.model.ts) - Details of the task to create
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsCloudModel`](../../../lib/process-services-cloud/src/lib/task/start-task/models/task-details-cloud.model.ts)`>` - Details of the newly created task
+- **getBasePath**(appName: `string`): `string`
+
+ - _appName:_ `string` -
+ - **Returns** `string` -
## Details
diff --git a/docs/process-services-cloud/services/task-cloud.service.md b/docs/process-services-cloud/services/task-cloud.service.md
index 23ff3ae9dc..8589f850a3 100644
--- a/docs/process-services-cloud/services/task-cloud.service.md
+++ b/docs/process-services-cloud/services/task-cloud.service.md
@@ -36,6 +36,11 @@ Manages task cloud.
- _appName:_ `string` - Name of the app
- _taskId:_ `string` - ID of the task to complete
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsCloudModel`](../../../lib/process-services-cloud/src/lib/task/start-task/models/task-details-cloud.model.ts)`>` - Details of the task that was completed
+- **getBasePath**(appName: `string`): `string`
+
+ - _appName:_ `string` -
+ - **Returns** `string` -
+
- **getTaskById**(appName: `string`, taskId: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsCloudModel`](../../../lib/process-services-cloud/src/lib/task/start-task/models/task-details-cloud.model.ts)`>`
Gets details of a task.
- _appName:_ `string` - Name of the app
diff --git a/docs/process-services-cloud/services/task-list-cloud.service.md b/docs/process-services-cloud/services/task-list-cloud.service.md
index 36ab32c940..9151185ceb 100644
--- a/docs/process-services-cloud/services/task-list-cloud.service.md
+++ b/docs/process-services-cloud/services/task-list-cloud.service.md
@@ -13,6 +13,11 @@ Searches tasks.
### Methods
+- **getBasePath**(appName: `string`): `string`
+
+ - _appName:_ `string` -
+ - **Returns** `string` -
+
- **getTaskByRequest**(requestNode: [`TaskQueryCloudRequestModel`](../../../lib/process-services-cloud/src/lib/task/task-list/models/filter-cloud-model.ts)): [`Observable`](http://reactivex.io/documentation/observable.html)``
Finds a task using an object with optional query properties.
- _requestNode:_ [`TaskQueryCloudRequestModel`](../../../lib/process-services-cloud/src/lib/task/task-list/models/filter-cloud-model.ts) - Query object
diff --git a/docs/core/components/form.component.md b/docs/process-services/components/form.component.md
similarity index 95%
rename from docs/core/components/form.component.md
rename to docs/process-services/components/form.component.md
index dc5aa913d9..281684db21 100644
--- a/docs/core/components/form.component.md
+++ b/docs/process-services/components/form.component.md
@@ -5,7 +5,7 @@ Status: Active
Last reviewed: 2019-01-16
---
-# [Form component](../../../lib/core/form/components/form.component.ts "Defined in form.component.ts")
+# [Form component](../../../lib/process-services/form/form.component.ts "Defined in form.component.ts")
Shows a [`Form`](../../../lib/process-services/task-list/models/form.model.ts) from APS
@@ -67,7 +67,6 @@ Any content in the body of `` will be shown when no form definition is
| readOnly | `boolean` | false | Toggle readonly state of the form. Forces all form widgets to render as readonly if enabled. |
| saveMetadata | `boolean` | false | Toggle saving of form metadata. |
| showCompleteButton | `boolean` | true | Toggle rendering of the `Complete` outcome button. |
-| showDebugButton | `boolean` | false | Toggle debug options. |
| showRefreshButton | `boolean` | true | Toggle rendering of the `Refresh` button. |
| showSaveButton | `boolean` | true | Toggle rendering of the `Save` outcome button. |
| showTitle | `boolean` | true | Toggle rendering of the form title. |
@@ -279,7 +278,7 @@ could use this, say, to provide two alternative ways of entering the same inform
up default values that can be edited.
You can implement this in ADF using the `formFieldValueChanged` event of the
-[Form service](../services/form.service.md). For example, if you had a form with a dropdown widget (id: `type`)
+[Form service](../../core/services/form.service.md). For example, if you had a form with a dropdown widget (id: `type`)
and a multiline text (id:`description`), you could synchronize their values as follows:
```ts
@@ -305,7 +304,7 @@ The result should look like the following:
#### Responding to all form events
-Subscribe to the `formEvents` event of the [Form service](../services/form.service.md) to get notification
+Subscribe to the `formEvents` event of the [Form service](../../core/services/form.service.md) to get notification
of all form events:
```ts
@@ -361,8 +360,8 @@ Also, don't forget to set the `providers` property to `ALL` in the `app.config.j
## See also
-- [Form Field Validator interface](../interfaces/form-field-validator.interface.md)
+- [Form Field Validator interface](../../core/interfaces/form-field-validator.interface.md)
- [Extensibility](../../user-guide/extensibility.md)
-- [Form rendering service](../services/form-rendering.service.md)
-- [Form field model](../models/form-field.model.md)
-- [Form service](../services/form.service.md)
+- [Form rendering service](../../core/services/form-rendering.service.md)
+- [Form field model](../../core/models/form-field.model.md)
+- [Form service](../../core/services/form.service.md)
diff --git a/docs/process-services/components/process-filters.component.md b/docs/process-services/components/process-filters.component.md
index 09f63642ee..6f35ad45b1 100644
--- a/docs/process-services/components/process-filters.component.md
+++ b/docs/process-services/components/process-filters.component.md
@@ -17,7 +17,7 @@ Collection of criteria used to filter process instances, which may be customized
- [Events](#events)
- [Details](#details)
- [How filter the activiti process filters](#how-filter-the-activiti-process-filters)
- - [`FilterParamsModel`](../../../lib/process-services/task-list/models/filter.model.ts)
+ - [FilterParamsModel](#filterparamsmodel)
- [See also](#see-also)
## Basic Usage
diff --git a/docs/process-services/components/start-process.component.md b/docs/process-services/components/start-process.component.md
index fb1e5cee29..7b3eed1271 100644
--- a/docs/process-services/components/start-process.component.md
+++ b/docs/process-services/components/start-process.component.md
@@ -44,7 +44,7 @@ Starts a process.
| processFilterSelector | `boolean` | true | (optional) Parameter to enable selection of process when filtering. |
| showSelectProcessDropdown | `boolean` | true | Hide or show the process selection dropdown. |
| values | [`FormValues`](../../../lib/core/form/components/widgets/core/form-values.ts) | | Parameter to pass form field values in the start form if one is associated. |
-| variables | [`ProcessInstanceVariable`](../../../lib/process-services/process-list/models/process-instance-variable.model.ts)`[]` | | Variables in the input to the process [RestVariable](https://github.com/Alfresco/alfresco-js-api/tree/master/src/alfresco-activiti-rest-api/docs/RestVariable.md). |
+| variables | [`ProcessInstanceVariable`](../../../lib/process-services/process-list/models/process-instance-variable.model.ts)`[]` | | Variables in the input to the process [`RestVariable`](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/activiti-rest-api/docs/RestVariable.md). |
### Events
diff --git a/docs/process-services/services/process-filter.service.md b/docs/process-services/services/process-filter.service.md
index a77588b9e7..6cb6c30fa5 100644
--- a/docs/process-services/services/process-filter.service.md
+++ b/docs/process-services/services/process-filter.service.md
@@ -17,10 +17,10 @@ Manage Process Filters, which are pre-configured Process Instance queries.
Adds a filter.
- _filter:_ [`FilterProcessRepresentationModel`](../../../lib/process-services/process-list/models/filter-process.model.ts) - The filter to add
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`FilterProcessRepresentationModel`](../../../lib/process-services/process-list/models/filter-process.model.ts)`>` - The filter just added
-- **callApiProcessFilters**(appId?: `number`): `any`
+- **callApiProcessFilters**(appId?: `number`): [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises)`<`[`ResultListDataRepresentationUserProcessInstanceFilterRepresentation`](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/activiti-rest-api/docs/ResultListDataRepresentation%C2%ABUserProcessInstanceFilterRepresentation%C2%BB.md)`>`
Calls `getUserProcessInstanceFilters` from the Alfresco JS API.
- _appId:_ `number` - (Optional) ID of the target app
- - **Returns** `any` - List of filter details
+ - **Returns** [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises)`<`[`ResultListDataRepresentationUserProcessInstanceFilterRepresentation`](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/activiti-rest-api/docs/ResultListDataRepresentation%C2%ABUserProcessInstanceFilterRepresentation%C2%BB.md)`>` - List of filter details
- **createDefaultFilters**(appId: `number`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`FilterProcessRepresentationModel`](../../../lib/process-services/process-list/models/filter-process.model.ts)`[]>`
Creates and returns the default filters for an app.
- _appId:_ `number` - ID of the target app
diff --git a/docs/process-services/services/process.service.md b/docs/process-services/services/process.service.md
index 644c1e6c5c..d95a63c6d1 100644
--- a/docs/process-services/services/process.service.md
+++ b/docs/process-services/services/process.service.md
@@ -17,10 +17,10 @@ Manages process instances, process variables, and process audit Log.
Cancels a process instance.
- _processInstanceId:_ `string` - ID of process to cancel
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`` - Null response notifying when the operation is complete
-- **createOrUpdateProcessInstanceVariables**(processInstanceId: `string`, variables: `RestVariable[]`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`ProcessInstanceVariable`](../../../lib/process-services/process-list/models/process-instance-variable.model.ts)`[]>`
+- **createOrUpdateProcessInstanceVariables**(processInstanceId: `string`, variables: [`RestVariable`](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/activiti-rest-api/docs/RestVariable.md)`[]`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`ProcessInstanceVariable`](../../../lib/process-services/process-list/models/process-instance-variable.model.ts)`[]>`
Creates or updates variables for a process instance.
- _processInstanceId:_ `string` - ID of the target process
- - _variables:_ `RestVariable[]` - Variables to update
+ - _variables:_ [`RestVariable`](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/activiti-rest-api/docs/RestVariable.md)`[]` - Variables to update
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`ProcessInstanceVariable`](../../../lib/process-services/process-list/models/process-instance-variable.model.ts)`[]>` - Array of instance variable info
- **deleteProcessInstanceVariable**(processInstanceId: `string`, variableName: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)``
Deletes a variable for a process instance.
@@ -39,10 +39,10 @@ Manages process instances, process variables, and process audit Log.
Gets Process Instance metadata.
- _processInstanceId:_ `string` - ID of the target process
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`ProcessInstance`](../../../lib/process-services/process-list/models/process-instance.model.ts)`>` - Metadata for the instance
-- **getProcessDefinitions**(appId?: `number`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`ProcessDefinitionRepresentation`](../../../lib/process-services/process-list/models/process-definition.model.ts)`[]>`
+- **getProcessDefinitions**(appId?: `number`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`ProcessDefinitionRepresentation`](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/activiti-rest-api/docs/ProcessDefinitionRepresentation.md)`[]>`
Gets process definitions associated with an app.
- _appId:_ `number` - (Optional) ID of a target app
- - **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`ProcessDefinitionRepresentation`](../../../lib/process-services/process-list/models/process-definition.model.ts)`[]>` - Array of process definitions
+ - **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`ProcessDefinitionRepresentation`](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/activiti-rest-api/docs/ProcessDefinitionRepresentation.md)`[]>` - Array of process definitions
- **getProcessInstanceVariables**(processInstanceId: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`ProcessInstanceVariable`](../../../lib/process-services/process-list/models/process-instance-variable.model.ts)`[]>`
Gets the variables for a process instance.
- _processInstanceId:_ `string` - ID of the target process
diff --git a/docs/process-services/services/tasklist.service.md b/docs/process-services/services/tasklist.service.md
index da5d24525c..fe3b84a713 100644
--- a/docs/process-services/services/tasklist.service.md
+++ b/docs/process-services/services/tasklist.service.md
@@ -36,10 +36,10 @@ Manages Task Instances.
Claims a task for the current user.
- _taskId:_ `string` - ID of the task to claim
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsModel`](../../../lib/process-services/task-list/models/task-details.model.ts)`>` - Details of the claimed task
-- **completeTask**(taskId: `string`): `any`
+- **completeTask**(taskId: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)``
Gives completed status to a task.
- _taskId:_ `string` - ID of the target task
- - **Returns** `any` - Null response notifying when the operation is complete
+ - **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`` - Null response notifying when the operation is complete
- **createNewTask**(task: [`TaskDetailsModel`](../../../lib/process-services/task-list/models/task-details.model.ts)): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsModel`](../../../lib/process-services/task-list/models/task-details.model.ts)`>`
Creates a new standalone task.
- _task:_ [`TaskDetailsModel`](../../../lib/process-services/task-list/models/task-details.model.ts) - Details of the new task
@@ -110,7 +110,7 @@ Manages Task Instances.
- **updateTask**(taskId: `any`, updated: `any`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsModel`](../../../lib/process-services/task-list/models/task-details.model.ts)`>`
Updates the details (name, description, due date) for a task.
- _taskId:_ `any` - ID of the task to update
- - _updated:_ `any` - Data to update the task (as a `TaskUpdateRepresentation` instance).
+ - _updated:_ `any` - Data to update the task (as a [`TaskUpdateRepresentation`](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/activiti-rest-api/docs/TaskUpdateRepresentation.md) instance).
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`TaskDetailsModel`](../../../lib/process-services/task-list/models/task-details.model.ts)`>` - Updated task details
## Details
diff --git a/docs/release-notes/README.md b/docs/release-notes/README.md
index e2daf1d303..12114294d4 100644
--- a/docs/release-notes/README.md
+++ b/docs/release-notes/README.md
@@ -9,6 +9,7 @@ The first **General available** release was v2.0.0.
## General available
+- [3.2.0](RelNote320.md)
- [3.1.0](RelNote310.md)
- [3.0.0](RelNote300.md)
- [2.6.0](RelNote260.md)
diff --git a/docs/release-notes/RelNote161.md b/docs/release-notes/RelNote161.md
index 6e43800c37..495e8d9944 100644
--- a/docs/release-notes/RelNote161.md
+++ b/docs/release-notes/RelNote161.md
@@ -422,8 +422,8 @@ Below you can find a detailed list of tickets addressed in the new release. For
- \[[ADF-810](https://issues.alfresco.com/jira/browse/ADF-810)] - Radio button list is selecting the first value behind the scenes when nothing is selected - 1963 Github
- \[[ADF-833](https://issues.alfresco.com/jira/browse/ADF-833)] - Data table - single and double click
- \[[ADF-842](https://issues.alfresco.com/jira/browse/ADF-842)] - Error is received in console log when a form is completed
-- \[[ADF-883](https://issues.alfresco.com/jira/browse/ADF-883)] - [`UserInfo`](../../lib/content-services/document-list/models/document-library.model.ts) - Build errors
-- \[[ADF-884](https://issues.alfresco.com/jira/browse/ADF-884)] - [`FormComponent`](../core/components/form.component.md) - Compilation error
+- \[[ADF-883](https://issues.alfresco.com/jira/browse/ADF-883)] - [`UserInfo`](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/content-rest-api/docs/UserInfo.md) - Build errors
+- \[[ADF-884](https://issues.alfresco.com/jira/browse/ADF-884)] - [`FormComponent`](../process-services/components/form.component.md) - Compilation error
- \[[ADF-893](https://issues.alfresco.com/jira/browse/ADF-893)] - Create Attachment Task/Process - Compilation error
- \[[ADF-897](https://issues.alfresco.com/jira/browse/ADF-897)] - ActivitiPeopleList - use the prexif adf
- \[[ADF-906](https://issues.alfresco.com/jira/browse/ADF-906)] - data property on activiti-form component do not react on changes - 2007 Github
diff --git a/docs/release-notes/RelNote170.md b/docs/release-notes/RelNote170.md
index 272311d50a..337110e61a 100644
--- a/docs/release-notes/RelNote170.md
+++ b/docs/release-notes/RelNote170.md
@@ -246,8 +246,8 @@ Two new methods has been added into the alfresco-js-api to support retrieve the
| API | Name | HTTP method | URL | Description |
| --- | ---- | ----------- | --- | ----------- |
-| _ActivitiPublicRestApi.TaskApi_ | [**getTaskAuditJson**](https://github.com/Alfresco/alfresco-js-api/blob/a82ce3bbe56cb0944f8771d14193704b571adf96/src/alfresco-activiti-rest-api/docs/TaskApi.md#getTaskAuditJson) | **GET** | /api/enterprise/tasks/{taskId}/audit | Retrieve audit infromation in json format |
-| _ActivitiPublicRestApi.TaskApi_ | [**getTaskAuditPdf**](https://github.com/Alfresco/alfresco-js-api/blob/a82ce3bbe56cb0944f8771d14193704b571adf96/src/alfresco-activiti-rest-api/docs/TaskApi.md#getTaskAuditPdf) | **GET** | /app/rest/tasks/{taskId}/audit | Retrieve the task audit infromation in pdf format |
+| _ActivitiPublicRestApi.[TaskApi](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api-legacy/activiti-rest-api/docs/TaskApi.md)_ | [**getTaskAuditJson**](https://github.com/Alfresco/alfresco-js-api/blob/a82ce3bbe56cb0944f8771d14193704b571adf96/src/alfresco-activiti-rest-api/docs/TaskApi.md#getTaskAuditJson) | **GET** | /api/enterprise/tasks/{taskId}/audit | Retrieve audit infromation in json format |
+| _ActivitiPublicRestApi.[TaskApi](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api-legacy/activiti-rest-api/docs/TaskApi.md)_ | [**getTaskAuditPdf**](https://github.com/Alfresco/alfresco-js-api/blob/a82ce3bbe56cb0944f8771d14193704b571adf96/src/alfresco-activiti-rest-api/docs/TaskApi.md#getTaskAuditPdf) | **GET** | /app/rest/tasks/{taskId}/audit | Retrieve the task audit infromation in pdf format |
For further details about those endepoints please refer to the [official documentation](https://github.com/Alfresco/alfresco-js-api/blob/master/src/alfresco-activiti-rest-api/docs/TaskApi.md)
@@ -343,7 +343,7 @@ Release Notes - Apps Development Framework - Version 1.7.
- \[[ADF-819](https://issues.alfresco.com/jira/browse/ADF-819)] - Snackbar does not appear when uploading files via DnD
- \[[ADF-923](https://issues.alfresco.com/jira/browse/ADF-923)] - Involved user should not be able to see 'Complete' button as active in a task.
- \[[ADF-939](https://issues.alfresco.com/jira/browse/ADF-939)] - [Login] Sign in button does not stay at the bottom
-- \[[ADF-943](https://issues.alfresco.com/jira/browse/ADF-943)] - APS ContentApi is not present on index.d.ts and SitesApi is not complete
+- \[[ADF-943](https://issues.alfresco.com/jira/browse/ADF-943)] - APS [ContentApi](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/content-rest-api/api/content.api.ts) is not present on index.d.ts and [SitesApi](https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/content-rest-api/api/sites.api.ts) is not complete
- \[[ADF-945](https://issues.alfresco.com/jira/browse/ADF-945)] - 'Undefined' is displayed in 'attach file' widget after restore.
- \[[ADF-950](https://issues.alfresco.com/jira/browse/ADF-950)] - when the [`Form`](../../lib/process-services/task-list/models/form.model.ts) in readonly mode you can edit the date
- \[[ADF-957](https://issues.alfresco.com/jira/browse/ADF-957)] - Duplicate Rest calls are made for fields where Rest end points are given
diff --git a/docs/release-notes/RelNote190.md b/docs/release-notes/RelNote190.md
index 6889541ad8..7daf7ca80b 100644
--- a/docs/release-notes/RelNote190.md
+++ b/docs/release-notes/RelNote190.md
@@ -350,7 +350,7 @@ Release Notes - Apps Development Framework - Version 1.9.
- \[[ADF-1249](https://issues.alfresco.com/jira/browse/ADF-1249)] - Remove mdl from ng2-activiti-diagrams
- \[[ADF-1250](https://issues.alfresco.com/jira/browse/ADF-1250)] - Remove mdl from ng2-activiti-analytics
- \[[ADF-1251](https://issues.alfresco.com/jira/browse/ADF-1251)] - Remove mdl from demo shell
-- \[[ADF-1492](https://issues.alfresco.com/jira/browse/ADF-1492)] - Document List - Export [`ContentNodeSelectorComponent`](../content-services/components/content-node-selector.component.md) and [ContentNodeSelectorComponentData](../../lib/content-services/content-node-selector/content-node-selector.component-data.interface.ts)
+- \[[ADF-1492](https://issues.alfresco.com/jira/browse/ADF-1492)] - Document List - Export [`ContentNodeSelectorComponent`](../content-services/components/content-node-selector.component.md) and [`ContentNodeSelectorComponentData`](../../lib/content-services/content-node-selector/content-node-selector.component-data.interface.ts)
- \[[ADF-1496](https://issues.alfresco.com/jira/browse/ADF-1496)] - Remove "Disable upload button when user has no permissions" switch.
- \[[ADF-1504](https://issues.alfresco.com/jira/browse/ADF-1504)] - Rename UserInfoComponentModule to [`UserInfoModule`](../../lib/core/userinfo/userinfo.module.ts)
- \[[ADF-1515](https://issues.alfresco.com/jira/browse/ADF-1515)] - Internationalization - ADF strings review
diff --git a/docs/release-notes/RelNote200.md b/docs/release-notes/RelNote200.md
index 26ba665fe2..a82a38475d 100644
--- a/docs/release-notes/RelNote200.md
+++ b/docs/release-notes/RelNote200.md
@@ -232,7 +232,7 @@ For more details please refer to [Upload button documentation](../content-servic
### 8. Register Alfresco file type icons within the mat-icon
-All the ADF MIME type icons are now registered into the [MatIconRegistry](https://material.angular.io/components/icon/api). This improvement allows you to use all the icons through the mat-icon tag:
+All the ADF MIME type icons are now registered into the [`MatIconRegistry`](https://material.angular.io/components/icon/api). This improvement allows you to use all the icons through the mat-icon tag:

@@ -256,7 +256,7 @@ The [log service](../core/services/log.service.md) provides 6 level of logs: TRA
### 10. Favorite node directive
-The [NodeFavoriteDirective](../core/directives/node-favorite.directive.md) instance can be bound to a button to retrieve and manage a favorites node list:
+The [`NodeFavoriteDirective`](../core/directives/node-favorite.directive.md) instance can be bound to a button to retrieve and manage a favorites node list:
@@ -107,7 +107,7 @@ A configurable delete button has been added to the **Tag [Node](https://github.c
### Validation summary support for form component
-The **[Form](../../lib/process-services/task-list/models/form.model.ts) Component** will now use the **formError** event to send a validation summary for all the fields with errors. This will be useful particularly with big forms for showing which fields are in error without scrolling the whole form by creating a summary.
+The **[`Form`](../../lib/process-services/task-list/models/form.model.ts) Component** will now use the **formError** event to send a validation summary for all the fields with errors. This will be useful particularly with big forms for showing which fields are in error without scrolling the whole form by creating a summary.