mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
parent
b04293de75
commit
5cc083120a
@ -28,7 +28,7 @@ import 'rxjs/add/operator/catch';
|
|||||||
@Injectable()
|
@Injectable()
|
||||||
export class ActivitiProcessService {
|
export class ActivitiProcessService {
|
||||||
|
|
||||||
private processesUrl = 'http://localhost:9999/activiti-app/app/rest/filter/process-instances';
|
private processesUrl = 'http://localhost:9999/activiti-app/api/enterprise/process-instances/query';
|
||||||
|
|
||||||
constructor(private alfrescoSettingsService: AlfrescoSettingsService, private http: Http) {
|
constructor(private alfrescoSettingsService: AlfrescoSettingsService, private http: Http) {
|
||||||
}
|
}
|
||||||
@ -36,9 +36,10 @@ export class ActivitiProcessService {
|
|||||||
getProcesses(): Observable<ProcessInstance[]> {
|
getProcesses(): Observable<ProcessInstance[]> {
|
||||||
let headers = new Headers();
|
let headers = new Headers();
|
||||||
headers.append('Content-Type', 'application/json');
|
headers.append('Content-Type', 'application/json');
|
||||||
|
// headers.append('Authorization', 'Basic ' + btoa('admin@app.activiti.com:admin'));
|
||||||
return this.http.post(
|
return this.http.post(
|
||||||
this.processesUrl,
|
this.processesUrl,
|
||||||
'{"page":0,"filterId":6,"filter":{"sort":"created-desc","name":"","state":"all"},"appDefinitionId":null}',
|
'{"page":0,"sort":"created-desc","state":"all"}',
|
||||||
new RequestOptions({
|
new RequestOptions({
|
||||||
headers: headers
|
headers: headers
|
||||||
}))
|
}))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user