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 ? |
Accepted answer
Ralph Schoon (63.6k●3●36●46)
| 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
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.