New methods for ProcessInstance API
Bug fix