The following snippet describes the states and the transitions of the AccountDebit JSXM specification.

  <!--States definition-->
    <state name="empty" />
    <state name="credit" />
    <state name="debit" />
  <!--Initial State definition-->
  <initialState state="empty" />
  <!--Transitions definition-->
        <transition from="empty" function="DepositCredit" to="credit" />
        <transition from="empty" function="WithdrawDebit" to="debit" />
        <transition from="credit" function="DepositCredit" to="credit" />
        <transition from="credit" function="WithdrawCredit" to="credit" />
        <transition from="credit" function="WithdrawEmpty" to="empty" />
        <transition from="credit" function="WithdrawDebit" to="debit" />
        <transition from="debit" function="DepositDebit" to="debit" />
        <transition from="debit" function="DepositEmpty" to="empty" />
        <transition from="debit" function="DepositCredit" to="credit" />
        <transition from="debit" function="WithdrawError" to="debit" />

*The example contains implementation, specification and the java adapter.

Download the AccountDebit Maven project.

Back to top

Version: 1.4.11-RC5. Last Published: 2017-11-30.