BS-11031 : create API which filter on case which have at least one failed task or the case is in failed state

- Create the new API & Service methods & Requests
- Add integration test
- Add unit tests on API & Service & Builder Factory of SProcessInstance
- Add query tests
- Fiw bug : The start date of a process instance is nerver set.