It's all about the answers!

Ask a question

How to print error message in Operation Participant?


Sarthak Sharma (4711620) | asked Jul 24 '12, 2:49 a.m.
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 ?

Accepted answer


permanent link
Ralph Schoon (63.6k33646) | answered Jul 24 '12, 3:09 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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

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.