It's all about the answers!

Ask a question

what other method can instead of it? auditableCommon.getPeer (server side)

guoping chen (191014) | asked Nov 26 '13, 10:32 p.m.
      server side:
        IWorkItemCommon workItemCommon= auditableCommon.getPeer(IWorkItemCommon.class);
        //set currentUser to approveaaa
        IAttribute target= workItemCommon.findAttribute(newState.getProjectArea(), "approveaaa", monitor);
        newState.setValue(target, auditableCommon.getUser());

auditableCommon.getPeer---> The method getPeer(Class<IWorkItemCommon>) from the type IAuditableCommon is deprecated.
what other method can instead of it? 

Accepted answer

permanent link
Ralph Schoon (63.2k33646) | answered Nov 27 '13, 3:25 a.m.
A search on this page reveals:
guoping chen selected this answer as the correct answer

guoping chen commented Nov 27 '13, 4:15 a.m.

Thanks for your help!
But another error happened. Could you give me some advice?

I had submitted a new question.

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.