当前位置: 首页>>代码示例>>Java>>正文


Java ProcessEngine.getFilterService方法代码示例

本文整理汇总了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();
}
 
开发者ID:derursm,项目名称:bvis,代码行数:17,代码来源:CamundaCleaner.java

示例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});
}
 
开发者ID:IntegrityVision,项目名称:Purchase-order-process-template,代码行数:20,代码来源:ResourcesAuthorization.java

示例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);
}
 
开发者ID:IntegrityVision,项目名称:Purchase-order-process-template,代码行数:11,代码来源:ResourcesAuthorization.java

示例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());
}
 
开发者ID:IntegrityVision,项目名称:Purchase-order-process-template,代码行数:6,代码来源:ResourcesAuthorization.java


注:本文中的org.camunda.bpm.engine.ProcessEngine.getFilterService方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。