本文整理汇总了Java中org.camunda.bpm.engine.filter.Filter.setName方法的典型用法代码示例。如果您正苦于以下问题:Java Filter.setName方法的具体用法?Java Filter.setName怎么用?Java Filter.setName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.camunda.bpm.engine.filter.Filter
的用法示例。
在下文中一共展示了Filter.setName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testUpdateFilterNotPermitted
import org.camunda.bpm.engine.filter.Filter; //导入方法依赖的package包/类
public void testUpdateFilterNotPermitted() {
Filter filter = createTestFilter();
filter.setName("anotherName");
try {
filterService.saveFilter(filter);
fail("Exception expected");
}
catch (AuthorizationException e) {
// expected
}
}
示例2: updateFilter
import org.camunda.bpm.engine.filter.Filter; //导入方法依赖的package包/类
public void updateFilter(Filter filter, ProcessEngine engine) {
if (getResourceType() != null && !getResourceType().equals(filter.getResourceType())) {
throw new InvalidRequestException(Status.BAD_REQUEST, "Unable to update filter from resource type '" + filter.getResourceType() + "' to '" + getResourceType() + "'");
}
filter.setName(getName());
filter.setOwner(getOwner());
filter.setQuery(query.toQuery(engine));
filter.setProperties(getProperties());
}
示例3: testUpdateFilterPermitted
import org.camunda.bpm.engine.filter.Filter; //导入方法依赖的package包/类
public void testUpdateFilterPermitted() {
Filter filter = createTestFilter();
filter.setName("anotherName");
grantUpdateFilter(filter.getId());
filter = filterService.saveFilter(filter);
assertEquals("anotherName", filter.getName());
}