use of org.camunda.bpm.engine.history.UserOperationLogQuery in project camunda-bpm-platform by camunda.
the class UserOperationLogAuthorizationTest method testQuerySuspendProcessInstanceUserOperationLogWithReadHistoryPermissionOnProcessDefinition.
public void testQuerySuspendProcessInstanceUserOperationLogWithReadHistoryPermissionOnProcessDefinition() {
// given
String processInstanceId = startProcessInstanceByKey(ONE_TASK_PROCESS_KEY).getId();
suspendProcessInstanceById(processInstanceId);
createGrantAuthorization(PROCESS_DEFINITION, ONE_TASK_PROCESS_KEY, userId, READ_HISTORY);
// when
UserOperationLogQuery query = historyService.createUserOperationLogQuery();
// then
verifyQueryResults(query, 1);
clearDatabase();
}
use of org.camunda.bpm.engine.history.UserOperationLogQuery in project camunda-bpm-platform by camunda.
the class UserOperationLogAuthorizationTest method testQuerySuspendProcessDefinitionUserOperationLogWithReadHistoryPermissionOnProcessDefinition.
public void testQuerySuspendProcessDefinitionUserOperationLogWithReadHistoryPermissionOnProcessDefinition() {
// given
suspendProcessDefinitionByKey(ONE_TASK_PROCESS_KEY);
createGrantAuthorization(PROCESS_DEFINITION, ONE_TASK_PROCESS_KEY, userId, READ_HISTORY);
// when
UserOperationLogQuery query = historyService.createUserOperationLogQuery();
// then
verifyQueryResults(query, 1);
clearDatabase();
}
use of org.camunda.bpm.engine.history.UserOperationLogQuery in project camunda-bpm-platform by camunda.
the class UserOperationLogAuthorizationTest method testQuerySetAssigneeTaskUserOperationLogWithReadHistoryPermissionOnAnyProcessDefinition.
public void testQuerySetAssigneeTaskUserOperationLogWithReadHistoryPermissionOnAnyProcessDefinition() {
// given
startProcessInstanceByKey(ONE_TASK_PROCESS_KEY);
String taskId = selectSingleTask().getId();
setAssignee(taskId, "demo");
createGrantAuthorization(PROCESS_DEFINITION, ANY, userId, READ_HISTORY);
// when
UserOperationLogQuery query = historyService.createUserOperationLogQuery();
// then
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.history.UserOperationLogQuery in project camunda-bpm-platform by camunda.
the class UserOperationLogAuthorizationTest method testQuerySetAssigneeStandaloneTaskUserOperationLog.
public void testQuerySetAssigneeStandaloneTaskUserOperationLog() {
// given
String taskId = "myTask";
createTask(taskId);
setAssignee(taskId, "demo");
// when
UserOperationLogQuery query = historyService.createUserOperationLogQuery();
// then
verifyQueryResults(query, 2);
deleteTask(taskId, true);
}
use of org.camunda.bpm.engine.history.UserOperationLogQuery in project camunda-bpm-platform by camunda.
the class UserOperationLogAuthorizationTest method testQuerySetAssigneeHumanTaskUserOperationLog.
// (case) human task /////////////////////////////
public void testQuerySetAssigneeHumanTaskUserOperationLog() {
// given
createCaseInstanceByKey(ONE_TASK_CASE_KEY);
String taskId = selectSingleTask().getId();
setAssignee(taskId, "demo");
// when
UserOperationLogQuery query = historyService.createUserOperationLogQuery();
// then
verifyQueryResults(query, 1);
}
Aggregations