本文整理汇总了Java中org.camunda.bpm.engine.ProcessEngine.getFilterService方法的典型用法代码示例。如果您正苦于以下问题:Java ProcessEngine.getFilterService方法的具体用法?Java ProcessEngine.getFilterService怎么用?Java ProcessEngine.getFilterService使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.camunda.bpm.engine.ProcessEngine
的用法示例。
在下文中一共展示了ProcessEngine.getFilterService方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: clean
import org.camunda.bpm.engine.ProcessEngine; //导入方法依赖的package包/类
public void clean(ProcessEngine engine) {
repositoryService = engine.getRepositoryService();
runtimeService = engine.getRuntimeService();
identityService = engine.getIdentityService();
filterService = engine.getFilterService();
authorizationService = engine.getAuthorizationService();
// Delete all previous data in camunda
cleanInstances();
cleanMemberships();
cleanUsers();
cleanGroups();
cleanFilters();
cleanAuthorizations();
}
示例2: createDefaultFilter
import org.camunda.bpm.engine.ProcessEngine; //导入方法依赖的package包/类
private void createDefaultFilter(ProcessEngine processEngine) {
TaskService taskService = processEngine.getTaskService();
FilterService filterService = processEngine.getFilterService();
TaskQuery myTasksQuery = taskService.createTaskQuery().taskAssigneeExpression("${currentUser()}").active();
FilterEntity myTasksFilter = (FilterEntity) filterService.newTaskFilter("Мої завдання");
myTasksFilter.setQuery(myTasksQuery);
myTasksFilter.setPropertiesInternal("{\"refresh\":true}");
filterService.saveFilter(myTasksFilter);
TaskQuery myQueueQuery = taskService.createTaskQuery().taskCandidateUserExpression("${currentUser()}").active();
FilterEntity myQueueFilter = (FilterEntity) filterService.newTaskFilter("В черзі");
myQueueFilter.setQuery(myQueueQuery);
myQueueFilter.setPropertiesInternal("{\"refresh\":true}");
filterService.saveFilter(myQueueFilter);
addAuthorizationGroup(processEngine.getAuthorizationService(), Resources.FILTER, myTasksFilter.getId(), ALL_USERS, new Permission[] {Permissions.READ});
addAuthorizationGroup(processEngine.getAuthorizationService(), Resources.FILTER, myQueueFilter.getId(), ALL_USERS, new Permission[] {Permissions.READ});
}
示例3: createViewFilter
import org.camunda.bpm.engine.ProcessEngine; //导入方法依赖的package包/类
private void createViewFilter(ProcessEngine processEngine, String userId) {
TaskService taskService = processEngine.getTaskService();
FilterService filterService = processEngine.getFilterService();
TaskQuery myReadTaskQuery = taskService.createTaskQuery().processVariableValueLike("processReaders", "%" + userId + "%").active();
FilterEntity myReadTaskFilter = (FilterEntity) filterService.newTaskFilter("На перегляд");
myReadTaskFilter.setQuery(myReadTaskQuery);
myReadTaskFilter.setOwner(userId);
myReadTaskFilter.setPropertiesInternal("{\"refresh\":true}");
filterService.saveFilter(myReadTaskFilter);
}
示例4: deleteViewFilter
import org.camunda.bpm.engine.ProcessEngine; //导入方法依赖的package包/类
private void deleteViewFilter(String userId, ProcessEngine processEngine) {
FilterService filterService = processEngine.getFilterService();
Filter filter = filterService.createFilterQuery().filterName("На перегляд").filterOwner(userId).singleResult();
filterService.deleteFilter(filter.getId());
}