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

How to print error message in Operation Participant?

I want to print error message in operation participant. I tried this snippet

IReportInfo problem = collector.createInfo(
                            "Required attributes not available", "Required attributes are not available. "
                                    + workItem.getWorkItemType());
                      collector.addInfo(problem);

But It is not wokring for participant. How should this be done ?

0 votes


Accepted answer

Permanent link
Hi, please refer to:

https://jazz.net/wiki/bin/view/Main/RTCSDK20_ProcessPreConditionExample
The source code for the precondition is attached and can be downloaded here: https://jazz.net/wiki/pub/Main/RTCSDK20_ProcessPreConditionExample/advisor-example.zip

The code used there is:

                    IAdvisorInfo info = collector.createProblemInfo("Example Fail", "The work item contained the string fail", "error");
                    collector.addInfo(info);

Sarthak Sharma selected this answer as the correct answer

0 votes

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
× 12,016

Question asked: Jul 24 '12, 2:49 a.m.

Question was seen: 3,582 times

Last updated: Jul 24 '12, 3:09 a.m.

Confirmation Cancel Confirm