Web Services API: Retrieve a list of actions to do filtered on the process data values

Question

We would like to retrieve the list of actions to do filtered on some process data values (e.g. AMOUNT, COMPANY).

Solution

The GetActivityInstanceList web method doesn’t support parameters to filter the list of actions on process data values. You first have to retrieve the list of actions with the process data, then you have to filter the result according to your criteria.

Exemple of query to retrieve actions to do with some associated data:

http://yourserver/wfgen/ws/ProcessesRuntime.asmx/GetActivityInstanceList?query=todo&processName=MYPROCESSNAME&showprocessinstancedata=true&datalist=COMPANY,AMOUNT   

You have now an XML result with process data values that you can filter in your program.