It's all about the answers!

Ask a question

How to display IParticipantInfoCollector info to the client?


Sharoon Shetty Kuriyala (55133) | asked Sep 25 '09, 2:01 p.m.
JAZZ DEVELOPER
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



permanent link
Jared Burns (4.5k29) | 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:

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.


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?

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

permanent link
Michele Pegoraro (1.8k12114102) | answered Oct 13 '09, 6:17 a.m.

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.


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?

permanent link
Jared Burns (4.5k29) | 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
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?

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

permanent link
Michele Pegoraro (1.8k12114102) | answered Oct 07 '09, 8:09 a.m.
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?

permanent link
Jared Burns (4.5k29) | 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
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

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

permanent link
Sharoon Shetty Kuriyala (55133) | answered Oct 03 '09, 4:20 p.m.
JAZZ DEVELOPER
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
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

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

permanent link
Jared Burns (4.5k29) | 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
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

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

Your answer


Register or to post your answer.