It's all about the answers!

Ask a question

RTC how to get the value of a Enumeration of a https://jazz.net/forum/questions/ask/workitem?


Nicolás Rodríguez (3142125) | asked Jul 17 '12, 3:32 p.m.
Hi

I need to do a validation programmatically.

I created a class that extend from AbstractService and Implements IOperationAdvisor.

this class its going to be triggered in a work save action of a workitem.

but i dont know how to get the value of a enumeration in the work item.

i got the work item  from:

IWorkItem work=(IWorkItem)((ISaveParameter)operation.getData()).getNewState();

and I can get the customAttributes from:

work.getCustomAttributes()

but i dont know how to used it to identify the enumeration and get the value of the attribute


One answer



permanent link
Ralph Schoon (63.1k33646) | answered Jul 18 '12, 12:32 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Nicolas,

please browse the results of https://jazz.net/search_results.jsp?q=IEnumeration#page=0&type=type%3DDocument-ForumThread&q=IEnumeration

You have to find the enumeration and get the literal and then you can access the display text.



Your answer


Register or 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.