Identify a project area, which allows the sharing of its process
Hi everyone, we are moving forward with the workings of the Bees on RTC and we are at an excellent point, but I cannot understand one thing, how to recognize if a projecArea, allows the sharing of its process or not. This information is very useful for us and we would like to represent it, but I am faced with two obstacles:
public static boolean isProcessProvider (IProjectArea projectArea) {
return ((ProjectAreaImpl) projectArea) .isProcessProvider ();
}
2) By printing the representation of a projectArea I get this string, but I'm not like "getting" to get the value of the "internalIsProcessProvider" attribute which is true if it allows sharing and false if it does not:
Proxy of com.ibm.team.process.internal.common.impl.ProjectAreaImpl@1b9d594a (stateId: [UUID _in0Y4g8qEeyCRKscF3z5hQ], itemId: [UUID _THXiUEUBEternaleu1e7ykQkentitory.Reamteamm: com. 43cbafa6, immutable: true) (contextId: [UUID _THXiUEUBEeu1e7ykQkgefA], modified: 2021-09-06 17: 53: 12.814, workingCopy: <unset>) (mergePredecessor: null, workingCopyPredecessor: <unset>, workingCopy: <MergePredecessor> predecessor: [UUID _gzX_wg8qEeyCRKscF3z5hQ]) (descSummary:, archived: false, name: Waterfall Principal, uniqueName: Waterfall Principal (JTS-Sentinel-Id)) (isInitialized: true, internalPublic: false, internalVisibleToMemberslication: true, internalVis : JTS-Sentinel-Id, internalIsProcessProvider: true, internalRemoteProcessProviderUrl:)
Accepted answer
I have used a RTC 6.0.5 Eclipse Client Workspace configured for debugging the RTC SDK and Plain Java.
com.ibm.team.js.process.client.ProcessSharingExample https://elm.example.com:9443/ccm myadmin myadmin ShareProcess InheritProcess
I leave it to you to identify the differences between your code and the code that is downloadable from the blog post. From my perspective the code example works perfectly and does not need any modifications. This was with RTC 6.0.5 (against a 7.0.2 server) but I am pretty sure that it works with 7.0.x Plain Java as well. I am however not willing to spend the time.
Comments
The code download link in the blog is https://www.dropbox.com/s/m5h2bleefveil2e/20141128_ProcessSharingAPI.zip in case you rushed over the blog and missed it.
I apologize immensely :'(
and as version we are using 6.0.5 .
As a minimum, you could at least accept my answer. You didn't, but I can bring this to a conclusion myself.
One other answer
For all I can tell, the code can be downloaded a link is in the blog post. And the code in the ProcessProviderUtil looks like this:
/* * Test if the projectArea Provides its process * * @param projectArea * * Determines whether other project areas can get their process * from this project area. * @returntrue
if this project area allows other project areas * to use its process,false
if not. / public static boolean isProcessProvider(IProjectArea projectArea) { return ((ProjectArea) projectArea).isProcessProvider(); }
Comments
I would suggest you follow the suggestion in the article and follow https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ Perform the RTC Extensions workshop at least Lab 1 to get a working environment that allows to see the SDK code for the PlainJava Client Libraries.
PS: I do not know why you use the API for this. You can just look into the project area administration. What is the purpose of using the Java API. Some kind of automation?