All URIs are relative to https://adfdev.envalfresco.com/activiti-app/api
Method | HTTP request | Description |
---|---|---|
deployAppDefinitions | POST /enterprise/runtime-app-definitions | Deploy a published app |
getAppDefinition | GET /enterprise/runtime-app-definitions/{appDefinitionId} | Get a runtime app |
getAppDefinitions | GET /enterprise/runtime-app-definitions | List runtime apps |
deployAppDefinitions(saveObject)
Deploy a published app
Deploying an app allows the user to see it on his/her landing page. Apps must be published before they can be deployed.
import RuntimeappdefinitionsApi from 'RuntimeappdefinitionsApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let runtimeappdefinitionsApi = new RuntimeappdefinitionsApi(this.alfrescoApi);
runtimeappdefinitionsApi.deployAppDefinitions(saveObject).then(() => {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
saveObject | RuntimeAppDefinitionSaveRepresentation | saveObject |
null (empty response body)
AppDefinitionRepresentation getAppDefinition(appDefinitionId)
Get a runtime app
import RuntimeappdefinitionsApi from 'RuntimeappdefinitionsApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let runtimeappdefinitionsApi = new RuntimeappdefinitionsApi(this.alfrescoApi);
runtimeappdefinitionsApi.getAppDefinition(appDefinitionId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
appDefinitionId | number | appDefinitionId |
ResultListDataRepresentationAppDefinitionRepresentation getAppDefinitions()
List runtime apps
When a user logs in into Alfresco Process Services Suite, a landing page is displayed containing all the apps that the user is allowed to see and use. These are referred to as runtime apps.
import RuntimeappdefinitionsApi from 'RuntimeappdefinitionsApi';
import { AlfrescoApi } from 'alfresco-js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let runtimeappdefinitionsApi = new RuntimeappdefinitionsApi(this.alfrescoApi);
runtimeappdefinitionsApi.getAppDefinitions().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
This endpoint does not need any parameter.