where can I find the example that get a attribute's previous value and current value on the workitem?
![]()
chen fengmiao (70●3●29●32)
| asked Apr 15 '14, 12:15 a.m.
edited Apr 15 '14, 2:52 a.m. by Ralph Schoon (62.0k●3●36●43)
Hi. I want to get a attribute's previous value and current value on the workitem. Where Can I find this example or API?Thank you!
|
2 answers
![]()
Ralph Schoon (62.0k●3●36●43)
| answered Apr 15 '14, 2:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Work Items are IAuditables and they have up to two 'predecessor states'. You can use the Java API to look at the predecessor state and compare the values e.g.of an attribute.
In a participant, you get the new state and (if exists) the old state of a work item. Thus you are able to compare the attribute value and act on it. See https://rsjazz.wordpress.com/?s=participant for examples. This would be a server extension. |