Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

      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? 

0 votes


Accepted answer

Permanent link
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

0 votes

Comments

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: Nov 26 '13, 10:32 p.m.

Question was seen: 3,507 times

Last updated: Nov 27 '13, 4:15 a.m.

Confirmation Cancel Confirm