How can I get state of a wortItem?
2 answers
On 11/19/10 11:23 AM, liumawang wrote:
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
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!
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
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!
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.