Is there a method summary (and explanation) for IBM Plugins?
Hy there Felllas,
I'm searching hard some for some informations about IBM Plugins.
I've found the (Java Plain) API, but this wasn't what I searched for.
Let me explain this:
If I search in the API about "ProcessClient", there's only one method shown. "getOperationAdviceManager()"
But if I console.log the "ProcessClient", there are a lot more methods.
The other problem there is: how could I ever assume what "args" for a parameter should be?
Is there a way to get more specific informations about the whole thing?
(Dojo made it very good! I need something like that: http://dojotoolkit.org/api/)
Greetings and thanks in advance
Studer Jonas
|
Accepted answer
Hy there fellas,
I found out, how I have to use it.
If someone need an explanation HOW I found out, how I have to do it, please feel free to ask.
But it's a bit a lumberjack technique... ;)
Greetings
Ralph Schoon selected this answer as the correct answer
Comments
Ralph Schoon
commented Jun 30 '14, 11:29 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Would be nice if you could share if you have time (If you did not already). Finding around in the APIs is very tough for everyone. So that sounds familiar 8D
Jonas Studer
commented Jul 01 '14, 4:59 a.m.
Ok, I try to explain that (English isn't my native language so don't judge my use of english :P )
Jonas Studer
commented Jul 01 '14, 5:04 a.m.
5: How to proof I need the "ProcessClient" class.
Jonas Studer
commented Jul 01 '14, 5:04 a.m.
Ralph Schoon
commented Jul 01 '14, 5:05 a.m.
| edited Jul 01 '14, 5:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Thanks for the explanation. In https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ and other blog posts, I explain how to find the API with Java and the SDK installed. This allows finding the Java code and the interfaces the service/client library classes provide. The benefit is, that you can find the client libraries for example, because they are all retrieved using the
getClientLibrary()call, which you can easily search for. With respect to Firefox/Chrome, I have been told, Chrome works better for developing. P.S.
Jonas Studer
commented Jul 01 '14, 5:11 a.m.
@Raplh,
Yes, however there is a ProcessClient client library with, I expect, similar API. I would expect the service names to be the same or very similar in most of the cases. The JavaScrit API is probably a facade.
Jonas Studer
commented Jul 01 '14, 5:30 a.m.
uuff, I've made the same mistake and thought it would be mostly the same...
getOperationAdviceManagerBut if I console.log(com.ibm.team.process.web.client.internal.ProcessClient) There are about 40-50 Methods!
showing 5 of 9
show 4 more comments
|
2 other answers
Ralph Schoon (63.5k●3●36●46)
| answered Jun 16 '14, 9:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Jonas,
as Sam points out there is no documentation, unfortunately. If you start here: https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ you can setup the SDK as well as the plain Java Client Libraries in a way that allows you to search the full source code. You can search for references in Eclipse too and that usually allows you to answer questions like what to pass as arguments well. You will find that especially in tests that are shipped with the SDK. Comments 1
sam detweiler
commented Jun 16 '14, 9:58 a.m.
this approach works, but it takes a LOT of energy and skill to navigate the large amount of code and missing design information to find something that helps you.
Lukas Steiger
commented Jun 18 '14, 1:53 a.m.
I totally agree with Sam. The most challenging about this approach is that the source code documentation within the SDK is very poor. I personally have learned the most from looking at the unit/integration tests included and from Ralph's blog.
1
There is a lot of pressure on new features. We are looking into public API's that should be available (also new API) and officially supported, but it takes time.
|
@Sam Detweiler,
Thanks for the information. But in this case I'm getting in trouble. Let me explain this... If I compare this two methods: -ProcessClient.getProjectAreaByUUID(args, responseHandler) -ProcessClient.getProjectAreaByUUIDWithLimitedMembers(args, responseHandler) I do know "getProjectAreaByUUIDWithLimitedMembers" work with this args:
var args = {
processAreaItemId: this.getScopeItem().itemId,
maxMembers: 100,
};
But this (getProjectAreaByUUID) won't work (400 Bad Request):
var args = {
processAreaItemId: this.getScopeItem().itemId,
};
This makes no sense in my opinion...
Comments What do you want to achieve?
Jonas Studer
commented Jun 16 '14, 10:14 a.m.
Relatively simple...
This should be:
IDevelopmentLineHandle[] developmentLineHandles = projectArea .getDevelopmentLines(); It should be on my blog in the DevelopmentLineHelper, I think. This can't be what you are looking for. I think you look for the project Area. You could iterate all project areas to find the one you need. E.g. like in http://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/
sam detweiler
commented Jun 18 '14, 7:16 a.m.
notice he is using JavaScript.
Thanks Sam, I was wondering. My answers are for the Java API in the server. I can't help with JavaScript.
Jonas Studer
commented Jun 26 '14, 4:08 a.m.
@Raplh,
showing 5 of 7
show 2 more comments
|
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.
Comments
the server side api is not yet documented, except for the general advisor/plugin that are documented in the developer workshops.