home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Thomson (Residential)
/
TGSTPv7203.iso
/
mac
/
HIW
/
xml
/
scen_sw_generic_mac.xml
< prev
next >
Wrap
Extensible Markup Language
|
2008-02-11
|
6KB
|
109 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fsm SYSTEM "fsm.dtd">
<fsm>
<name>tr(Setup scenario for Mac)</name>
<states>
<state file="mod_systemcheck_mac.xml" name="systemCheck" weight="5"/>
<state file="mod_connection_mac.xml" name="connection" weight="1"/>
<state file="mod_devicefinder.xml" name="deviceFinder" weight="5">
<property key="timeout" value="10"/><!-- search for devices for 10 secs -->
</state>
<state type="compare" name="checkRebootFlag"/>
<state file="mod_profilecheck.xml" name="checkProfile" weight="2"/>
<state file="mod_devicesettings.xml" name="deviceSettings" weight="8"/>
<state file="mod_setupdevice_nonwireless.xml" name="setupDevice" weight="10"/>
<state type="showPageError" name="errorPage"/>
<state type="pluginGetProperty" name="rebootAtFinishCheck">
<property key="adaptorManager" value="cdcAdaptorMgr"/>
<property key="key" value="needReboot"/>
</state>
</states>
<events>
<event name="finished" />
</events>
<transitions>
<!-- system check -->
<transition startstate="systemCheck">
<propertymap target="nameFilter" function="$app.nameFilter"/>
<propertymap target="serialFilter" function="$app.serialFilter"/>
</transition>
<!-- connection -->
<transition fromstate="systemCheck" tostate="connection" event="needInstall">
<propertymap target="nameFilter" function="$app.nameFilter"/>
<propertymap target="serialFilter" function="$app.serialFilter"/>
<propertymap target="adaptorManagerList" function="$adaptorManagerList"/>
<propertymap target="allowEthernet" function="$app.ethernet"/>
<propertymap target="allowWireless" function="$app.wlan"/>
<propertymap target="allowUsb" function="$app.usbslave"/>
<propertymap target="allowBuiltin" function="0"/>
</transition>
<!-- go to devicefinder -->
<!-- from systemcheck -->
<transition fromstate="systemCheck" tostate="deviceFinder" event="foundDevice">
<!-- output --><propertymap target="fsm.adaptorManagerList" function="$adaptorManagerList"/>
<propertymap target="nameFilter" function="$app.nameFilter"/>
<propertymap target="serialFilter" function="$app.serialFilter"/>
<propertymap target="authenticationMode" function="$app.authenticationMode"/>
<propertymap target="systemUserid" function="$app.systemUserid"/>
<propertymap target="systemPassword" function="$app.systemPassword"/>
<propertymap target="adaptorManagerList" function="$adaptorManagerList"/>
</transition>
<!-- from connection -->
<transition fromstate="connection" tostate="deviceFinder" event="finished">
<propertymap target="nameFilter" function="$app.nameFilter"/>
<propertymap target="serialFilter" function="$app.serialFilter"/>
<propertymap target="authenticationMode" function="$app.authenticationMode"/>
<propertymap target="systemUserid" function="$app.systemUserid"/>
<propertymap target="systemPassword" function="$app.systemPassword"/>
<propertymap target="adaptorManagerList" function="$fsm.adaptorManagerList"/>
</transition>
<!-- device found, check whether reboot flag is empty -->
<transition fromstate="deviceFinder" tostate="checkRebootFlag" event="foundDevice">
<!-- output --><propertymap target="app.device" function="$device"/>
<propertymap target="comparisonType" function="equal"/>
<propertymap target="input1" function="$app.reboot"/>
<propertymap target="input2" function=""/>
</transition>
<!-- recovering from reboot, we're done -->
<transition fromstate="checkRebootFlag" toexit="finished" event="false"/>
<!-- not recovering from reboot, go to profile check -->
<transition fromstate="checkRebootFlag" tostate="checkProfile" event="true">
<propertymap target="reconfigure" function="user"/>
<propertymap target="templatePath" function="concat($app.applicationPath,'/',$app.templatePath)"/>
<propertymap target="defaultService" function="$app.defaultService"/>
</transition>
<!-- profile found, go to user pages -->
<transition fromstate="checkProfile" tostate="deviceSettings" event="setup">
<propertymap target="profile" function="$profile"/>
</transition>
<!-- no setup, exit (via rebootcheck) -->
<transition fromstate="checkProfile" tostate="rebootAtFinishCheck" event="noSetup"/>
<!-- go to setup -->
<transition fromstate="deviceSettings" tostate="setupDevice" event="finished">
<propertymap target="languagePackPath" function="concat($app.applicationPath, '/', $app.languagePackPath)"/>
<!-- profile to configure device with -->
<propertymap target="profile" function="$profile"/>
<!-- interface to configure host -->
<propertymap target="newInterface" function="$interface"/>
<!-- get pluginname asociated with the device -->
<propertymap target="adaptorManager" function="property($app.device,'adaptorManager')"/>
<!-- parameters to restore wireless link after setup -->
<propertymap target="ssid" function="property($app.device,'_SSID_SERIAL')"/><!-- default of device -->
<propertymap target="networkKey" function="$encryptionKey"/><!-- custom network key -->
<propertymap target="encryptionType" function="$encryptionType"/><!-- new security mode -->
</transition>
<!-- finished -->
<transition fromstate="setupDevice" tostate="rebootAtFinishCheck" event="finished"/>
<transition fromstate="rebootAtFinishCheck" toexit="finished" event="finished">
<propertymap target="app.needReboot" function="$value"/>
</transition>
<!-- catch errors -->
<transition fromstate="deviceFinder" tostate="errorPage" event="foundNoDevices">
<propertymap target="errorType" function="NotFound"/>
</transition>
<transition fromstate="deviceFinder" tostate="errorPage" event="authenticationFailed">
<propertymap target="errorType" function="AuthenticationFailure"/>
</transition>
</transitions>
</fsm>