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

How to get list of Workflows/IWorkflowInfo of IProjectArea

I found internal API
com.ibm.team.workitem.common.internal.workflow.WorkflowManager

is there some public analog?

0 votes



3 answers

Permanent link
I found internal API
com.ibm.team.workitem.common.internal.workflow.WorkflowManager

is there some public analog?

There are two methods that may help you:

IWorkItemCommon#findCombinedWorkflowInfos(IProjectAreaHandle
projectArea, IProgressMonitor monitor)

and

IWorkItemCommon#findWorkflowInfo(IWorkItem workItem, IProgressMonitor
monitor)

Regards,
Patrick,
Jazz Work Item Team

0 votes


Permanent link
I found internal API
com.ibm.team.workitem.common.internal.workflow.WorkflowManager

is there some public analog?

There are two methods that may help you:

IWorkItemCommon#findCombinedWorkflowInfos(IProjectAreaHandle
projectArea, IProgressMonitor monitor)

and

IWorkItemCommon#findWorkflowInfo(IWorkItem workItem, IProgressMonitor
monitor)

Regards,
Patrick,
Jazz Work Item Team

I need some API to get IWorkflowInfo by workItem type category.

I found it in WorkflowManager, but it is internal:

public String getWorkflowIdForCategory(IProjectAreaHandle projectArea, String category, boolean shortOp, IProgressMonitor monitor)
and
public IWorkflowInfo getWorkflowInfo(IProjectAreaHandle projectArea, String workflowId, boolean shortOp, IProgressMonitor monitor)

0 votes


Permanent link
I need some API to get IWorkflowInfo by workItem type category.

I found it in WorkflowManager, but it is internal:

public String getWorkflowIdForCategory(IProjectAreaHandle projectArea,
String category, boolean shortOp, IProgressMonitor monitor)
and
public IWorkflowInfo getWorkflowInfo(IProjectAreaHandle projectArea,
String workflowId, boolean shortOp, IProgressMonitor monitor)

To avoid the internal API, you could create a work item in memory, set
its type to one one of the type category's types and use the public

findWorkflowInfo(workItem, monitor);

Regards,
Patrick
Jazz Work Item Team

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,936

Question asked: Sep 25 '08, 6:44 a.m.

Question was seen: 8,749 times

Last updated: Sep 25 '08, 6:44 a.m.

Confirmation Cancel Confirm