home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Thomson (Residential)
/
TGSTPv7203.iso
/
mac
/
HIW
/
xml
/
scen_connect_mac.xml
< prev
next >
Wrap
Extensible Markup Language
|
2008-02-11
|
3KB
|
69 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fsm SYSTEM "fsm.dtd">
<!--
Modules referred:
- mod_systemcheck.xml
- mod_connection.xml
- mod_devicefinder.xml
-->
<fsm>
<name>tr(Gateway connection 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="showPageError" name="errorPage"/>
</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="replace($app.wlan, '[a-z]+', '1')"/>
<propertymap target="allowUsb" function="$app.usbslave"/>
<propertymap target="allowBuiltin" function="0"/>
</transition>
<!-- go to devicefinder -->
<!-- from systemcheck -->
<transition fromstate="systemCheck" tostate="deviceFinder" event="foundDevice">
<propertymap target="fsm.adaptorManager" function="property($device, 'adaptorManager')"/>
<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"/>
</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"/>
</transition>
<!-- device found, finish -->
<transition fromstate="deviceFinder" toexit="finished" event="foundDevice"/>
<!-- 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>