How to reference a process model?

I want to use the function numprocessesforprocessmodelforstatus(id, status, includeSubProcessData), but I don't understand how to get the ID of the process model I want to reference. The documentation doesn't give an example that incorporates fetching the ID of a model, the example just says "numprocessesforprocessmodelforstatus(processModelId,"completed")" but doesn't explain how to get the id. The documentation has been giving me a headache since day one. If I look up "process model id" I get zero results in the documentation search.

  Discussion posts and replies are publicly visible