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
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