It's all about the answers!

Ask a question

RTC how to get the value of a Enumeration of a

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

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:


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 (61.4k33643) | answered Jul 18 '12, 12:32 p.m.
Hi Nicolas,

please browse the results of

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.