This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Multiple evaluation of rules??
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Mar 24, 2009
11:12 AM
Multiple evaluation of rules??
Hi,
I've extented a CustomCodeRule.
The rule has been added to a panel in the Pre-uinstall.
It's the only place where it is in the project.
Inside the eval() method, I have a system.out.println.
Interestingly when running the installer, I see twice the println in the console.
For me it sounds like a bug. Did I missed something?
Thanks,
X.
I've extented a CustomCodeRule.
The rule has been added to a panel in the Pre-uinstall.
It's the only place where it is in the project.
Inside the eval() method, I have a system.out.println.
Interestingly when running the installer, I see twice the println in the console.
For me it sounds like a bug. Did I missed something?
Thanks,
X.
(2) Replies
‎Mar 25, 2009
10:04 AM
Hi,
I've designed a very simple installer.
It consists of 2 panels in Pre-install:
- a panel scrolling message with MyRule attache on it. a println in the constructor and on in the evaluate()
- a panel display message
In the Dos command windows I see only the evaluate trace once of the constructor and then once the one from the evaluate(). If I press Next (so to the scrolling msg Panel) Previous, nothing and then Previous: it appears twice.
This is strange I would not expect to have it twice here. I don't understand the logic.
But the strangest is when I put the scrolling msg Panel as the first panel, then the behavior is:
- trace of the constructor once
- twice trace of the evaluate()
... we are still at the first panel: the scrolling msg one
We press Next and we got
- one more trace of the evaluate()
Pressing Previous leads to the same as in the first configuration.
Is this the expected behavior of IA 2009?
Is it possible to specified when a rule should be evaluated?
I would say it should only be evaluated once and only when the Panel associated with is displayed.
Thanks,
X.
I've designed a very simple installer.
It consists of 2 panels in Pre-install:
- a panel scrolling message with MyRule attache on it. a println in the constructor and on in the evaluate()
- a panel display message
In the Dos command windows I see only the evaluate trace once of the constructor and then once the one from the evaluate(). If I press Next (so to the scrolling msg Panel) Previous, nothing and then Previous: it appears twice.
This is strange I would not expect to have it twice here. I don't understand the logic.
But the strangest is when I put the scrolling msg Panel as the first panel, then the behavior is:
- trace of the constructor once
- twice trace of the evaluate()
... we are still at the first panel: the scrolling msg one
We press Next and we got
- one more trace of the evaluate()
Pressing Previous leads to the same as in the first configuration.
Is this the expected behavior of IA 2009?
Is it possible to specified when a rule should be evaluated?
I would say it should only be evaluated once and only when the Panel associated with is displayed.
Thanks,
X.