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 ?
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
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);
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);