How to display IParticipantInfoCollector info to the client?
![]()
I am trying to display the IParticipantInfoCollector report to the client. I am able to display error in the WorkItem web UI editor however I am unable to display Info or Warning. However when I try from eclipse client I am able to see the warning message collected during the operation execution.
Are the info and warning messages filtered in workitem editor? Is there a work around? Thanks, Sharoon |
7 answers
![]()
Jared Burns (4.5k●2●9)
| answered Sep 25 '09, 2:01 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Fri, 25 Sep 2009 18:07:59 +0000, sharoons wrote:
I am trying to display the IParticipantInfoCollector report to the I'm not sure how the workitem editor is implemented, so I can't really offer my help but I am curious to know what you mean by "warnings". If you're talking about the operation report API, there's no way to create a warning - only errors and "infos". Are you using some implementation internals to change the severity of an info? -- Jared Burns Jazz Process Team |
![]()
We extend the IOperationParticipant to be able to do some validations before any operations on the workitem. In case of error we create a IReportInfo and add to the collector. I observed that setting the severityof the report info to (IProcessReport.ERROR) is the only way I can see this information in the Workitem editor.
Sharoon On Fri, 25 Sep 2009 18:07:59 +0000, sharoons wrote: I am trying to display the IParticipantInfoCollector report to the I'm not sure how the workitem editor is implemented, so I can't really offer my help but I am curious to know what you mean by "warnings". If you're talking about the operation report API, there's no way to create a warning - only errors and "infos". Are you using some implementation internals to change the severity of an info? -- Jared Burns Jazz Process Team |
![]()
Jared Burns (4.5k●2●9)
| answered Oct 05 '09, 12:28 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Sat, 03 Oct 2009 20:22:57 +0000, sharoons wrote:
We extend the IOperationParticipant to be able to do some validations To perform validation which determines whether or not an operation should proceed, you should implement an IOperationAdvisor (a "precondition") instead of an IOperationParticipant (a "follow-up action"). Advisors are given API to report problems: IAdvisorInfoCollector#createProblemInfo (...). -- Jared Burns Jazz Process Team |
![]()
I'm intesting too on how to use collector on participants. For example I'd like to know if something has not work proper maybe using a warning (as I see it is used for administration permission to get over normal permission).
What collector is it used for in participants extension? It works only with IProcessReport.ERROR or it can be used in other case? |
![]()
Jared Burns (4.5k●2●9)
| answered Oct 12 '09, 8:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Wed, 07 Oct 2009 12:23:02 +0000, mikyjpeg wrote:
I'm intesting too on how to use collector on participants. For example The warning generated by the admin override feature of the process service is really just an internal implementation detail. It's not something we support and not something that others should use (in fact, we have plans to get rid of it). If a participant succeeds, it can use the collector to report on the steps it performed if this is really necessary. If it fails, it can use the collector to report the failure. -- Jared Burns Jazz Process Team |
![]()
Thank you for the answer, but I'm not shure to understand how collector works for participants. In advisor using collector.createProblem is used to show problems on Team Advisor view. But in participants when i use collector.createInfo and then collector.addInfo I don't see anything in my Team Advisor. Where I can see collector info? |
![]()
Jared Burns (4.5k●2●9)
| answered Oct 14 '09, 2:35 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Tue, 13 Oct 2009 10:23:04 +0000, mikyjpeg wrote:
Jared Burnswrote: They should show up in the Team Advisor as well, though they're filtered out by default in the view. The goal with the Team Advisor view is to be as simple and consistent as possible. -- Jared Burns Jazz Process Team |