Welcome to the Alfresco Builder Network

Our technical resource site is still being improved. We'd love to hear your feedback. Tell us what you think

Displays users involved with a specified task

activiti-people

Contents

Basic Usage

<adf-people 
    [people]="YOUR_INVOLVED_PEOPLE_LIST" 
    [taskId]="YOUR_TASK_ID"
    [readOnly]="YOUR_READ_ONLY_FLAG">
</adf-people>

Class members

Properties

NameTypeDefault valueDescription
peopleUserProcessModel[][]The array of User objects to display.
readOnlybooleanfalseShould the data be read-only?
taskIdstring""The numeric ID of the task.

Details

How to customize the people component behavior

The people component provides two options to customize its behavior:

  • involveUserAndCloseSearch: The selected user gets added and then the search section is closed
  • involveUserWithoutCloseSearch: The selected user gets added without closing the search section

This makes it easy to customize the people component to involve the user via a single or double click event:

Involve People single click and close search

<adf-people #people
    (row-click)="people.involveUserAndCloseSearch()"
    [people]="YOUR_INVOLVED_PEOPLE_LIST"
    [taskId]="YOUR_TASK_ID"
    [readOnly]="YOUR_READ_ONLY_FLAG">
</adf-people>

involve-people-single-click-and-close-search

Involve People single click without close search

<adf-people #people
    (row-click)="people.involveUserWithoutCloseSearch()"
    [people]="YOUR_INVOLVED_PEOPLE_LIST"
    [taskId]="YOUR_TASK_ID"
    [readOnly]="YOUR_READ_ONLY_FLAG">
</adf-people>

involve-people-single-click-without-close-search

Involve People double click and close search

<adf-people #people
    (row-dblclick)="people.involveUserAndCloseSearch()"
    [people]="YOUR_INVOLVED_PEOPLE_LIST"
    [taskId]="YOUR_TASK_ID"
    [readOnly]="YOUR_READ_ONLY_FLAG">
</adf-people>

involve-people-double-click-and-close-search

Involve People double double without close search

<adf-people #people
    (row-dblclick)="people.involveUserWithoutCloseSearch()"
    [people]="YOUR_INVOLVED_PEOPLE_LIST"
    [taskId]="YOUR_TASK_ID"
    [readOnly]="YOUR_READ_ONLY_FLAG">
</adf-people>

involve-people-double-click-without-close-search

Interested in trying Alfresco?

Try Now