Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Writing client-side operation participant for work item save

I am trying to write a client-side operation participant to participate
in WorkItemSaveOperation. In particular, I want to run some particular
code when the work item state changes from New to "In Progress".

I see from existing examples of server-side operation participants that
the OperationParticipant#getOperationData() method returns an instance
of ISaveParameter for the work item save operation. This is an API type,
so it's reasonable for me to grovel over this object and get the bits of
data I need. When I try to write the same participant on the
client-side, the operation data is of type SaveParameterDTOImpl. This is
not an API type, and doesn't seem to implement any API type. Thus, it
seems impossible for me as a client to get the information I need in
order to write my operation participant.

Is there any way for a well-behaved client-side work item save operation
participant to obtain information about the work item being saved?

Thanks,
John

0 votes



One answer

Permanent link
Hi John,
Whenever a WI makes a state transition we create a process event.
You could write a event handler for a specific transition and enable it
in the process spec.

This is an example:
com.ibm.team.workitem.service.internal.save.CreateVerifyTask

hth,
--andre


On 2007-05-17 17:40:11 +0200, John Arthorne <john_arthorne@ca.ibm.com> said:

I am trying to write a client-side operation participant to participate
in WorkItemSaveOperation. In particular, I want to run some particular
code when the work item state changes from New to "In Progress".

I see from existing examples of server-side operation participants that
the OperationParticipant#getOperationData() method returns an instance
of ISaveParameter for the work item save operation. This is an API
type, so it's reasonable for me to grovel over this object and get the
bits of data I need. When I try to write the same participant on the
client-side, the operation data is of type SaveParameterDTOImpl. This
is not an API type, and doesn't seem to implement any API type. Thus,
it seems impossible for me as a client to get the information I need in
order to write my operation participant.

Is there any way for a well-behaved client-side work item save
operation participant to obtain information about the work item being
saved?

Thanks,
John

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,940

Question asked: May 17 '07, 11:40 a.m.

Question was seen: 8,935 times

Last updated: May 17 '07, 11:40 a.m.

Confirmation Cancel Confirm