cancel
Showing results for 
Search instead for 
Did you mean: 

ADF - get tasks-instances order By Id

anakin59490
Star Contributor
Star Contributor

Hi,

This is what i have done :

getActiveTasks (user): Promise<{}> {
  const listScriptPath = 'api/task-instances?authority=' + user +
    '&properties=wfvd_nomService,bpm_priority,bpm_status,bpm_dueDate,bpm_description&exclude=wcmwf:*&skipCount=0&maxItems=1000&';
  return this.apiService.getInstance().webScript
    .executeWebScript('GET', listScriptPath, this.scriptArgs, this.contextRoot, this.servicePath);
}

And this is what I get :


Is it possible to sort the results by id ?
I think i can use "orderBy" with "DESC" option in listScriptPath variable
but i don't find the correct syntax

thank you in advance
13 REPLIES 13

You set your Login dialog to authenticate to ACS services, but try to execute the APS apis. The provider needs to be "BPM" in your case I believe.

I have installed Alfresco community edition....

Does it mean that i must restart all the project with APS ?

As it is stated in the requirements, you need an APS enterprise to use with ADF if you invoke APS public rest api, and ACS enterprise or community if you call the ACS public rest apis. In you screenshot, you are trying to call APS public api but use ACS login.

OK. Thank you for your help and that interesting discussion.

I will try another way to sort my list 😉