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 (62.3k33643) | answered Nov 27 '13, 3:25 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
A search on this page reveals: https://jazz.net/forum/questions/76532/what-is-the-replacement-for-iauditablecommongetpeer
guoping chen selected this answer as the correct answer

Comments
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.
https://jazz.net/forum/questions/134982/how-to-programme-the-prerequisites-in-pluginxml

Your answer


Register or to post your answer.