remove processInstance.isEnded()