<?xml version="1.0" encoding="UTF-8"?>
<process xmlns:blue="http://www.e-marson.com/bluelemon">
<descriptor>
<name>com/emarson/lemonade/examples/mobank/UpdateIsRequired</name>
<version>1.0</version>
<description>
Process the code and inform the user what happened
in the "Update info" message form.
</description>
<vendor>E-MARSON</vendor>
</descriptor>
<arguments>
<argument key="mainCode" type="String"/>
<argument key="updateNo" type="Integer"/>
</arguments>
<path>
<action name="action on 'Back'">
<type>general/bluelemon/code</type>
<definition resultTo="backAction">
<blue:call node="com/emarson/lemonade/examples/mobank/MainScreen"
location="@com/emarson/lemonade/examples/mobank"/>
</definition>
</action>
<action name="before invoking the update code">
<type>general/bluelemon/code</type>
<definition resultTo="beforeCode">
<blue:set node="com/emarson/lemonade/examples/mobank/UpdateNo"
location="permanent">
<blue:argument type="int" contextKey="updateNo"/>
</blue:set>
<blue:set node="com/emarson/lemonade/examples/mobank/UpdateInfo"
location="session">
<blue:argument type="String" value="Message from moBank:"/>
</blue:set>
</definition>
</action>
<action name="after invoking the update code">
<type>general/bluelemon/code</type>
<definition resultTo="afterCode">
<blue:get node="com/emarson/lemonade/examples/mobank/UpdateInfo"
location="session" toVariable="text"/>
<blue:newInstance module="com/emarson/lemonade/bluelemon/midp1/Form"
toVariable="form"/>
<blue:call object="form" method="initialize">
<blue:argument type="String" value="Update Info"/>
</blue:call>
<blue:call object="form" method="appendString">
<blue:argument type="variable" name="text"/>
</blue:call>
<blue:call manager="UtilsManager" method="getActionCommand"
toVariable="command">
<blue:argument type="String" value="Back"/>
<blue:argument type="byte" value="ActionCommand.BACK"/>
<blue:argument type="byte" value="0"/>
<blue:argument type="byteArr" contextKey="backAction"/>
</blue:call>
<blue:call object="form" method="addCommand">
<blue:argument type="variable" name="command"/>
</blue:call>
<blue:call manager="GeneralManager" method="setCurrent">
<blue:argument type="variable" name="form"/>
</blue:call>
</definition>
</action>
<action name="merge the code">
<type>general/bcl</type>
<definition>
result = beforeCode + mainCode + afterCode;
</definition>
</action>
<finish name="done">
<return>result</return>
</finish>
</path>
</process>