All URIs are relative to https://adfdev.envalfresco.com/activiti-app/api
Method | HTTP request | Description |
---|---|---|
createIdentityLink | POST /enterprise/tasks/{taskId}/identitylinks | List the users and groups involved with a task |
createNewTask | POST /enterprise/tasks | Create a standalone task |
deleteIdentityLink | DELETE /enterprise/tasks/{taskId}/identitylinks/{family}/{identityId}/{type} | Remove a user or group involvement from a task |
deleteTask | DELETE /enterprise/tasks/{taskId} | Delete a task |
filterTasks | POST /enterprise/tasks/filter | Filter a list of tasks |
getIdentityLinkType | GET /enterprise/tasks/{taskId}/identitylinks/{family}/{identityId}/{type} | Get a user or group involvement with a task |
getIdentityLinksForFamily | GET /enterprise/tasks/{taskId}/identitylinks/{family} | List either the users or groups involved with a process instance |
getIdentityLinks | GET /enterprise/tasks/{taskId}/identitylinks | getIdentityLinks |
getTaskAuditLog | GET /enterprise/tasks/{taskId}/audit | Get the audit log for a task |
getTask | GET /enterprise/tasks/{taskId} | Get a task |
listHistoricTasks | POST /enterprise/historic-tasks/query | Query historic tasks |
listTasks | POST /enterprise/tasks/query | List tasks |
updateTask | PUT /enterprise/tasks/{taskId} | Update a task |
IdentityLinkRepresentation createIdentityLink(taskIdidentityLinkRepresentation)
List the users and groups involved with a task
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.createIdentityLink(taskIdidentityLinkRepresentation).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | string | taskId | |
identityLinkRepresentation | IdentityLinkRepresentation | identityLinkRepresentation |
TaskRepresentation createNewTask(taskRepresentation)
Create a standalone task
A standalone task is one which is not associated with any process instance.
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.createNewTask(taskRepresentation).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskRepresentation | TaskRepresentation | taskRepresentation |
deleteIdentityLink(taskIdfamilyidentityIdtype)
Remove a user or group involvement from a task
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.deleteIdentityLink(taskIdfamilyidentityIdtype).then(() => {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | string | taskId | |
family | string | family | |
identityId | string | identityId | |
type | string | type |
null (empty response body)
deleteTask(taskId)
Delete a task
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.deleteTask(taskId).then(() => {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | string | taskId |
null (empty response body)
ResultListDataRepresentationTaskRepresentation filterTasks(tasksFilter)
Filter a list of tasks
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.filterTasks(tasksFilter).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
tasksFilter | TaskFilterRequestRepresentation | tasksFilter |
ResultListDataRepresentationTaskRepresentation
IdentityLinkRepresentation getIdentityLinkType(taskIdfamilyidentityIdtype)
Get a user or group involvement with a task
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.getIdentityLinkType(taskIdfamilyidentityIdtype).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | string | taskId | |
family | string | family | |
identityId | string | identityId | |
type | string | type |
IdentityLinkRepresentation getIdentityLinksForFamily(taskIdfamily)
List either the users or groups involved with a process instance
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.getIdentityLinksForFamily(taskIdfamily).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | string | taskId | |
family | string | family |
IdentityLinkRepresentation getIdentityLinks(taskId)
getIdentityLinks
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.getIdentityLinks(taskId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | string | taskId |
TaskAuditInfoRepresentation getTaskAuditLog(taskId)
Get the audit log for a task
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.getTaskAuditLog(taskId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | string | taskId |
TaskRepresentation getTask(taskId)
Get a task
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.getTask(taskId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | string | taskId |
ResultListDataRepresentationTaskRepresentation listHistoricTasks(queryRequest)
Query historic tasks
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.listHistoricTasks(queryRequest).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
queryRequest | HistoricTaskInstanceQueryRepresentation | queryRequest |
ResultListDataRepresentationTaskRepresentation
ResultListDataRepresentationTaskRepresentation listTasks(tasksQuery)
List tasks
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.listTasks(tasksQuery).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
tasksQuery | TaskQueryRepresentation | tasksQuery |
ResultListDataRepresentationTaskRepresentation
TaskRepresentation updateTask(taskIdupdated)
Update a task
You can edit only name, description and dueDate (ISO 8601 string).
import TasksApi from 'TasksApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let tasksApi = new TasksApi(this.alfrescoApi);
tasksApi.updateTask(taskIdupdated).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
taskId | string | taskId | |
updated | TaskUpdateRepresentation | updated |