Query comments of process instance allow to specify the type.