<?xml version="1.0" encoding="UTF-8"?>
<process xmlns:blue="http://www.e-marson.com/bluelemon">
<descriptor>
<name>com/emarson/lemonade/examples/mobank/_deployment/InstallerMoAccount</name>
<version>1.0</version>
<description>
This process is used to create an installer
to be processed in the moBank MIDlet.
It will install the functionality required to use
moAccount service in the MIDlet.
</description>
<vendor>E-MARSON</vendor>
</descriptor>
<path>
<action name="action for 'moAccount'">
<type>general/bluelemon/code</type>
<definition resultTo="goToMainScreen">
<blue:call node="com/emarson/lemonade/examples/mobank/moaccount/MainScreen"
location="@com/emarson/lemonade/examples/mobank/moaccount"/>
</definition>
</action>
<subprocess name="moaccount">
<source>com/emarson/lemonade/examples/mobank/_deployment/PackageMoAccount</source>
<resultTo>package</resultTo>
</subprocess>
<action name="add a row to the main menu">
<type>general/bluelemon/code</type>
<definition resultTo="addNewMenuRow">
<blue:get node="com/emarson/lemonade/examples/mobank/MenuOptions"
location="permanent" toVariable="menuOptions"/>
<blue:call manager="UtilsManager" method="appendFirst"
toVariable="menuOptions">
<blue:argument type="variable" name="menuOptions"/>
<blue:argument type="dataset">
<blue:descriptor>
<blue:field type="String"/>
<blue:field type="byteArr"/>
</blue:descriptor>
<blue:row>
<blue:field value="moAccount"/>
<blue:field contextKey="goToMainScreen"/>
</blue:row>
</blue:argument>
</blue:call>
<blue:set node="com/emarson/lemonade/examples/mobank/MenuOptions"
location="permanent">
<blue:argument type="variable" name="menuOptions"/>
</blue:set>
</definition>
</action>
<subprocess name="add update info">
<source>com/emarson/lemonade/examples/mobank/_deployment/AddUpdateInfo</source>
<arguments>
<argument key="text">"moAccount service is now available."</argument>
</arguments>
<resultTo>updateInfoCode</resultTo>
</subprocess>
<finish name="done">
<return>package + addNewMenuRow + updateInfoCode</return>
</finish>
</path>
</process>