<?xml version="1.0" encoding="UTF-8"?>
<process xmlns:blue="http://www.e-marson.com/bluelemon">
<descriptor>
<name>com/emarson/lemonade/examples/mobank/_deployment/InstallerPIN</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 that will
allow user to set a PIN number for the moBank application.
</description>
<vendor>E-MARSON</vendor>
</descriptor>
<path>
<action name="action for 'Setting a PIN'">
<type>general/bluelemon/code</type>
<definition resultTo="goToScreen">
<blue:call node="com/emarson/lemonade/examples/mobank/pin/Screen"
location="@com/emarson/lemonade/examples/mobank/pin"/>
</definition>
</action>
<subprocess name="mocheers">
<source>com/emarson/lemonade/examples/mobank/_deployment/PackagePIN</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="Setting a PIN"/>
<blue:field contextKey="goToScreen"/>
</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">
"To enhance your security, please open 'Setting a PIN' " +
"from your main menu now."
</argument>
</arguments>
<resultTo>updateInfoCode</resultTo>
</subprocess>
<finish name="done">
<return>package + addNewMenuRow + updateInfoCode</return>
</finish>
</path>
</process>