Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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


0 votes



One answer

Permanent link
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.



1 vote

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,124

Question asked: Jul 17 '12, 3:32 p.m.

Question was seen: 3,514 times

Last updated: Jul 18 '12, 12:32 p.m.

Confirmation Cancel Confirm