shale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Spencer <pau...@apache.org>
Subject Re: [dialog] Requirement: Uncaught exception ends dialog?
Date Tue, 29 Aug 2006 02:52:23 GMT
Craig McClanahan wrote:
> On 8/28/06, Paul Spencer <paulsp@apache.org> wrote:
>
<snip>
> 
>> o Is exception management needed in the dialog state management?
> 
> 
> Seems like it should be.  What do you think *should* happen with respect to
> exceptions here?

Treat an exception like a transition.  Thus allowing then next state to be
a view, action, subdialog or end.  A dialog default also can be configured.

<dialog name="EnterCustomer"
         start="enterCustomer"
         defaultException="displayException" ...>
   <transition exception="SqlException" target="pleaseCallTheDBA"/>
   <view name="enterCustomer"...>
     <tranistion outcome="success" target="saveCustomer"/>
   </view>
   <action name="saveCustomer">
     <transition exception="CustomerAlreadyExists" target="editCustomer"/>
     <transition outcome="success" target="done"/>
   </action>
   <view name="editCustomer".../>
   <end name="done".../>
   <end name="pleaseCallTheDBA".../>
   <end name="displayException".../>
</dialog>


> 
>> Paul Spencer
>>
> Craig
> 
> 
> ------------------------------------------------------------------------
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.6/428 - Release Date: 8/25/2006


Mime
View raw message