It's all about the answers!

Ask a question

How to get Client Library in RTC Plugin ?


Asha Faldu (1110) | asked Jun 14 '17, 6:12 a.m.

 Hi All,


I am trying to get IProcessClientService client library in RTC Plugin.
I used the below code to get Client library.

ITeamRepository teamRepository = TeamPlatform.getTeamRepositoryService().getTeamRepository(repositoryURI);
teamRepository.registerLoginHandler(new LoginHandler(userId, password));
teamRepository.login(monitor);
IProcessClientService processClient = (IProcessClientService) teamRepository.getClientLibrary(IProcessClientService.class);

But it returns null. 
 
Anyone have any idea??

Please Help.

One answer



permanent link
Ralph Schoon (63.7k33648) | answered Jun 14 '17, 8:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

This code has worked for me:

IProcessClientService processClient = (IProcessClientService) teamRepository.getClientLibrary(IProcessClientService.class);
And I get somethign other than null Example code that worked for me containing code should be here: 


I can't say why you get null.

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.