Bug Fix: check duplication by process definition id is not working in
MyprocessInstancesListQuery. Check for process id should be used instead