Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Latest commit

 

History

History
124 lines (84 loc) · 3.15 KB

ChecklistsApi.md

File metadata and controls

124 lines (84 loc) · 3.15 KB

ChecklistsApi

All URIs are relative to /activiti-app/api

Method HTTP request Description
addSubtask POST /enterprise/tasks/{taskId}/checklist Create a task checklist
getChecklist GET /enterprise/tasks/{taskId}/checklist Get checklist for a task
orderChecklist PUT /enterprise/tasks/{taskId}/checklist Change the order of items on a checklist

addSubtask

TaskRepresentation addSubtask(taskIdtaskRepresentation)

Create a task checklist

Example

import ChecklistsApi from 'ChecklistsApi';
import { AlfrescoApi } from '@alfresco/js-api';

this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
    hostEcm: 'http://127.0.0.1:8080'
});

let checklistsApi = new ChecklistsApi(this.alfrescoApi);


checklistsApi.addSubtask(taskIdtaskRepresentation).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
taskId string taskId
taskRepresentation TaskRepresentation taskRepresentation

Return type

TaskRepresentation

getChecklist

ResultListDataRepresentationTaskRepresentation getChecklist(taskId)

Get checklist for a task

Example

import ChecklistsApi from 'ChecklistsApi';
import { AlfrescoApi } from '@alfresco/js-api';

this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
    hostEcm: 'http://127.0.0.1:8080'
});

let checklistsApi = new ChecklistsApi(this.alfrescoApi);


checklistsApi.getChecklist(taskId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
taskId string taskId

Return type

ResultListDataRepresentationTaskRepresentation

orderChecklist

orderChecklist(taskIdorderRepresentation)

Change the order of items on a checklist

Example

import ChecklistsApi from 'ChecklistsApi';
import { AlfrescoApi } from '@alfresco/js-api';

this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
    hostEcm: 'http://127.0.0.1:8080'
});

let checklistsApi = new ChecklistsApi(this.alfrescoApi);


checklistsApi.orderChecklist(taskIdorderRepresentation).then(() => {
  console.log('API called successfully.');
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
taskId string taskId
orderRepresentation ChecklistOrderRepresentation orderRepresentation

Return type

null (empty response body)