How to get list of Workflows/IWorkflowInfo of IProjectArea
3 answers
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 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)
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