home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Thomson (Residential)
/
TGSTPv7203.iso
/
mac
/
HIW
/
xml
/
mod_setup_userini.xml
< prev
next >
Wrap
Extensible Markup Language
|
2008-02-11
|
2KB
|
51 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fsm SYSTEM "fsm.dtd">
<!--
Creates the final template and uploads it to the device.
Input properties:
- profile: Profile object to create template with. (required)
- newInterface: The interface to which the host will be configured.
Output properties:
- profile: The final profile object.
Exit events:
- noProfile: The profile object was invalid. No template is created or uploaded.
- finished: Template created and uploaded to the device.
- uploadFailed: Template created but upload to the device failed.
-->
<fsm>
<property key="profile" required="yes"/>
<states>
<state type="setupDevice_createProfile" name="createProfile" weight="1"/>
<state type="actionUploadFile" name="uploadFileTpl" weight="50">
<property key="fileName" value="user.ini"/>
</state>
</states>
<events>
<event name="noProfile"/>
<event name="finished"/>
<event name="uploadFailed"/>
</events>
<transitions>
<transition startstate="createProfile">
<propertymap target="device" function="$app.device"/>
<propertymap target="profile" function="$fsm.profile"/>
<propertymap target="interface" function="$fsm.newInterface"/>
<propertymap target="programLanguage" function="$app.programLanguage"/>
<!--propertymap target="aclControl" function="$app.aclControl"/-->
<propertymap target="expertMode" function="$app.expertMode"/>
</transition>
<transition fromstate="createProfile" tostate="uploadFileTpl" event="upload">
<!-- output --><propertymap target="fsm.profile" function="$profile"/>
<propertymap target="device" function="$app.device"/>
<propertymap target="content" function="$file"/>
</transition>
<transition fromstate="uploadFileTpl" toexit="finished" event="finished"/>
<transition fromstate="uploadFileTpl" toexit="uploadFailed" event="failed"/>
<transition fromstate="createProfile" toexit="noProfile" event="noProfile"/>
</transitions>
</fsm>