It's all about the answers!

Ask a question

RTC - How to resolve the STATE enumeration?

Vinícius Rabelo (825) | asked Jul 28 '14, 3:37 p.m.
edited Jul 28 '14, 3:55 p.m.

When I am loading the STATE attribute from workitem, I am getting something like "", then to get the STATE name I do: <code>WorkflowUtilities.findWorkflowInfo(workItem, monitor).getStateName(workItem.getState2());</code>
But when I need to get other attributes value, from Enumeration, I do: <code>(List<ConfigurationItem>) workItemClient.resolveEnumeration(iAttribute, monitor).getEnumerationLiterals();</code>, then I can get the display name making <code>configurationItem.getDisplayName()</code>

It's possible to make something like this to STATE property?

Accepted answer

permanent link
Ralph Schoon (63.0k33645) | answered Jul 29 '14, 3:00 a.m.
The state attribute is no enumeration. I think you should provide more information on what you want to achieve. I blogged about working with workflow states here:

If you want the (display) name of a state, I think you need to use workflowInfo.getStateName(stateId)
Vinícius Rabelo selected this answer as the correct answer

Vinícius Rabelo commented Jul 29 '14, 2:14 p.m.

Ok Ralph, I understood... Thanks a lot...

Your answer

Register or to post your answer.