use of org.camunda.bpm.engine.management.ActivityStatisticsQuery in project camunda-bpm-platform by camunda.
the class ActivityStatisticsAuthorizationTest method testQueryIncludingInstancesWithoutAuthorizationOnProcessInstance.
// including instances //////////////////////////////////////////////////////////////
public void testQueryIncludingInstancesWithoutAuthorizationOnProcessInstance() {
// given
String processDefinitionId = selectProcessDefinitionByKey(ONE_INCIDENT_PROCESS_KEY).getId();
createGrantAuthorization(PROCESS_DEFINITION, ONE_INCIDENT_PROCESS_KEY, userId, READ);
// when
ActivityStatisticsQuery query = managementService.createActivityStatisticsQuery(processDefinitionId);
// then
verifyQueryResults(query, 0);
}
Aggregations