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
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
2 answers
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:
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