<?xml version="1.0" encoding="UTF-8"?>
<process xmlns:blue="http://www.e-marson.com/bluelemon">

  <descriptor>
    <name>com/emarson/lemonade/examples/mobank/mocheers/CheersScreen</name>
    <version>1.0</version>
    <description>
      Shows the screen with "Cheers from Wrocław!" text.
    </description>
    <vendor>E-MARSON</vendor>
  </descriptor>

  <path>

    <!-- ASSOCIATIONS --->
    
    <!-- association to HelloScreen --->
    <action name="action for 'Back'">
      <type>general/bluelemon/code</type>
      <definition resultTo="goToHello">
        <blue:call node="com/emarson/lemonade/examples/mobank/mocheers/HelloScreen"
                   location="@com/emarson/lemonade/examples/mobank/mocheers"/>

      </definition>
    </action>
    
    <!-- association to MainScreen in the mobank package --->
    <action name="action for 'Close'">
      <type>general/bluelemon/code</type>
      <definition resultTo="closeAction">
        <blue:call node="com/emarson/lemonade/examples/mobank/MainScreen"
                   location="@com/emarson/lemonade/examples/mobank"/>

      </definition>
    </action>
    
    
    <!-- INSTRUCTION --->
    
    <subprocess name="'Cheers from Wrocław!' screen">
      <source>com/emarson/lemonade/templates/YesNoWindow</source>
      <arguments>
        <argument key="title">"mobank: Cheers"</argument>
        <argument key="text">"Cheers from Wrocław!"</argument>
        <argument key="forwardAction">closeAction</argument>
        <argument key="forwardActionText">"Close"</argument>
        <argument key="backAction">goToHello</argument>
        <argument key="backActionText">"Back"</argument>
      </arguments>
      <resultTo>cheersScreen</resultTo>
    </subprocess>

    <finish name="done">
      <return>cheersScreen</return>
    </finish>

  </path>

</process>