如何使用Java API直接在RTC中查询工作项历史

时间:2015-08-21 03:48:15

标签: java rtc jazz ibm-jazz

我想通过在特定日期和时间之后根据工作项目的历史查询RTC来获得工作项。

这样的事情:

IQueryableAttribute recAttr1 = factory.findAttribute(projectArea, IItem.HISTORY_PROPERTY, auditableClient, null );
AttributeExpression projectExpr = new AttributeExpression(projectAttr, AttributeOperation.EQUALS, projectArea);
AttributeExpression recExpr1 = new AttributeExpression(recAttr1, AttributeOperation.AFTER, timeStamp ); 
Term term= new Term(Operator.AND); 
term.add(recExpr1); 

IQueryClient queryClient = (IQueryClient) teamRepository.getClientLibrary(IQueryClient.class); 
IQueryResult<IResolvedResult<IWorkItem>> result = queryClient.getResolvedExpressionResults(projectArea, (Expression)term,    IWorkItem.FULL_PROFILE); 

有下面的财产吗?

  

IItem.HISTORY_PROPERTY

0 个答案:

没有答案