mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[ADF-1549] Added doc files for Processlist library (#2353)
This commit is contained in:
parent
a41afe0dbd
commit
99f12b18a4
22
docIndex.md
22
docIndex.md
@ -238,22 +238,22 @@ Contains the Processlist component and other related items. See the library's
|
||||
[README file](ng2-components/ng2-activiti-processlist/README.md)
|
||||
for more information about installing and using the source code.
|
||||
|
||||
<!-- xxxng2-activiti-processlist start -->
|
||||
<!-- ng2-activiti-processlist start -->
|
||||
**Documented**
|
||||
|
||||
- [Processlist component](ng2-components/ng2-activiti-processlist/README.md)
|
||||
- [Process filters component](ng2-components/ng2-activiti-processlist/README.md)
|
||||
- [Start process component](ng2-components/ng2-activiti-processlist/README.md)
|
||||
- [Process instance details component](ng2-components/ng2-activiti-processlist/README.md)
|
||||
- [Process instance tasks component](ng2-components/ng2-activiti-processlist/README.md)
|
||||
- [Process comments component](ng2-components/ng2-activiti-processlist/README.md)
|
||||
- [Process attachment list component](ng2-components/ng2-activiti-processlist/README.md)
|
||||
- [Create process attachment component](ng2-components/ng2-activiti-processlist/README.md)
|
||||
- [Process audit directive](ng2-components/ng2-activiti-processlist/README.md)
|
||||
- [Create process attachment component](docs/create-process-attachment.component.md)
|
||||
- [Process attachment list component](docs/process-attachment-list.component.md)
|
||||
- [Process audit directive](docs/process-audit.directive.md)
|
||||
- [Process comments component](docs/process-comments.component.md)
|
||||
- [Process filters component](docs/process-filters.component.md)
|
||||
- [Process instance details component](docs/process-instance-details.component.md)
|
||||
- [Process instance header component](docs/process-instance-header.component.md)
|
||||
- [Process instance tasks component](docs/process-instance-tasks.component.md)
|
||||
- [Processlist component](docs/processlist.component.md)
|
||||
- [Start process component](docs/start-process.component.md)
|
||||
|
||||
**Undocumented**
|
||||
|
||||
- [Process instance header component](ng2-components/ng2-activiti-processlist/src/components/process-instance-header.component.ts)
|
||||
- [Filter process model](ng2-components/ng2-activiti-processlist/src/models/filter-process.model.ts)
|
||||
- [Process definition model](ng2-components/ng2-activiti-processlist/src/models/process-definition.model.ts)
|
||||
- [Process instance filter model](ng2-components/ng2-activiti-processlist/src/models/process-instance-filter.model.ts)
|
||||
|
BIN
docassets/images/adf-process-audit-directive.png
Normal file
BIN
docassets/images/adf-process-audit-directive.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
docassets/images/adf-process-instance-header-attachment.png
Normal file
BIN
docassets/images/adf-process-instance-header-attachment.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
docassets/images/process-create-attachment.png
Normal file
BIN
docassets/images/process-create-attachment.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
BIN
docassets/images/startProcess.png
Normal file
BIN
docassets/images/startProcess.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
40
docs/create-process-attachment.component.md
Normal file
40
docs/create-process-attachment.component.md
Normal file
@ -0,0 +1,40 @@
|
||||
# Create Process Attachment component
|
||||
|
||||
Displays Upload Component(Drag and Click) to upload the attachment to a specified process instance
|
||||
|
||||

|
||||
|
||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
- [Basic Usage](#basic-usage)
|
||||
* [Properties](#properties)
|
||||
* [Events](#events)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
<!-- markdown-toc end -->
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```html
|
||||
<adf-create-process-attachment
|
||||
[processInstanceId]="YOUR_PROCESS_INSTANCE_ID"
|
||||
(error)="YOUR_CREATE_ATTACHMENT_ERROR_HANDLER"
|
||||
(success)="YOUR_CREATE_ATTACHMENT_SUCCESS_HANDLER">
|
||||
</adf-create-process-attachment>
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| processInstanceId | string | (**required**): The ID of the process instance to display |
|
||||
|
||||
### Events
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| error | Raised when the error occurred while creating/uploading the attachment by the user from within the component |
|
||||
| success | Raised when the attachment created/uploaded successfully from within the component |
|
39
docs/process-attachment-list.component.md
Normal file
39
docs/process-attachment-list.component.md
Normal file
@ -0,0 +1,39 @@
|
||||
# Process Attachment List component
|
||||
|
||||
Displays attached documents on a specified process instance
|
||||
|
||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
- [Basic Usage](#basic-usage)
|
||||
* [Properties](#properties)
|
||||
* [Events](#events)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
<!-- markdown-toc end -->
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```html
|
||||
<adf-process-attachment-list
|
||||
[processInstanceId]="YOUR_PROCESS_INSTANCE_ID"
|
||||
(attachmentClick)="YOUR_ATTACHMENT_CLICK_EMITTER_HANDLER">
|
||||
</adf-process-attachment-list>
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | -- |
|
||||
| processInstanceId | string | (**required**): The ID of the process instance to display |
|
||||
| disabled | boolean | false | Disable/Enable read only mode for attachement list |
|
||||
|
||||
### Events
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| attachmentClick | Raised when the attachment double clicked or selected view option from context menu by the user from within the component and return a Blob obj of the object clicker|
|
||||
| success | Raised when the attachment list fetch all the attach and return a list of attachments |
|
||||
| error | Raised when the attachment list is not able to fetch the attachments for example network error |
|
46
docs/process-audit.directive.md
Normal file
46
docs/process-audit.directive.md
Normal file
@ -0,0 +1,46 @@
|
||||
# Process Audit Directive
|
||||
|
||||
Provide a way to fetch the Process Audit information in the pdf or json format.
|
||||
|
||||

|
||||
|
||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
- [Basic Usage](#basic-usage)
|
||||
* [Properties](#properties)
|
||||
* [Events](#events)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
<!-- markdown-toc end -->
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```html
|
||||
<button
|
||||
adf-process-audit
|
||||
[process-id]="processId"
|
||||
[format]="'pdf'"
|
||||
[download]="true"
|
||||
md-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)" >
|
||||
<md-icon>assignment_ind</md-icon>
|
||||
</button>
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| taskId | string | | (**required**) The id of the task. |
|
||||
| format | string | pdf | In whitch format you want the task audit information (pdf or json). |
|
||||
| download | boolean | false | True If you want download the file on the click event. |
|
||||
| fileName | string | Audit | Represent the name of the file to download in case the format is pdf. |
|
||||
|
||||
### Events
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| clicked | Raised when the task audit info is ready |
|
||||
| error | Raised if there is an error during fetching task information |
|
28
docs/process-comments.component.md
Normal file
28
docs/process-comments.component.md
Normal file
@ -0,0 +1,28 @@
|
||||
# Process Instance Comments component
|
||||
|
||||
Displays comments associated with a particular process instance and allows the user to add new comments
|
||||
|
||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
- [Basic Usage](#basic-usage)
|
||||
* [Properties](#properties)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
<!-- markdown-toc end -->
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```html
|
||||
<adf-process-instance-comments
|
||||
processInstanceId="YOUR_PROCESS_INSTANCE_ID">
|
||||
</adf-process-instance-comments>
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| processInstanceId | string | (**required**): The numeric ID of the process instance to display comments for |
|
102
docs/process-filters.component.md
Normal file
102
docs/process-filters.component.md
Normal file
@ -0,0 +1,102 @@
|
||||
# Process Filters Component
|
||||
|
||||
Collection of criteria used to filter process instances, which may be customized by users.
|
||||
|
||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
- [Basic Usage](#basic-usage)
|
||||
* [Properties](#properties)
|
||||
* [Events](#events)
|
||||
- [Details](#details)
|
||||
* [How filter the activiti process filters](#how-filter-the-activiti-process-filters)
|
||||
* [FilterParamsModel](#filterparamsmodel)
|
||||
* [How to create an accordion menu with the processes filter](#how-to-create-an-accordion-menu-with-the-processes-filter)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
<!-- markdown-toc end -->
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```html
|
||||
<adf-process-instance-filters
|
||||
appId="1001">
|
||||
</adf-process-instance-filters>
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| filterParam | [FilterParamsModel](#filterparamsmodel) | The params to filter the task filter. If there is no match the default one (first filter of the list) is selected |
|
||||
| appId | string | Display filters available to the current user for the application with the specified ID. |
|
||||
| appName | string | Display filters available to the current user for the application with the specified name. |
|
||||
| hasIcon | boolean | Toggle to show or not the filter's icon. |
|
||||
|
||||
If both `appId` and `appName` are specified then `appName` will take precedence and `appId` will be ignored.
|
||||
|
||||
### Events
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| onSuccess | Raised when the list of filters has been successfully loaded from the server |
|
||||
| onError | Raised when an error occurs |
|
||||
| filterClick | Raised when the user selects a filter from the list |
|
||||
|
||||
## Details
|
||||
|
||||
This component displays a list of available filters and allows the user to select any given
|
||||
filter as the active filter.
|
||||
|
||||
The most common usage is in driving a process instance list to allow the user to choose which
|
||||
process instances are displayed in the list.
|
||||
|
||||
### How filter the activiti process filters
|
||||
|
||||
```html
|
||||
<adf-process-instance-filters
|
||||
[filterParam]="{index: 0}">
|
||||
</adf-filters>
|
||||
```
|
||||
|
||||
You can use inside the filterParam one of the properties defined by [FilterParamsModel](#filterparamsmodel) (see below).
|
||||
|
||||
### FilterParamsModel
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "number",
|
||||
"name": "string",
|
||||
"index": "number"
|
||||
}
|
||||
```
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| id | string | The id of the task filter. |
|
||||
| name | string | The name of the task filter, lowercase is checked. |
|
||||
| index | number | Zero-based position of the filter in the array. |
|
||||
|
||||
### How to create an accordion menu with the processes filter
|
||||
|
||||
You can create an accordion menu using the AccordionComponent that wrap the activiti task filter.
|
||||
The AccordionComponent is exposed by the alfresco-core.
|
||||
|
||||
```html
|
||||
<adf-accordion>
|
||||
<adf-accordion-group
|
||||
[heading]="'Processes'"
|
||||
[isSelected]="true"
|
||||
[headingIcon]="'assessment'">
|
||||
<adf-process-instance-filters
|
||||
[appId]="appId"
|
||||
(filterClick)="onProcessFilterClick($event)"
|
||||
(onSuccess)="onSuccessProcessFilterList($event)">
|
||||
</adf-process-instance-filters>
|
||||
</adf-accordion-group>
|
||||
</adf-accordion>
|
||||
```
|
||||
|
||||

|
37
docs/process-instance-details.component.md
Normal file
37
docs/process-instance-details.component.md
Normal file
@ -0,0 +1,37 @@
|
||||
# Process Details component
|
||||
|
||||
Displays detailed information on a specified process instance
|
||||
|
||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
- [Basic Usage](#basic-usage)
|
||||
* [Properties](#properties)
|
||||
* [Events](#events)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
<!-- markdown-toc end -->
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```html
|
||||
<adf-process-instance-details
|
||||
processInstanceId="YOUR_PROCESS_INSTANCE_ID">
|
||||
</adf-process-instance-details>
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| processInstanceId | string | (required): The numeric ID of the process instance to display |
|
||||
|
||||
### Events
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| processCancelledEmitter | Raised when the current process is cancelled by the user from within the component |
|
||||
| taskFormCompletedEmitter | Raised when the form associated with an active task is completed from within the component |
|
||||
| showProcessDiagram | Raised when the show diagram button is clicked |
|
35
docs/process-instance-header.component.md
Normal file
35
docs/process-instance-header.component.md
Normal file
@ -0,0 +1,35 @@
|
||||
# Process Instance Details Header component
|
||||
|
||||
Sub-component of the process details component, which renders some general information about the selected process.
|
||||
|
||||

|
||||
|
||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
- [Basic Usage](#basic-usage)
|
||||
* [Properties](#properties)
|
||||
+ [Events](#events)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
<!-- markdown-toc end -->
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```html
|
||||
<adf-process-instance-header
|
||||
processInstance="localProcessDetails">
|
||||
</adf-process-instance-details>
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type| Description |
|
||||
| --- | --- | --- |
|
||||
| processInstance | [ProcessInstanceModel](https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-activiti-processlist/src/models/process-instance.model.ts) | (**required**): Full details of the process instance to display information about |
|
||||
|
||||
#### Events
|
||||
|
||||
This component does not define any events.
|
37
docs/process-instance-tasks.component.md
Normal file
37
docs/process-instance-tasks.component.md
Normal file
@ -0,0 +1,37 @@
|
||||
# Process Instance Tasks component
|
||||
|
||||
Lists both the active and completed tasks associated with a particular process instance
|
||||
|
||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
- [Basic Usage](#basic-usage)
|
||||
* [Properties](#properties)
|
||||
* [Events](#events)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
<!-- markdown-toc end -->
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```html
|
||||
<adf-process-instance-tasks
|
||||
processInstanceId="YOUR_PROCESS_INSTANCE_ID"
|
||||
showRefreshButton="true">
|
||||
</adf-process-instance-tasks>
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| processInstanceId | string | (**required**): The ID of the process instance to display tasks for |
|
||||
| showRefreshButton | boolean | (default: `true`): Whether to show a refresh button next to the list of tasks to allow this to be updated from the server |
|
||||
|
||||
### Events
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| taskFormCompletedEmitter | Raised when the form associated with an active task is completed from within the component |
|
56
docs/processlist.component.md
Normal file
56
docs/processlist.component.md
Normal file
@ -0,0 +1,56 @@
|
||||
# Activiti Process Instance List
|
||||
|
||||
This component renders a list containing all the process instances matched by the parameters specified.
|
||||
|
||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
- [Basic Usage](#basic-usage)
|
||||
* [Properties](#properties)
|
||||
* [Events](#events)
|
||||
- [Details](#details)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
<!-- markdown-toc end -->
|
||||
|
||||
## Basic Usage
|
||||
|
||||
**app.component.html**
|
||||
|
||||
```html
|
||||
<adf-process-instance-list
|
||||
[appId]="'1'"
|
||||
[state]="'open'">
|
||||
</adf-process-instance-list>
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| appId | The id of the app. |
|
||||
| processDefinitionKey | The processDefinitionKey of the process. |
|
||||
| state | Define state of the processes. Possible values are `running`, `completed` and `all` |
|
||||
| sort | Define sort of the processes. Possible values are `created-desc`, `created-asc`, `ended-desc`, `ended-asc` |
|
||||
| schemaColumn | List of columns to display in the process instances datatable (see the [Details](#details) section below) |
|
||||
|
||||
### Events
|
||||
|
||||
- **rowClick**: Emitted when a row in the process list is clicked
|
||||
- **onSuccess**: Emitted when the list of process instances has been loaded successfully from the server
|
||||
- **onError**: Emitted when an error is encountered loading the list of process instances from the server
|
||||
|
||||
## Details
|
||||
|
||||
Example value for the schemaColumn property (see [Properties](#properties) section above):
|
||||
|
||||
```json
|
||||
[
|
||||
{type: 'text', key: 'id', title: 'Id', sortable: true},
|
||||
{type: 'text', key: 'name', title: 'Name', cssClass: 'full-width name-column', sortable: true},
|
||||
{type: 'text', key: 'started', title: 'Started', sortable: true},
|
||||
{type: 'text', key: 'startedBy.email', title: 'Started By', sortable: true}
|
||||
]
|
||||
```
|
40
docs/start-process.component.md
Normal file
40
docs/start-process.component.md
Normal file
@ -0,0 +1,40 @@
|
||||
# Start Process component
|
||||
|
||||
Displays Start Process, allowing the user to specify some basic details needed to start a new process instance.
|
||||
|
||||

|
||||
|
||||
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
- [Basic Usage](#basic-usage)
|
||||
* [Properties](#properties)
|
||||
* [Events](#events)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
<!-- markdown-toc end -->
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```html
|
||||
<adf-start-process
|
||||
appId="YOUR_APP_ID" >
|
||||
</adf-start-process>
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| appId | (required): Limit the list of processes which can be started to those contained in the specified app |
|
||||
| variables | Variables in input to the process [RestVariable](https://github.com/Alfresco/alfresco-js-api/tree/master/src/alfresco-activiti-rest-api/docs/RestVariable.md)|
|
||||
|
||||
### Events
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| start | Raised when the process start |
|
||||
| cancel | Raised when the process canceled |
|
||||
| error | Raised when the start process fail |
|
Loading…
x
Reference in New Issue
Block a user