How can I get state of a wortItem?
![]()
Hi All
We have got state by used below code: Identifier<IState> state= workItem.getState2(); but it return number not string,how can I get string ? Thanks for your help! |
2 answers
![]()
On 11/19/10 11:23 AM, liumawang wrote:
Hi All To get the state name, you have to use: IWorkflowInfo info= workItemClient.findWorkflowInfo(workitem, monitor); String name= info.getStateName(workitem.getState2()); -- Regards, Patrick RTC Work Item Component Lead |
![]() On 11/19/10 11:23 AM, liumawang wrote: Hi All To get the state name, you have to use: IWorkflowInfo info= workItemClient.findWorkflowInfo(workitem, monitor); String name= info.getStateName(workitem.getState2()); -- Regards, Patrick RTC Work Item Component Lead Thank you for your repaly,It's very helpful for us. |
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.