public ProcessInstance getProcessInstance(Session session, long piid)
Every ProcessInstance has an ID that uniquely identifies each process instance of the same ProcessTemplate. You can retrieve the process instance specific to your requirement by the ID provided as an input parameter.
public ProcessInstanceList getActivatedProcessInstanceList(Session session)
A ProcessInstance can be in the activated state or in the suspended state. This API can be used when you require a list of all the activated process instances.
public ProcessInstanceList getSuspendedProcessInstanceList(Session session)
A ProcessInstance can be suspended by the user due to some reason. The API returns the list of all the suspended ProcessInstance Smart Value Objects (SVOs).