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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE fsm SYSTEM "fsm.dtd">
  3. <fsm>
  4.   <name>tr(Setup scenario for Mac)</name>
  5.   <states>
  6.     <state file="mod_systemcheck_mac.xml" name="systemCheck" weight="5"/>
  7.     <state file="mod_connection_mac.xml" name="connection" weight="1"/>
  8.     <state file="mod_devicefinder.xml" name="deviceFinder" weight="5">
  9.       <property key="timeout" value="10"/><!-- search for devices for 10 secs -->
  10.     </state>
  11.     <state type="compare" name="checkRebootFlag"/>
  12.     <state file="mod_profilecheck.xml" name="checkProfile" weight="2"/>
  13.     <state file="mod_devicesettings.xml" name="deviceSettings" weight="8"/>
  14.          <state file="mod_setupdevice_nonwireless.xml" name="setupDevice" weight="10"/>
  15.     <state type="showPageError" name="errorPage"/>
  16.         <state type="pluginGetProperty" name="rebootAtFinishCheck">
  17.             <property key="adaptorManager" value="cdcAdaptorMgr"/>
  18.             <property key="key" value="needReboot"/>
  19.         </state>
  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="$app.wlan"/>
  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.           <!-- output --><propertymap target="fsm.adaptorManagerList" function="$adaptorManagerList"/>
  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.           <propertymap target="adaptorManagerList" function="$adaptorManagerList"/>
  50.         </transition>
  51.           <!-- from connection -->
  52.         <transition fromstate="connection" tostate="deviceFinder" event="finished">
  53.           <propertymap target="nameFilter" function="$app.nameFilter"/>
  54.           <propertymap target="serialFilter" function="$app.serialFilter"/>
  55.           <propertymap target="authenticationMode" function="$app.authenticationMode"/>
  56.           <propertymap target="systemUserid" function="$app.systemUserid"/>
  57.           <propertymap target="systemPassword" function="$app.systemPassword"/>
  58.           <propertymap target="adaptorManagerList" function="$fsm.adaptorManagerList"/>
  59.         </transition>
  60.     <!-- device found, check whether reboot flag is empty -->
  61.     <transition fromstate="deviceFinder" tostate="checkRebootFlag" event="foundDevice">
  62.       <!-- output --><propertymap target="app.device" function="$device"/>
  63.       <propertymap target="comparisonType" function="equal"/>
  64.       <propertymap target="input1" function="$app.reboot"/>
  65.       <propertymap target="input2" function=""/>
  66.     </transition>
  67.     <!-- recovering from reboot, we're done -->
  68.     <transition fromstate="checkRebootFlag" toexit="finished" event="false"/>
  69.     <!-- not recovering from reboot, go to profile check -->
  70.     <transition fromstate="checkRebootFlag" tostate="checkProfile" event="true">
  71.       <propertymap target="reconfigure" function="user"/>
  72.             <propertymap target="templatePath" function="concat($app.applicationPath,'/',$app.templatePath)"/>
  73.             <propertymap target="defaultService" function="$app.defaultService"/>
  74.     </transition>
  75.     <!-- profile found, go to user pages -->
  76.     <transition fromstate="checkProfile" tostate="deviceSettings" event="setup">
  77.       <propertymap target="profile" function="$profile"/>
  78.     </transition>
  79.     <!-- no setup, exit (via rebootcheck) -->
  80.     <transition fromstate="checkProfile" tostate="rebootAtFinishCheck" event="noSetup"/>
  81.     <!-- go to setup -->
  82.     <transition fromstate="deviceSettings" tostate="setupDevice" event="finished">
  83.       <propertymap target="languagePackPath" function="concat($app.applicationPath, '/', $app.languagePackPath)"/>
  84.       <!-- profile to configure device with -->
  85.       <propertymap target="profile" function="$profile"/>
  86.       <!-- interface to configure host -->
  87.       <propertymap target="newInterface" function="$interface"/>
  88.       <!-- get pluginname asociated with the device -->
  89.           <propertymap target="adaptorManager" function="property($app.device,'adaptorManager')"/>
  90.           <!-- parameters to restore wireless link after setup -->
  91.       <propertymap target="ssid" function="property($app.device,'_SSID_SERIAL')"/><!-- default of device -->
  92.       <propertymap target="networkKey" function="$encryptionKey"/><!-- custom network key -->
  93.       <propertymap target="encryptionType" function="$encryptionType"/><!-- new security mode -->
  94.     </transition>
  95.     <!-- finished -->
  96.     <transition fromstate="setupDevice" tostate="rebootAtFinishCheck" event="finished"/>
  97.     <transition fromstate="rebootAtFinishCheck" toexit="finished" event="finished">
  98.             <propertymap target="app.needReboot" function="$value"/>
  99.         </transition>
  100.     <!-- catch errors -->
  101.     <transition fromstate="deviceFinder" tostate="errorPage" event="foundNoDevices">
  102.       <propertymap target="errorType" function="NotFound"/>
  103.     </transition>
  104.     <transition fromstate="deviceFinder" tostate="errorPage" event="authenticationFailed">
  105.       <propertymap target="errorType" function="AuthenticationFailure"/>
  106.     </transition>
  107.   </transitions>
  108. </fsm>
  109.