mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-2405] Reverted service to get all process definition versions (#3079)
AnalyticsService.getProcessDefinitionsValues() has same behaviour
This commit is contained in:
committed by
Eugenio Romano
parent
86cc219bc4
commit
c27273cb7d
@@ -119,21 +119,6 @@ export class ProcessService {
|
||||
.catch(err => this.handleProcessError(err));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the versions of process definitions associated with an app.
|
||||
* @param appId ID of a target app
|
||||
*/
|
||||
getProcessDefinitionVersions(appId?: number): Observable<ProcessDefinitionRepresentation[]> {
|
||||
const opts = appId ? { appDefinitionId: appId } : {};
|
||||
|
||||
return Observable.fromPromise(
|
||||
this.alfrescoApiService.getInstance().activiti.processApi.getProcessDefinitions(opts)
|
||||
)
|
||||
.map(this.extractData)
|
||||
.map(processDefs => processDefs.map((pd) => new ProcessDefinitionRepresentation(pd)))
|
||||
.catch(err => this.handleProcessError(err));
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts a process based on a process definition, name, form values or variables.
|
||||
* @param processDefinitionId Process definition ID
|
||||
|
Reference in New Issue
Block a user