<!DOCTYPE Tree SYSTEM "IPSA.dtd">
<Tree chk="1931182540" type="Script">
<Header>
<IFile>
<FileName name="script_telexx_updatetelecodingmmcactionpreparation">
</FileName>
<Modif date="11/04/2012" user="rfanfell" site="THESAU">
</Modif>
</IFile>
<ITool name="ime2" revision="7.3.1.0" exedate="17/02/2010">
</ITool>
</Header>
<precel>
<TreeInfo posc=1 posl=1 ident=10>
<Comment>Action de update TeleXX_TPM
</Comment>
</TreeInfo>
</precel>
<cel>
<Start posc=5 posl=2 destc=5 destl=4 ident=11>
</Start>
<End posc=47 posl=24 ident=14>
</End>
<Act posc=43 posl=24 destc=47 destl=24 ident=15>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="TELEXX_PROCEED_ACTION_RETURN">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<TextBuffer name="TELEXX_UPDATE_ACTION_RETURN">
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="TELEXX_PROCEED_ACTION_RETURN">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<SubTree posc=5 posl=24 destc=5 destl=25 ident=26 FileName="script_telexx_prepareTPM_MMC_auto.s" IsCritical="NO">
<FilePath path="TeleXX_TPM">
</FilePath>
</SubTree>
<Act posc=5 posl=27 destc=5 destl=30 ident=48>
<Comment>Demande de Déverouillage - Demandé tout le temps
</Comment>
<TeleXX>
<TeleXX_SetUnlockDemand_TPM>
</TeleXX_SetUnlockDemand_TPM>
</TeleXX>
</Act>
<Switch posc=5 posl=30 ident=49>
<Source>
<TextBuffer name="TELEXX_UPDATE_ACTION_RETURN">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<TargetCell destc=43 destl=24>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="FAILED">
</ASCIIString>
</Source>
<TargetCell destc=43 destl=24>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=43 destl=24>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=5 posl=4 destc=5 destl=8 ident=50>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="TELEXX_CURRENT_ACTION_NAME">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="TELEXX_ACK_CODE">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="TELEXX_ACK_LEVEL">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="TELEXX_ACK_COMMENT">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<ASCIIString value="UPDATE">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_CURRENT_ACTION_NAME">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<ASCIIString value="CHFFF">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_ACK_CODE">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<ASCIIString value="E">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_ACK_LEVEL">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=5 posl=8 destc=5 destl=10 ident=51>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="GET_NEXT_URI_FILE_TYPE">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="GET_NEXT_URI_DIRECTORY">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="GET_NEXT_URI_FILE_NAME">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="GET_NEXT_URI_VALIDITY_CODE">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
</Act>
<Act posc=5 posl=10 destc=5 destl=12 ident=52>
<Comment>STCAPI::GetNextUri
</Comment>
<TeleXX_TPM>
<TeleXX_GetNextURI_TPM validityCode="NO">
</TeleXX_GetNextURI_TPM>
</TeleXX_TPM>
</Act>
<Test posc=5 posl=12 destyesc=5 destyesl=14 destnoc=43 destnol=22 ident=53>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>3
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Switch posc=5 posl=14 ident=55>
<Source>
<FloatVar name="VMEM">
</FloatVar>
</Source>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>0
</FloatNumber>
</Source>
<TargetCell destc=43 destl=22>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>1
</FloatNumber>
</Source>
<TargetCell destc=1 destl=14>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>2
</FloatNumber>
</Source>
<TargetCell destc=5 destl=16>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=43 destl=22>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Switch posc=1 posl=14 ident=56>
<Source>
<TextBuffer name="GET_NEXT_URI_FILE_TYPE">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="TXT">
</ASCIIString>
</Source>
<TargetCell destc=1 destl=8>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="KON">
</ASCIIString>
</Source>
<TargetCell destc=1 destl=8>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=1 destl=8>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=1 posl=8 destc=5 destl=8 ident=57>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DOWNLOAD_FILE_CODE">
</TextBuffer>
</Destination>
</Clear>
<EvalExpression>
<Expression value="%%LBT_GET_NEXT_URI_DIRECTORY%%%%ADD%%%%LBT_GET_NEXT_URI_FILE_NAME%%">
</Expression>
<Destination>
<TextBuffer name="DOWNLOAD_FILE_CODE">
</TextBuffer>
</Destination>
</EvalExpression>
</MathAndLogic>
</Act>
<Act posc=5 posl=18 destc=5 destl=20 ident=60>
<Comment>Recuperation du contenu du fichier
</Comment>
<MathAndLogic>
<Assignment>
<Source>
<DBX_GetFileContent>
<TextBuffer name="DOWNLOAD_FILE_CODE">
</TextBuffer>
</DBX_GetFileContent>
</Source>
<Destination>
<TextBuffer name="IN_TELECODING_MMC_FILE_CONTENT">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Test posc=5 posl=20 destyesc=5 destyesl=22 destnoc=13 destnol=20 ident=61>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>3
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=5 posl=22 destc=5 destl=24 ident=62>
<Comment>Recuperation du contenu du fichier
</Comment>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="IN_TELECODING_MMC_FILE_CONTENT">
<Position>
<ValPos>201
</ValPos>
</Position>
<Length>512
</Length>
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="OUT_TELECODING_MMC_FILE_CONTENT">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=39 posl=24 destc=41 destl=24 ident=67>
<Comment>Affichage Au premier plan de l ecran de progression
</Comment>
<TeleXX>
<TeleXX_ShowProgress_TPM>
</TeleXX_ShowProgress_TPM>
</TeleXX>
</Act>
<Switch posc=5 posl=25 ident=69>
<Source>
<TextBuffer name="TPM_STEP_STATUS">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<TargetCell destc=5 destl=27>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="CANCELLED">
</ASCIIString>
</Source>
<TargetCell destc=13 destl=25>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="FAILED">
</ASCIIString>
</Source>
<TargetCell destc=13 destl=25>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=13 destl=25>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=13 posl=25 destc=43 destl=24 ident=70>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="TELEXX_UPDATE_ACTION_RETURN">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_UPDATE_ACTION_RETURN">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=41 posl=24 destc=43 destl=24 ident=72>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="TELEXX_UPDATE_ACTION_RETURN">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_UPDATE_ACTION_RETURN">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=43 posl=22 destc=43 destl=24 ident=73>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="TELEXX_UPDATE_ACTION_RETURN">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<ASCIIString value="FAILED">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_UPDATE_ACTION_RETURN">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Switch posc=13 posl=20 ident=74>
<Source>
<FloatVar name="VMEM">
</FloatVar>
</Source>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>1
</FloatNumber>
</Source>
<TargetCell destc=17 destl=20>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>2
</FloatNumber>
</Source>
<TargetCell destc=17 destl=22>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>3
</FloatNumber>
</Source>
<TargetCell destc=17 destl=20>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>4
</FloatNumber>
</Source>
<TargetCell destc=17 destl=24>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=17 destl=20>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=17 posl=20 destc=29 destl=22 ident=75>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="TELEXX_ERROR_TYPE_FILE_PATH">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_ERROR_TYPE_DESCR">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=17 posl=22 destc=29 destl=22 ident=76>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="TELEXX_ERROR_TYPE_FILE_BAD">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_ERROR_TYPE_DESCR">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=17 posl=24 destc=29 destl=22 ident=77>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="TELEXX_ERROR_TYPE_FILE_NOT_FOUND">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_ERROR_TYPE_DESCR">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=33 posl=22 destc=35 destl=22 ident=78>
<Comment>Création du message d'erreur
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="TELEXX_ERROR_TYPE">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<ASCIIString value="COM">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_ERROR_TYPE">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<TeleXX_TPM>
<TeleXX_GetMessageFromCode_TPM auto="NO">
<actionName>
<TextBuffer name="TELEXX_CURRENT_ACTION_NAME">
</TextBuffer>
</actionName>
<errorType>
<TextBuffer name="TELEXX_ERROR_TYPE">
</TextBuffer>
</errorType>
<errorCode>
<TextBuffer name="TELEXX_ACK_CODE">
</TextBuffer>
</errorCode>
<errorLevel>
<TextBuffer name="TELEXX_ACK_LEVEL">
</TextBuffer>
</errorLevel>
<errorComment>
<TextBuffer name="TELEXX_ACK_COMMENT">
</TextBuffer>
</errorComment>
<messageResult>
<TextBuffer name="TELEXX_ERROR_MSG_RESULT">
</TextBuffer>
</messageResult>
</TeleXX_GetMessageFromCode_TPM>
</TeleXX_TPM>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="TELEXX_ERROR_MSG_RESULT">
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="ERROR_MSG">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<SubTree posc=29 posl=22 destc=33 destl=22 ident=79 FileName="script_telexx_updateError.s" IsCritical="NO">
<FilePath path="TeleXX_TPM">
</FilePath>
</SubTree>
<Act posc=35 posl=22 destc=39 destl=24 ident=80>
<Comment>Aquittement négatif Serav
</Comment>
<TeleXX_TPM>
<TeleXX_SetActionAck_TPM>
<actionName>
<TextBuffer name="TELEXX_CURRENT_ACTION_NAME">
</TextBuffer>
</actionName>
<ackCode>
<TextBuffer name="TELEXX_ACK_CODE">
</TextBuffer>
</ackCode>
<ackLevel>
<TextBuffer name="TELEXX_ACK_LEVEL">
</TextBuffer>
</ackLevel>
<ackComment>
<TextBuffer name="TELEXX_ACK_COMMENT">
</TextBuffer>
</ackComment>
</TeleXX_SetActionAck_TPM>
</TeleXX_TPM>
</Act>
<Act posc=5 posl=16 destc=5 destl=18 ident=82>
<PSADiagTools>
<ContactStateCheck StateToTest="CONTACT_OFF">
</ContactStateCheck>
</PSADiagTools>
</Act>
</cel>
</Tree>
