home *** CD-ROM | disk | FTP | other *** search
/ Thomson (Residential) / TGSTPv7203.iso / mac / HIW / xml / scen_connect_mac.xml < prev    next >
Extensible Markup Language  |  2008-02-11  |  3KB  |  69 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE fsm SYSTEM "fsm.dtd">
  3. <!-- 
  4.  
  5.   Modules referred:
  6.   - mod_systemcheck.xml
  7.   - mod_connection.xml
  8.   - mod_devicefinder.xml
  9.  
  10. -->
  11. <fsm>
  12.   <name>tr(Gateway connection scenario for Mac)</name>
  13.   <states>
  14.     <state file="mod_systemcheck_mac.xml" name="systemCheck" weight="5"/>
  15.     <state file="mod_connection_mac.xml" name="connection" weight="1"/>
  16.     <state file="mod_devicefinder.xml" name="deviceFinder" weight="5">
  17.       <property key="timeout" value="10"/><!-- search for devices for 10 secs -->
  18.     </state>
  19.     <state type="showPageError" name="errorPage"/>
  20.   </states>
  21.   <events>
  22.     <event name="finished" />
  23.   </events>
  24.   <transitions>
  25.       <!-- system check -->
  26.     <transition startstate="systemCheck">
  27.       <propertymap target="nameFilter" function="$app.nameFilter"/>
  28.       <propertymap target="serialFilter" function="$app.serialFilter"/>
  29.     </transition>
  30.       <!-- connection -->
  31.     <transition fromstate="systemCheck" tostate="connection" event="needInstall">
  32.       <propertymap target="nameFilter" function="$app.nameFilter"/>
  33.       <propertymap target="serialFilter" function="$app.serialFilter"/>
  34.       <propertymap target="adaptorManagerList" function="$adaptorManagerList"/>
  35.       <propertymap target="allowEthernet" function="$app.ethernet"/>
  36.       <propertymap target="allowWireless" function="replace($app.wlan, '[a-z]+', '1')"/>
  37.       <propertymap target="allowUsb" function="$app.usbslave"/>
  38.       <propertymap target="allowBuiltin" function="0"/>
  39.     </transition>
  40.       <!-- go to devicefinder -->
  41.           <!-- from systemcheck -->
  42.         <transition fromstate="systemCheck" tostate="deviceFinder" event="foundDevice">
  43.         <propertymap target="fsm.adaptorManager" function="property($device, 'adaptorManager')"/>
  44.           <propertymap target="nameFilter" function="$app.nameFilter"/>
  45.           <propertymap target="serialFilter" function="$app.serialFilter"/>
  46.           <propertymap target="authenticationMode" function="$app.authenticationMode"/>
  47.           <propertymap target="systemUserid" function="$app.systemUserid"/>
  48.           <propertymap target="systemPassword" function="$app.systemPassword"/>
  49.         </transition>
  50.           <!-- from connection -->
  51.         <transition fromstate="connection" tostate="deviceFinder" event="finished">
  52.           <propertymap target="nameFilter" function="$app.nameFilter"/>
  53.           <propertymap target="serialFilter" function="$app.serialFilter"/>
  54.           <propertymap target="authenticationMode" function="$app.authenticationMode"/>
  55.           <propertymap target="systemUserid" function="$app.systemUserid"/>
  56.           <propertymap target="systemPassword" function="$app.systemPassword"/>
  57.         </transition>
  58.     <!-- device found, finish -->
  59.     <transition fromstate="deviceFinder" toexit="finished" event="foundDevice"/>
  60.     <!-- catch errors -->
  61.     <transition fromstate="deviceFinder" tostate="errorPage" event="foundNoDevices">
  62.       <propertymap target="errorType" function="NotFound"/>
  63.     </transition>
  64.     <transition fromstate="deviceFinder" tostate="errorPage" event="authenticationFailed">
  65.       <propertymap target="errorType" function="AuthenticationFailure"/>
  66.     </transition>
  67.   </transitions>
  68. </fsm>
  69.