It's all about the answers!

Ask a question

How to retrive the old state of Iteration(IProcessItem) just like we have oldworkitemstate and newworkitemstate for IWorkItem?

aastha khatri (22618) | asked Mar 09 '16, 10:51 a.m.
I am looking for a way to get the previous details of a Iteration. As what I noticed if I save a iteration in the participant I cannot get the previous state. Just like in case of workitem we have  workItemOldState,  workItemNewState I want similar thing for Iteration (IProcessItem)

2 answers

permanent link
Ralph Schoon (62.9k33645) | answered Mar 09 '16, 11:09 a.m.
You can try to use the IAuditable Interface and get the Predecessor and the merged predecessor state. IAuditable can have a history. I am not sure if it is always stored though.

aastha khatri commented Mar 10 '16, 6:12 a.m.

Hi Ralph,
I tried using item.getPredecessorState() and mergerPredecessorState() but they both return null.
Is there any other way?

permanent link
Tiago Moura (8387) | answered Mar 10 '16, 9:27 a.m.
I don't believe that is possible to do. As Ralph mentioned the iteration history is not kept.

Your answer

Register or to post your answer.