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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE fsm SYSTEM "fsm.dtd">
  3. <!-- 
  4.     Creates the final template and uploads it to the device.
  5.     
  6.     Input properties:
  7.     - profile: Profile object to create template with. (required)
  8.     - newInterface: The interface to which the host will be configured.
  9.  
  10.     Output properties:
  11.   - profile: The final profile object.
  12.  
  13.   Exit events:
  14.   - noProfile: The profile object was invalid. No template is created or uploaded.
  15.   - finished: Template created and uploaded to the device.
  16.   - uploadFailed: Template created but upload to the device failed.
  17. -->
  18.  
  19. <fsm>
  20.   <property key="profile" required="yes"/>
  21.     <states>
  22.         <state type="setupDevice_createProfile" name="createProfile" weight="1"/>
  23.     <state type="actionUploadFile" name="uploadFileTpl" weight="50">
  24.       <property key="fileName" value="user.ini"/>
  25.     </state>
  26.     </states>
  27.     <events>
  28.         <event name="noProfile"/>
  29.         <event name="finished"/>
  30.         <event name="uploadFailed"/>
  31.     </events>
  32.     <transitions>
  33.         <transition startstate="createProfile">
  34.             <propertymap target="device" function="$app.device"/>
  35.             <propertymap target="profile" function="$fsm.profile"/>
  36.             <propertymap target="interface" function="$fsm.newInterface"/>
  37.             <propertymap target="programLanguage" function="$app.programLanguage"/>
  38.             <!--propertymap target="aclControl" function="$app.aclControl"/-->
  39.             <propertymap target="expertMode" function="$app.expertMode"/>
  40.         </transition>
  41.         <transition fromstate="createProfile" tostate="uploadFileTpl" event="upload">
  42.             <!-- output --><propertymap target="fsm.profile" function="$profile"/>
  43.             <propertymap target="device" function="$app.device"/>
  44.             <propertymap target="content" function="$file"/>
  45.         </transition>
  46.         <transition fromstate="uploadFileTpl" toexit="finished" event="finished"/>
  47.         <transition fromstate="uploadFileTpl" toexit="uploadFailed" event="failed"/>
  48.         <transition fromstate="createProfile" toexit="noProfile" event="noProfile"/>
  49.     </transitions>
  50. </fsm>
  51.