It's all about the answers!

Ask a question

How can I query workItem by APPROVAL use RTCClient-plainJava


wu zy (261) | asked Dec 06 '11, 12:42 a.m.
How can I query workItem by APPROVAL use RTCClient-plainJava.


IProjectArea projectArea = (IProjectArea) processClient.findProcessArea(uri, null, null);
// ..........................................................
// approval attribute
IQueryableAttribute oattribute= findAttribute(projectArea, auditableClient, IWorkItem.APPROVALS_PROPERTY, monitor);
AttributeExpression ownerExpression= new AttributeExpression(oattribute, AttributeOperation.TO_BE_APPROVED_BY, ?????);
// search result IQueryResult<IResolvedResult<IWorkItem>> result=queryClient.getResolvedExpressionResults(projectArea,term,IWorkItem.FULL_PROFILE);


how to get the object about the "?????" which font color is red
I want to use the approvalverifiyreview as the search condition to get workItems.

thanks.

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.