ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Rest API /v2/processinstances Method

book

Article ID: 222414

calendar_today

Updated On:

Products

CA Process Automation Base

Issue/Introduction

I'm looking for documentation or examples for using the filter parameter with the /v2/processinstances method.  Specifically I am looking to filter the results by where the RunState = Running, but any example would be beneficial.  I've tried variations of the following, but the filter param is either ignored or the API returns <Message>Not a valid filter operator in the expression 'runstate = running'</Message>

https://pamtest.mycompany.com/api/rest/v2/processinstances?filter='runstate = running'

Environment

Release : 4.3

Component :

Resolution

The double-equals sign will work in this situation instead of single equals sign.  Try this instead:

https://pamtest.mycompany.com/api/rest/v2/processinstances?filter=runstate==running