It's all about the answers!

Ask a question

Retrieving workflow state id without having WorkItem


Michele Pegoraro (1.8k12114102) | asked Aug 25 '09, 10:21 a.m.
Hi, I'm developing a query inside an event-handler plugin on server side. I'm trying to collect all the work-item which have a specific state.
My problem is how to pass stateId to AttributeExpression because I can't find out how to have a stateId.
If I have a work-item I could use IWorkflowInfo class, but if I don't have any work-item, how can I get a workflow state??

2 answers



permanent link
Patrick Streule (4.9k21) | answered Aug 25 '09, 12:22 p.m.
JAZZ DEVELOPER
Hi, I'm developing a query inside an event-handler plugin on server
side. I'm trying to collect all the work-item which have a specific
state.
My problem is how to pass stateId to AttributeExpression because I
can't find out how to have a stateId.
If I have a work-item I could use IWorkflowInfo class, but if I don't
have any work-item, how can I get a workflow state??

Maybe the following method from IWorkItemCommon will help you:

ICombinedWorkflowInfos findCombinedWorkflowInfos(IProjectAreaHandle
projectArea, IProgressMonitor monitor) throws TeamRepositoryException;

--
Regards,
Patrick
Jazz Work Item Team

permanent link
Michele Pegoraro (1.8k12114102) | answered Aug 26 '09, 10:40 a.m.
Thank you very much, it works!

Your answer


Register or to post your answer.