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

Latest commit

 

History

History
91 lines (61 loc) · 2.55 KB

ModelsHistoryApi.md

File metadata and controls

91 lines (61 loc) · 2.55 KB

ModelshistoryApi

All URIs are relative to /activiti-app/api

Method HTTP request Description
getModelHistoryCollection GET /enterprise/models/{modelId}/history List a model's historic versions
getProcessModelHistory GET /enterprise/models/{modelId}/history/{modelHistoryId} Get a historic version of a model

getModelHistoryCollection

ResultListDataRepresentationModelRepresentation getModelHistoryCollection(modelIdopts)

List a model's historic versions

Example

import ModelshistoryApi from 'src/api/activiti-rest-api/docs/ModelsHistoryApi';
import {AlfrescoApi} from '@alfresco/js-api';

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

let modelshistoryApi = new ModelshistoryApi(this.alfrescoApi);

let opts = {
    'includeLatestVersion': true //  | includeLatestVersion
};

modelshistoryApi.getModelHistoryCollection(modelIdopts).then((data) => {
    console.log('API called successfully. Returned data: ' + data);
}, function (error) {
    console.error(error);
});

Parameters

Name Type Description Notes
modelId number modelId
includeLatestVersion boolean includeLatestVersion [optional]

Return type

ResultListDataRepresentationModelRepresentation

getProcessModelHistory

ModelRepresentation getProcessModelHistory(modelIdmodelHistoryId)

Get a historic version of a model

Example

import ModelshistoryApi from 'src/api/activiti-rest-api/docs/ModelsHistoryApi';
import {AlfrescoApi} from '@alfresco/js-api';

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

let modelshistoryApi = new ModelshistoryApi(this.alfrescoApi);


modelshistoryApi.getProcessModelHistory(modelIdmodelHistoryId).then((data) => {
    console.log('API called successfully. Returned data: ' + data);
}, function (error) {
    console.error(error);
});

Parameters

Name Type Description Notes
modelId number modelId
modelHistoryId number modelHistoryId

Return type

ModelRepresentation