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

Build forge java api (RAM Policy), State History policy message information

 Team,

I need to access policy result message information.  After debugging the RAMStateHistory class I can see the message information that I need, but its not visible in the provided RAMStateHistory, this message information provieds a build_tag information that I need to access via a java program. Trying not to use reflection..

See my picture attached.  I'm trying to get the embedded value: fStateHistory->PolicyResults->elementData->message="<a href = Launched project JavaDeploy etc.....  Build_45</a>..."

Thank you in advance,

RAMStateHistory

0 votes


Accepted answer

Permanent link
I'm sorry but that just isn't exposed in the Java API. You'll need to use introspection to the get state history. There is a method to get the internal state history but it is protected to the Java API package.

The only other way is through HTTP Rest calls, but that is overhead you don't want to add if you are already using the Java API for other reasons.
Gerald Gordon selected this answer as the correct answer

0 votes

Comments

 OK I used java reflection and got what I needed.  Do I need to put in a bug or enhancement request/ is this already in the pipleline?


Kind regards,

There has no request for this before. So it is not in the pipelines. The state history is considered to be internal so even if it can be retrieved it is not guarantied  to not change shape in the future.

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,938

Question asked: Jul 27 '13, 9:19 a.m.

Question was seen: 5,671 times

Last updated: Jul 29 '13, 12:24 p.m.

Confirmation Cancel Confirm