alfresco-ng2-components/docs/core/services/comment-process.service.md
2023-01-02 14:00:01 +00:00

2.6 KiB

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
Comment Process service v2.0.0 Active 2018-11-14

Comment Process service

Adds and retrieves comments for task and process instances in Process Services.

Class members

Methods

  • addProcessInstanceComment(processInstanceId: string, message: string): Observable<CommentModel>
    Adds a comment to a process instance.
    • processInstanceId: string - ID of the target process instance
    • message: string - Text for the comment
    • Returns Observable<CommentModel> - Details of the comment added
  • addTaskComment(taskId: string, message: string): Observable<CommentModel>
    Adds a comment to a task.
    • taskId: string - ID of the target task
    • message: string - Text for the comment
    • Returns Observable<CommentModel> - Details about the comment
  • getProcessInstanceComments(processInstanceId: string): Observable<CommentModel[]>
    Gets all comments that have been added to a process instance.
    • processInstanceId: string - ID of the target process instance
    • Returns Observable<CommentModel[]> - Details for each comment
  • getTaskComments(taskId: string): Observable<CommentModel[]>
    Gets all comments that have been added to a task.

Details

See the Comments API section of the Alfresco JS API docs for further details about the underlying REST API.