Currently, you can only add comments to a task. They will be automatically have a reference to the process-instance, but there is no way of querying all comments for a specific process-instance, only task-based. I'll add this to the current master, so it's available in the 5.15 release, due to popular demand.