Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Retrieving workflow state id without having WorkItem

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??

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
Thank you very much, it works!

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Aug 25 '09, 10:21 a.m.

Question was seen: 5,119 times

Last updated: Aug 25 '09, 10:21 a.m.

Confirmation Cancel Confirm