Создание сайтов - статьи


         

Пример элемента контекста


<context>
<foreach select="ns1:arrayOfStockList/leg[position()>
1]">
<process name = "PlaceBuyOrder" instantiation = "other">
<action name = "PlaceBuyOrder" role= "tns:trader" operation= "tns:placeBuyOrder">
</action>
</process>
</foreach>
<process name = "ConfirmBuyOrder" instantiation = "other">
<action name = "ConfirmBuyOrder" role= "tns:trader" operation= "tns:confirmBuyOrder" >
<correlate correlation = " defs:buyStockCorrelation" instantiation= "true" />
</action>
<exception>
<onTimeout property = " tns:confirmationTime" type= "duration" reference="tns:PlaceBuyOrder@end">
<compensate transaction = "tns:reverseBuyOrders"/>
</onTimeout>
</exception>
</process>
<process name="transferMoney" instantiation="other">
<action name = "cashTransaction" role= "tns:trader" operation= "tns:debitMoney" >
</action>
</process>
<exception>
<onMessage>
<action name = "reverseBuyOrders" role= "tns:trader" operation= "tns:cancelBuyOrder">
</action>
<fault code = "tns:creditCardTxFaultCode"/>
</onMessage>
</exception>
</context>



Содержание  Назад  Вперед