How to query running instances of a process definition?
问题 Does the camunda engine provides an API to query all running instances of a certain process? Does this query includes suspended instances too? 回答1: You can query all running process instance of a process using the following code: package org.camunda.bpm; import org.camunda.bpm.engine.ProcessEngine; import org.camunda.bpm.engine.RepositoryService; import org.camunda.bpm.engine.RuntimeService; import org.camunda.bpm.engine.repository.ProcessDefinition; import org.camunda.bpm.engine.runtime