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

ProcessConfigurationElement and IMemento

Hi,
Is there a uniform way to deal with IProcessConfigurationElement and IMemento?
We implemented IOperationAdvisor (server side Precondition) and OperationDetailsAspectEditor (UI for configuring this precondition).
We have to read and write the process configuration at the UI client side and also read it at the server side, so we wanted to share code.

The problem is that OperationAdvisor.run accepts IProcessConfigurationElement and the OperationDetailsAspectEditor (saveState and restoreState) accepts IMemento.

Our current thinking is to create ProcessConfigurationElementMemento.

Thanks,
Dekel

0 votes



2 answers

Permanent link
Hi, Dekel.

There's really no uniform way. In our own code, I believe we just live
with the duplication.

Jared Burns
Jazz Process Team


dekelc wrote:
Hi,
Is there a uniform way to deal with IProcessConfigurationElement and
IMemento?
We implemented IOperationAdvisor (server side Precondition) and
OperationDetailsAspectEditor (UI for configuring this precondition).
We have to read and write the process configuration at the UI client
side and also read it at the server side, so we wanted to share
code.

The problem is that OperationAdvisor.run accepts
IProcessConfigurationElement and the OperationDetailsAspectEditor
(saveState and restoreState) accepts IMemento.

Our current thinking is to create ProcessConfigurationElementMemento.

Thanks,
Dekel

0 votes


Permanent link
Thanks.

We ended up with a partial implementation of IMemento called ProcessConfigurationElementMemento (implemented only 3-4 getters) which is good, at least for our needs.

Dekel

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,938

Question asked: Oct 19 '08, 10:15 a.m.

Question was seen: 5,439 times

Last updated: Oct 19 '08, 10:15 a.m.

Confirmation Cancel Confirm