It's all about the answers!

Ask a question

Enumeration literal id displayed in workitem instead of name


Deepa Saini (123) | asked Feb 26 '13, 1:48 a.m.
We are programmatically populating enumerations in the project area source XML. We have customized workitem types which show these enumerations. The project area updation happens at regular intervals as defined by the sync cycle in our connector to update new enumeration values. Now when we save a new workitem of this customized type in RTC 4.0.1, sometimes literal ids are displayed instead of the name. Ex - levelName.literal.l80 is shown for level name custom attribute. Also levelName.literal.l80 literal id is not found in the project area source xml.

Wonder if this is related to simultaneous updation and reading of the project area XML which is leading to inconsistency in these values?

2 answers



permanent link
Jared Russell (1.3k12019) | answered Feb 26 '13, 4:29 a.m.
This only happens if someone removes the underlying enumeration value from the process XML while the work item attribute is still referencing that value. RTC only stores the enumeration IDs in the database and so at runtime it tries to resolve the ID against the value in the XML in order to figure out the display name. In this case, because the value has been removed, it just defaults to displaying the ID.

If you look at the history of your process configuration it should help you to figure out who removed the value and when. To see the history open the process source tab in eclipse then right-click -> Show history.

permanent link
Ralph Schoon (63.1k33645) | answered Feb 26 '13, 6:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
As far as I am aware, programmatic modification of the process XML is discouraged. There are not even minimal consistency checks possible that might be built into the API. And this can cause all kinds of problems, one of which you seem to see.

Comments
Deepa Saini commented Feb 27 '13, 2:24 a.m.

Can we expect some solution to this? We need to modify the process XML in our connector during the synchronization to reflect updated values of enumerations got from CMVC.


Ralph Schoon commented Feb 27 '13, 3:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

You would have to ask for an enhancement if you would want this. I am however not convinced that it will be agreed to. I am not really sure if you have to modify the XML. I would assume there is an API for this. The Eclipse client provides this capabilities and uses its own API to do it. It is however probably internal.

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.